Get resource metadata
get_resource_metadataRetrieve selectable, filterable, and sortable fields for a Google Ads resource, including compatible metrics and segments, so you can build accurate queries instead of guessing field names.
Instructions
Retrieves the selectable, filterable and sortable fields for a Google Ads resource, including compatible metrics and segments.
Use this to find out which fields you can select, filter by or sort by when querying a resource (e.g. 'campaign', 'ad_group'). Metrics and segments that can be selected with the resource are included; their names start with 'metrics.' and 'segments.'.
Do not guess fields: you MUST use this tool to discover them before constructing a query for the search tool.
The answer does not change often, so reuse it within a conversation.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"resource_name": "<resource_name>"
},
"name": "get_resource_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resource_name | Yes | The name of the Google Ads resource (e.g. 'campaign', 'ad_group'). |