google_ads_describe_resource
Get the full schema for any Google Ads GAQL resource before writing queries. Returns selectable fields, data types, filter/sort options, and compatible field groupings to prevent FIELD_NOT_COMPATIBLE errors.
Instructions
Schema (fields, metrics, segments) for a GAQL resource.
Queries GoogleAdsFieldService for every selectable field on a resource
plus its data type, selectability, filterability, sort-ability, and
selectable_with (which other fields can coexist in a single SELECT).
Args: resource_name: the GAQL resource, e.g. "campaign", "ad_group", "shopping_performance_view", "change_event", "recommendation".
Returns: {resource, fields: [{name, category: ATTRIBUTE|METRIC|SEGMENT, data_type, selectable, filterable, sortable, enum_values, type_url, selectable_with}]}.
Essential before composing GAQL on an unfamiliar resource; prevents FIELD_NOT_COMPATIBLE and FIELD_NOT_FOUND errors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resource_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |