gads_query
Execute custom Google Ads Query Language (GAQL) queries to retrieve campaign and performance data not covered by standard reporting tools.
Instructions
Execute a custom GAQL (Google Ads Query Language) query.
This is the power-user tool for any query not covered by other tools. Note: When segments.date is in WHERE, it MUST also be in SELECT.
Example: SELECT campaign.name, metrics.clicks FROM campaign WHERE campaign.status = 'ENABLED'
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": {
"query": "<query>"
},
"name": "gads_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | A valid GAQL (Google Ads Query Language) query. | |
| customer_id | No | Google Ads customer ID (10-digit, no dashes). Overrides the default GOOGLE_ADS_CUSTOMER_ID env var. Required when managing multiple client accounts from a single MCP instance. | |
| response_format | No | Output format: "markdown" for readable tables, "json" for structured data. | markdown |