REST Resource: accounts.labels
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 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. |"]]