REST Resource: accounts.labels
Resource: AccountLabel
Label assigned by CSS domain or CSS group to one of its sub-accounts.
JSON representation |
{
"labelId": string,
"accountId": string,
"name": string,
"description": string,
"labelType": enum (LabelType )
} |
Fields |
labelId |
string (int64 format)
Output only. The ID of the label.
|
accountId |
string (int64 format)
Immutable. The ID of account this label belongs to.
|
name |
string
The display name of this label.
|
description |
string
The description of this label.
|
labelType |
enum (LabelType )
Output only. The type of this label.
|
LabelType
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 assigned to an account. |
|
Updates a label. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-25 UTC.
[null,null,["Last updated 2025-02-25 UTC."],[[["AccountLabel is a label assigned by CSS domain or CSS group to its sub-accounts, represented in JSON format."],["Labels can be of type MANUAL or AUTOMATIC, indicating creation method."],["You can manage AccountLabels with methods to create, delete, list, and update them."],["Key AccountLabel fields include labelId, accountId, name, description, and labelType."]]],["Account labels, assigned by a CSS domain or group to sub-accounts, are defined by `labelId`, `accountId`, `name`, `description`, and `labelType`. Labels can be `MANUAL` or `AUTOMATIC`. Key actions include: creating new labels, deleting labels and removing them from accounts, listing labels assigned to a specified account, and updating existing labels. The `labelType` is an output only field. Each label has an unique string identifier.\n"]]