> [!CAUTION]
> **Caution:** This documentation is for Google Ads API **v23** . The latest active version is [**v26**](https://developers.google.com/google-ads/api/fields/latest/label).

[Help me build a query](https://developers.google.com/google-ads/api/fields/v23/label_query_builder.md.txt) [Proto definition ![on GitHub](https://developers.google.com/site-assets/logo-github.svg)](https://github.com/googleapis/googleapis/blob/master/google/ads/googleads/v23/resources/label.proto)

A label.

| Attributed resources |
|---|
| [customer](https://developers.google.com/google-ads/api/fields/v23/customer.md.txt) |

Fields from the preceding resources can be selected along with this
resource in your `SELECT` and `WHERE` clauses. These fields do **not** segment
metrics in your `SELECT` clause.

## label.id

Field descriptionOutput only. ID of the label. Read only.
Category`ATTRIBUTE` Data Type`INT64` CapabilitiesSelectable: True  
Filterable: True  
Sortable: True  
Repeated: False Selectable withThe following fields and resources can be selected with this field:

**Resources:** [ad_group_ad_label](https://developers.google.com/google-ads/api/fields/v23/ad_group_ad_label.md.txt), [ad_group_criterion_label](https://developers.google.com/google-ads/api/fields/v23/ad_group_criterion_label.md.txt), [ad_group_label](https://developers.google.com/google-ads/api/fields/v23/ad_group_label.md.txt), [campaign_label](https://developers.google.com/google-ads/api/fields/v23/campaign_label.md.txt), [label](https://developers.google.com/google-ads/api/fields/v23/label.md.txt)

## label.name

Field descriptionThe name of the label.

This field is required and should not be empty when creating a new label.

The length of this string should be between 1 and 80, inclusive.
Category`ATTRIBUTE` Data Type`STRING` CapabilitiesSelectable: True  
Filterable: True  
Sortable: True  
Repeated: False Selectable withThe following fields and resources can be selected with this field:

Same as [label.id](https://developers.google.com/google-ads/api/fields/v23/label.md.txt#label.id).

## label.resource_name

Field descriptionImmutable. Name of the resource.
Label resource names have the form:
`customers/{customer_id}/labels/{label_id}`
Category`ATTRIBUTE` Data Type`RESOURCE_NAME` CapabilitiesSelectable: True  
Filterable: True  
Sortable: False  
Repeated: False Selectable withThe following fields and resources can be selected with this field:

Same as [label.id](https://developers.google.com/google-ads/api/fields/v23/label.md.txt#label.id).

## label.status

Field descriptionOutput only. Status of the label. Read only.
Category`ATTRIBUTE` Data Type`ENUM`
`ENABLED``REMOVED``UNKNOWN``UNSPECIFIED` Type URL`google.ads.googleads.v23.enums.LabelStatusEnum.LabelStatus` CapabilitiesSelectable: True  
Filterable: True  
Sortable: True  
Repeated: False Selectable withThe following fields and resources can be selected with this field:

Same as [label.id](https://developers.google.com/google-ads/api/fields/v23/label.md.txt#label.id).

## label.text_label.background_color

Field descriptionBackground color of the label in HEX format. This string must match the
regular expression '\^#(\[a-fA-F0-9\]{6}\|\[a-fA-F0-9\]{3})$'.
Note: The background color may not be visible for manager accounts.
Category`ATTRIBUTE` Data Type`STRING` CapabilitiesSelectable: True  
Filterable: True  
Sortable: True  
Repeated: False Selectable withThe following fields and resources can be selected with this field:

Same as [label.id](https://developers.google.com/google-ads/api/fields/v23/label.md.txt#label.id).

## label.text_label.description

Field descriptionA short description of the label. The length must be no more than 200
characters.
Category`ATTRIBUTE` Data Type`STRING` CapabilitiesSelectable: True  
Filterable: True  
Sortable: True  
Repeated: False Selectable withThe following fields and resources can be selected with this field:

Same as [label.id](https://developers.google.com/google-ads/api/fields/v23/label.md.txt#label.id).