重要提示:我们不再接受 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 |
在关联的语言区域中本地化的文本。 |
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-13。
[null,null,["最后更新时间 (UTC):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."]]