Join us live onDiscord on the Google Advertising and Measurement Community server and onYouTube on February 26th at 10:00 AM EST! We will discuss the new features added in v23.1 of the Google Ads API.

customer_label

  • Customer label represents a relationship between a customer and a label, but the customer may not have access to all attached labels unless permissions are increased with login-customer-id.

  • The customer resource can be selected along with customer label, but its fields will not segment metrics in your SELECT clause.

  • The fields available for customer label arecustomer_label.customer,customer_label.label, andcustomer_label.resource_name.

  • customer_label.customer andcustomer_label.label are resource names that are output only, whilecustomer_label.resource_name is immutable.

Represents a relationship between a customer and a label. This customer may not have access to all the labels attached to it. Additional CustomerLabels may be returned by increasing permissions with login-customer-id.

Attributed resources
customer

Fields from the above resources may be selected along with this resource in your SELECT and WHERE clauses. These fieldswill not segment metrics in yourSELECT clause.

customer_label.customer

Field descriptionOutput only. The resource name of the customer to which the label is attached. Read only.
CategoryATTRIBUTE
Data TypeRESOURCE_NAME
Type URLN/A
FilterableTrue
SelectableTrue
SortableTrue
RepeatedFalse

customer_label.label

Field descriptionOutput only. The resource name of the label assigned to the customer. Note: the Customer ID portion of the label resource name is not validated when creating a new CustomerLabel.
CategoryATTRIBUTE
Data TypeRESOURCE_NAME
Type URLN/A
FilterableTrue
SelectableTrue
SortableFalse
RepeatedFalse

customer_label.resource_name

Field descriptionImmutable. Name of the resource. Customer label resource names have the form:customers/{customer_id}/customerLabels/{label_id}
CategoryATTRIBUTE
Data TypeRESOURCE_NAME
Type URLN/A
FilterableTrue
SelectableTrue
SortableFalse
RepeatedFalse

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-29 UTC.