google ads validate query
google_ads_validate_queryValidate Google Ads query metric, dimension, and resource compatibility before execution. Checks segment restrictions and resource availability to prevent invalid GAQL requests.
Instructions
Validate metric/dimension/resource compatibility BEFORE executing a query. Checks segment restrictions and resource availability.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metrics | Yes | Metric keys to validate | |
| resource | No | Native Google Ads resource from which the GAQL query selects rows. | campaign |
| dimensions | No | Dimension keys to validate |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Original tool result: parsed JSON when the text is JSON, otherwise the text or multiple MCP content blocks. Provider fields depend on the selected query. |