AI-generated Key Takeaways
-
AccountLabel 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.
-
Labels can be manually created or automatically generated by CSS Center, indicated by the LabelType.
-
You can manage AccountLabels through methods like creating, deleting, listing, and updating them via the provided API endpoints.
-
The AccountLabel resource has a JSON representation that includes fields like name, labelId, accountId, labelType, displayName, and description, with specific data types and formats.
Resource: AccountLabel
Label assigned by CSS domain or CSS group to one of its sub-accounts.
JSON representation |
---|
{
"name": string,
"labelId": string,
"accountId": string,
"labelType": enum ( |
Fields | |
---|---|
name |
Identifier. The resource name of the label. Format: accounts/{account}/labels/{label} |
labelId |
Output only. The ID of the label. |
accountId |
Output only. The ID of account this label belongs to. |
labelType |
Output only. The type of this label. |
displayName |
The display name of this label. |
description |
The description of this label. |
LabelType
The label type.
Enums | |
---|---|
LABEL_TYPE_UNSPECIFIED |
Unknown label type. |
MANUAL |
Indicates that the label was created manually. |
AUTOMATIC |
Indicates that the label was created automatically by CSS Center. |
Methods |
|
---|---|
|
Creates a new label, not assigned to any account. |
|
Deletes a label and removes it from all accounts to which it was assigned. |
|
Lists the labels owned by an account. |
|
Updates a label. |