GoogleAdsField
Stay organized with collections
Save and categorize content based on your preferences.
A field or resource (artifact) used by GoogleAdsService.
Fields |
resource_name
|
string
Output only. The resource name of the artifact. Artifact resource names have the form: googleAdsFields/{name}
|
category
|
GoogleAdsFieldCategory
Output only. The category of the artifact.
|
selectable_with[]
|
string
Output only. The names of all resources, segments, and metrics that are selectable with the described artifact.
|
attribute_resources[]
|
string
Output only. The names of all resources that are selectable with the described artifact. Fields from these resources do not segment metrics when included in search queries. This field is only set for artifacts whose category is RESOURCE.
|
metrics[]
|
string
Output only. This field lists the names of all metrics that are selectable with the described artifact when it is used in the FROM clause. It is only set for artifacts whose category is RESOURCE.
|
segments[]
|
string
Output only. This field lists the names of all artifacts, whether a segment or another resource, that segment metrics when included in search queries and when the described artifact is used in the FROM clause. It is only set for artifacts whose category is RESOURCE.
|
enum_values[]
|
string
Output only. Values the artifact can assume if it is a field of type ENUM. This field is only set for artifacts of category SEGMENT or ATTRIBUTE.
|
data_type
|
GoogleAdsFieldDataType
Output only. This field determines the operators that can be used with the artifact in WHERE clauses.
|
name
|
string
Output only. The name of the artifact.
|
selectable
|
bool
Output only. Whether the artifact can be used in a SELECT clause in search queries.
|
filterable
|
bool
Output only. Whether the artifact can be used in a WHERE clause in search queries.
|
sortable
|
bool
Output only. Whether the artifact can be used in a ORDER BY clause in search queries.
|
type_url
|
string
Output only. The URL of proto describing the artifact's data type.
|
is_repeated
|
bool
Output only. Whether the field artifact is repeated.
|
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-08-07 UTC.
[null,null,["Last updated 2025-08-07 UTC."],[],[],null,["# GoogleAdsField\n\nA field or resource (artifact) used by GoogleAdsService.\n\n| Fields ||\n|-----------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `resource_name` | `string` Output only. The resource name of the artifact. Artifact resource names have the form: `googleAdsFields/{name}` |\n| ### `category` | [GoogleAdsFieldCategory](/google-ads/api/reference/rpc/v21/GoogleAdsFieldCategoryEnum.GoogleAdsFieldCategory) Output only. The category of the artifact. |\n| ### `selectable_with[]` | `string` Output only. The names of all resources, segments, and metrics that are selectable with the described artifact. |\n| ### `attribute_resources[]` | `string` Output only. The names of all resources that are selectable with the described artifact. Fields from these resources do not segment metrics when included in search queries. This field is only set for artifacts whose category is RESOURCE. |\n| ### `metrics[]` | `string` Output only. This field lists the names of all metrics that are selectable with the described artifact when it is used in the FROM clause. It is only set for artifacts whose category is RESOURCE. |\n| ### `segments[]` | `string` Output only. This field lists the names of all artifacts, whether a segment or another resource, that segment metrics when included in search queries and when the described artifact is used in the FROM clause. It is only set for artifacts whose category is RESOURCE. |\n| ### `enum_values[]` | `string` Output only. Values the artifact can assume if it is a field of type ENUM. This field is only set for artifacts of category SEGMENT or ATTRIBUTE. |\n| ### `data_type` | [GoogleAdsFieldDataType](/google-ads/api/reference/rpc/v21/GoogleAdsFieldDataTypeEnum.GoogleAdsFieldDataType) Output only. This field determines the operators that can be used with the artifact in WHERE clauses. |\n| ### `name` | `string` Output only. The name of the artifact. |\n| ### `selectable` | `bool` Output only. Whether the artifact can be used in a SELECT clause in search queries. |\n| ### `filterable` | `bool` Output only. Whether the artifact can be used in a WHERE clause in search queries. |\n| ### `sortable` | `bool` Output only. Whether the artifact can be used in a ORDER BY clause in search queries. |\n| ### `type_url` | `string` Output only. The URL of proto describing the artifact's data type. |\n| ### `is_repeated` | `bool` Output only. Whether the field artifact is repeated. |"]]