REST Resource: accounts.labels
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\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. |"]]