# REST Resource: accounts.labels

- [Resource: AccountLabel](https://developers.google.com/comparison-shopping-services/api/reference/rest/v1/accounts.labels#AccountLabel)
  - [JSON representation](https://developers.google.com/comparison-shopping-services/api/reference/rest/v1/accounts.labels#AccountLabel.SCHEMA_REPRESENTATION)
- [LabelType](https://developers.google.com/comparison-shopping-services/api/reference/rest/v1/accounts.labels#LabelType)
- [Methods](https://developers.google.com/comparison-shopping-services/api/reference/rest/v1/accounts.labels#METHODS_SUMMARY)

## 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 (`https://developers.google.com/comparison-shopping-services/api/reference/rest/v1/accounts.labels#LabelType`), "displayName": string, "description": string } ``` |

| Fields ||
|---|---|
| `name` | `string` Identifier. The resource name of the label. Format: accounts/{account}/labels/{label} |
| `labelId` | `string (https://developers.google.com/discovery/v1/type-format format)` Output only. The ID of the label. |
| `accountId` | `string (https://developers.google.com/discovery/v1/type-format format)` Output only. The ID of account this label belongs to. |
| `labelType` | ``enum (`https://developers.google.com/comparison-shopping-services/api/reference/rest/v1/accounts.labels#LabelType`)`` Output only. The type of this label. |
| `displayName` | `string` The display name of this label. |
| `description` | `string` 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 ||
|---|---|
| ### `https://developers.google.com/comparison-shopping-services/api/reference/rest/v1/accounts.labels/create` | Creates a new label, not assigned to any account. |
| ### `https://developers.google.com/comparison-shopping-services/api/reference/rest/v1/accounts.labels/delete` | Deletes a label and removes it from all accounts to which it was assigned. |
| ### `https://developers.google.com/comparison-shopping-services/api/reference/rest/v1/accounts.labels/list` | Lists the labels owned by an account. |
| ### `https://developers.google.com/comparison-shopping-services/api/reference/rest/v1/accounts.labels/patch` | Updates a label. |