REST Resource: accounts.labels
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 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. |"]]