重要資訊:我們目前不接受新的 Play EMM API 註冊。
瞭解詳情。
Storelayoutpages
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Storelayoutpages 資源代表 Google Play for Work 商店的單一頁面。每個頁面最多可有 30 個商店叢集 (相關產品群組),且商店最多可有 100 頁。
每個頁面的顯示資訊包含網頁的本地化名稱,以及商店中其他網頁的連結,這些連結會在頁面頂端以快速連結的形式顯示。每個商店都必須有一個指定首頁,您可以使用 Enterprises 資源的 Enterprises.setStoreLayout 方法進行設定。而且首頁應包含商店所有其他頁面的連結。
商店版面設計指南提供商店版面設計資訊,包括如何建立商店頁面。
如需本資源的方法清單,請見本頁結尾。
資源表示法
Google Play 管理版商店頁面的定義,包含經過本地化的名稱和其他頁面的連結。而且頁面也包含定義為子集合的叢集。
{
"kind": "androidenterprise#storePage",
"id": string,
"name": [
{
"locale": string,
"text": string
}
],
"link": [
string
]
}
屬性名稱 |
值 |
說明 |
附註 |
id |
string |
這個網頁的專屬 ID。由伺服器指派。一旦指派就無法變更。 |
|
kind |
string |
|
|
link[] |
list |
使用者必須能夠從這個網頁前往的已排序頁面清單。這份清單不得包含這個頁面。建議先建立基本網頁,然後再新增網頁之間的連結。
API 不會驗證網頁是否存在,或可連上網頁。 |
|
name[] |
list |
這個頁面的名稱,以經過本地化的字串排序清單。會顯示與使用者語言代碼最相符的文字;如果沒有相符的結果,則顯示第一個項目。至少須選取一個項目。 |
|
name[].locale |
string |
語言代碼的 BCP47 標記。(例如「en-US」、「de」)。 |
|
name[].text |
string |
相關語言代碼的本地化文字。 |
|
方法
- 刪除
- 刪除商店頁面。
- 取得
- 擷取商店頁面的詳細資料。
- 插入
- 插入新的商店頁面。
- list
- 擷取商店中所有頁面的詳細資料。
- 更新
- 更新商店頁面的內容。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-09-13 (世界標準時間)。
[null,null,["上次更新時間:2024-09-13 (世界標準時間)。"],[[["\u003cp\u003eA Storelayoutpages resource represents a single page within a Google Play for Work store, which can contain up to 30 store clusters and link to other pages.\u003c/p\u003e\n"],["\u003cp\u003eEach store must have a designated homepage, accessible via the Enterprises.setStoreLayout method, that links to all other store pages for navigation.\u003c/p\u003e\n"],["\u003cp\u003ePages are identified by unique IDs, display localized names, and include links to other relevant pages within the store structure.\u003c/p\u003e\n"],["\u003cp\u003eStorelayoutpages resources can be managed using methods like insert, delete, get, list, and update to control their content and organization.\u003c/p\u003e\n"]]],[],null,["# Storelayoutpages\n\n\u003cbr /\u003e\n\nA Storelayoutpages resource represents a single page of the enterprise's Google Play for Work store. Each page can have up to 30 [store clusters](/android/work/play/emm-api/v1/storelayoutclusters) (groups of related products), and the store can have up to 100 pages.\n\nThe display information provided for each page includes the page's localized name and links to other pages in the store, which are displayed as quick links at the top of the page. Each store must have one designated homepage, which you set using the [Enterprises.setStoreLayout](/android/work/play/emm-api/v1/enterprises/setStoreLayout) method of the Enterprises resource. The homepage should include links to all the other pages in the store.\n\nThe [Store Layout Design](/android/work/play/emm-api/store-layout) guide has information on how to design a store layout, including how to create a store page.\n\n\u003cbr /\u003e\n\nFor a list of [methods](#methods) for this resource, see the end of this page.\n\nResource representations\n------------------------\n\nDefinition of a managed Google Play store page, made of a localized name and links to other pages. A page also contains clusters defined as a subcollection.\n\n```text\n{\n \"kind\": \"androidenterprise#storePage\",\n \"id\": string,\n \"name\": [\n {\n \"locale\": string,\n \"text\": string\n }\n ],\n \"link\": [\n string\n ]\n}\n```\n\n| Property name | Value | Description | Notes |\n|-----------------|----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------|\n| `id` | `string` | Unique ID of this page. Assigned by the server. Immutable once assigned. | |\n| `kind` | `string` | | |\n| `link[]` | `list` | Ordered list of pages a user should be able to reach from this page. The list can't include this page. It is recommended that the basic pages are created first, before adding the links between pages. The API doesn't verify that the pages exist or the pages are reachable. | |\n| `name[]` | `list` | Ordered list of localized strings giving the name of this page. The text displayed is the one that best matches the user locale, or the first entry if there is no good match. There needs to be at least one entry. | |\n| name[].`locale` | `string` | The BCP47 tag for a locale. (e.g. \"en-US\", \"de\"). | |\n| name[].`text` | `string` | The text localized in the associated locale. | |\n\nMethods\n-------\n\n[delete](/android/work/play/emm-api/v1/storelayoutpages/delete)\n: Deletes a store page.\n\n[get](/android/work/play/emm-api/v1/storelayoutpages/get)\n: Retrieves details of a store page.\n\n[insert](/android/work/play/emm-api/v1/storelayoutpages/insert)\n: Inserts a new store page.\n\n[list](/android/work/play/emm-api/v1/storelayoutpages/list)\n: Retrieves the details of all pages in the store.\n\n[update](/android/work/play/emm-api/v1/storelayoutpages/update)\n: Updates the content of a store page."]]