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.
Storelayoutclusters
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 Storelayoutclusters đại diện cho danh sách các sản phẩm được hiển thị cùng nhau dưới dạng một nhóm trên trang Cửa hàng Google Play for Work. Mỗi trang có thể có tối đa 30 cụm và mỗi cụm có thể có tối đa 100 sản phẩm.
Thông tin hiển thị được cung cấp cho mỗi cụm bao gồm tên đã bản địa hoá của cụm, danh sách ứng dụng và vị trí của cụm trong trang mẹ (orderInPage
).
Hướng dẫn về 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 cụm 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ề cụm cửa hàng Managed Google Play, danh sách các sản phẩm được hiển thị dưới dạng một phần của trang cửa hàng.
{
"kind": "androidenterprise#storeCluster",
"id": string,
"name": [
{
"locale": string,
"text": string
}
],
"productId": [
string
],
"orderInPage": string
}
Tên tài sản |
Giá trị |
Nội dung mô tả |
Ghi chú |
id |
string |
Mã nhận dạng duy nhất của cụm này. Do máy chủ chỉ định. Không thể thay đổi sau khi được giao. |
|
kind |
string |
|
|
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. |
|
orderInPage |
string |
Chuỗi (chỉ với US-ASCII) dùng để xác định thứ tự của cụm này trong các phần tử của trang mẹ. Các phần tử của trang được sắp xếp theo thứ tự từ điển của trường này. Cho phép các giá trị trùng lặp, nhưng thứ tự giữa các phần tử có thứ tự trùng lặp là không xác định.
Người dùng tuyệt đối không nhìn thấy giá trị của trường này. Trường này chỉ được dùng cho mục đích xác định thứ tự. Độ dài tối đa là 256 ký tự. |
|
productId[] |
list |
Danh sách sản phẩm theo thứ tự xuất hiện trong cụm. Không được có trùng lặp trong một cụm. |
|
Phương thức
- xóa
- Xoá một cụm.
- nhận
- Truy xuất thông tin chi tiết của một cụm.
- chèn
- Chèn một cụm mới trong một trang.
- list
- Truy xuất thông tin chi tiết của tất cả các cụm trên trang được chỉ định.
- cập nhật
- Cập nhật một cụm.
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-06-19 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-06-19 UTC."],[[["\u003cp\u003eStorelayoutclusters represent groups of products (up to 100) displayed on Google Play for Work store pages.\u003c/p\u003e\n"],["\u003cp\u003eEach store page can contain up to 30 clusters, organized by \u003ccode\u003eorderInPage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eClusters are defined by a localized name, a list of products (\u003ccode\u003eproductId\u003c/code\u003e), and their placement on the page.\u003c/p\u003e\n"],["\u003cp\u003eYou can manage clusters using methods like insert, delete, update, get, and list to customize store layouts.\u003c/p\u003e\n"],["\u003cp\u003eRefer to the Store Layout Design guide for creating effective store layouts and clusters.\u003c/p\u003e\n"]]],[],null,["# Storelayoutclusters\n\n\u003cbr /\u003e\n\nA Storelayoutclusters resource represents a list of products displayed together as a group on a [Google Play for Work store](/android/work/play/emm-api/v1/storelayoutpages) page. Each page can have up to 30 clusters, and each cluster can have up to 100 products.\n\nThe display information provided for each cluster includes the cluster's localized name, a list of apps, and the placement of the cluster within its parent page (`orderInPage`).\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 cluster.\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 cluster, a list of products displayed as part of a store page.\n\n```text\n{\n \"kind\": \"androidenterprise#storeCluster\",\n \"id\": string,\n \"name\": [\n {\n \"locale\": string,\n \"text\": string\n }\n ],\n \"productId\": [\n string\n ],\n \"orderInPage\": string\n}\n```\n\n| Property name | Value | Description | Notes |\n|-----------------|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------|\n| `id` | `string` | Unique ID of this cluster. Assigned by the server. Immutable once assigned. | |\n| `kind` | `string` | | |\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| `orderInPage` | `string` | String (US-ASCII only) used to determine order of this cluster within the parent page's elements. Page elements are sorted in lexicographic order of this field. Duplicated values are allowed, but ordering between elements with duplicate order is undefined. The value of this field is never visible to a user, it is used solely for the purpose of defining an ordering. Maximum length is 256 characters. | |\n| `productId[]` | `list` | List of products in the order they are displayed in the cluster. There should not be duplicates within a cluster. | |\n\nMethods\n-------\n\n[delete](/android/work/play/emm-api/v1/storelayoutclusters/delete)\n: Deletes a cluster.\n\n[get](/android/work/play/emm-api/v1/storelayoutclusters/get)\n: Retrieves details of a cluster.\n\n[insert](/android/work/play/emm-api/v1/storelayoutclusters/insert)\n: Inserts a new cluster in a page.\n\n[list](/android/work/play/emm-api/v1/storelayoutclusters/list)\n: Retrieves the details of all clusters on the specified page.\n\n[update](/android/work/play/emm-api/v1/storelayoutclusters/update)\n: Updates a cluster."]]