Lưu ý quan trọng: Chúng tôi không còn chấp nhận các lượt đăng ký mới cho Play EMM API.
Tìm hiểu thêm.
Storelayoutpages
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tài nguyên Storelayoutpages đại diện cho một trang duy nhất của cửa hàng Google Play for Work của doanh nghiệp. Mỗi trang có thể có tối đa 30 cụm cửa hàng (nhóm các sản phẩm có liên quan) và cửa hàng có thể có tối đa 100 trang.
Thông tin hiển thị được cung cấp cho mỗi trang bao gồm tên đã bản địa hoá của trang và đường liên kết đến các trang khác trong cửa hàng. Những đường liên kết này xuất hiện dưới dạng đường liên kết nhanh ở đầu trang. Mỗi cửa hàng phải có một trang chủ được chỉ định. Bạn có thể thiết lập trang chủ này bằng phương thức Enterprises.setStoreLayout của tài nguyên Enterprises. Trang chủ phải có đường liên kết đến tất cả các trang khác trong cửa hàng.
Hướng dẫn Thiết kế bố cục cửa hàng có thông tin về cách thiết kế bố cục cửa hàng, bao gồm cả cách tạo trang cửa hàng.
Để biết danh sách các phương thức cho tài nguyên này, hãy xem ở cuối trang.
Biểu diễn tài nguyên
Định nghĩa về trang trên Cửa hàng Google Play được quản lý, bao gồm tên đã bản địa hoá và đường liên kết đến các trang khác. Trang cũng chứa các cụm được xác định là bộ sưu tập con.
{
"kind": "androidenterprise#storePage",
"id": string,
"name": [
{
"locale": string,
"text": string
}
],
"link": [
string
]
}
Tên tài sản |
Giá trị |
Mô tả |
Ghi chú |
id |
string |
Mã nhận dạng duy nhất của trang này. Do máy chủ chỉ định. Không thể thay đổi sau khi được giao. |
|
kind |
string |
|
|
link[] |
list |
Danh sách các trang theo thứ tự mà người dùng có thể truy cập từ trang này. Danh sách không thể bao gồm trang này. Bạn nên tạo các trang cơ bản trước, rồi mới thêm đường liên kết giữa các trang.
API này không xác minh rằng các trang này tồn tại hoặc các trang có thể truy cập được. |
|
name[] |
list |
Danh sách các chuỗi đã bản địa hoá theo thứ tự cung cấp tên của trang này. Văn bản được hiển thị là văn bản phù hợp nhất với ngôn ngữ của người dùng hoặc mục nhập đầu tiên nếu không có kết quả phù hợp. Cần có ít nhất một mục nhập. |
|
name[].locale |
string |
Thẻ BCP47 cho một ngôn ngữ. (ví dụ: "en-US", "de"). |
|
name[].text |
string |
Văn bản đã được bản địa hoá sang ngôn ngữ có liên quan. |
|
Phương thức
- xóa
- Xoá trang cửa hàng.
- nhận
- Truy xuất thông tin chi tiết của trang cửa hàng.
- chèn
- Chèn một trang cửa hàng mới.
- list
- Truy xuất thông tin chi tiết của tất cả các trang trong cửa hàng.
- cập nhật
- Cập nhật nội dung của một trang trên Cửa hàng Play.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-09-13 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-09-13 UTC."],[[["\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."]]