REST Resource: accounts.labels
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.
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: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eAccountLabel is a resource used by CSS domain or CSS group to label sub-accounts, containing information such as name, ID, type, display name, and description.\u003c/p\u003e\n"],["\u003cp\u003eLabels can be manually created or automatically generated by CSS Center, indicated by the LabelType.\u003c/p\u003e\n"],["\u003cp\u003eYou can manage AccountLabels through methods like creating, deleting, listing, and updating them via the provided API endpoints.\u003c/p\u003e\n"],["\u003cp\u003eThe AccountLabel resource has a JSON representation that includes fields like name, labelId, accountId, labelType, displayName, and description, with specific data types and formats.\u003c/p\u003e\n"]]],[],null,["# REST Resource: accounts.labels\n\n- [Resource: AccountLabel](#AccountLabel)\n - [JSON representation](#AccountLabel.SCHEMA_REPRESENTATION)\n- [LabelType](#LabelType)\n- [Methods](#METHODS_SUMMARY)\n\nResource: AccountLabel\n----------------------\n\nLabel assigned by CSS domain or CSS group to one of its sub-accounts.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"labelId\": string, \"accountId\": string, \"labelType\": enum (/comparison-shopping-services/api/reference/rest/v1/accounts.labels#LabelType), \"displayName\": string, \"description\": string } ``` |\n\n| Fields ||\n|---------------|--------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Identifier. The resource name of the label. Format: accounts/{account}/labels/{label} |\n| `labelId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Output only. The ID of the label. |\n| `accountId` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Output only. The ID of account this label belongs to. |\n| `labelType` | `enum (`[LabelType](/comparison-shopping-services/api/reference/rest/v1/accounts.labels#LabelType)`)` Output only. The type of this label. |\n| `displayName` | `string` The display name of this label. |\n| `description` | `string` The description of this label. |\n\nLabelType\n---------\n\nThe label type.\n\n| Enums ||\n|--------------------------|-------------------------------------------------------------------|\n| `LABEL_TYPE_UNSPECIFIED` | Unknown label type. |\n| `MANUAL` | Indicates that the label was created manually. |\n| `AUTOMATIC` | Indicates that the label was created automatically by CSS Center. |\n\n| Methods ------- ||\n|------------------------------------------------------------------------------------------|----------------------------------------------------------------------------|\n| ### [create](/comparison-shopping-services/api/reference/rest/v1/accounts.labels/create) | Creates a new label, not assigned to any account. |\n| ### [delete](/comparison-shopping-services/api/reference/rest/v1/accounts.labels/delete) | Deletes a label and removes it from all accounts to which it was assigned. |\n| ### [list](/comparison-shopping-services/api/reference/rest/v1/accounts.labels/list) | Lists the labels owned by an account. |\n| ### [patch](/comparison-shopping-services/api/reference/rest/v1/accounts.labels/patch) | Updates a label. |"]]