query_google_ads
Execute a custom read-only Google Ads Query Language (GAQL) SELECT query for flexible reporting (device breakdown, locations, ad groups, RSA ad copy, quality score, negative keywords, hour/day segments). Note: metrics.cost_micros is in micros (divide by 1,000,000). Read resource adnome://gaql-reference for field names.
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": "query_google_ads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum rows to return (1-500, default 50). | |
| query | Yes | Read-only GAQL SELECT query, e.g. SELECT campaign.name, segments.device, metrics.cost_micros, metrics.clicks, metrics.conversions FROM campaign WHERE segments.date DURING LAST_30_DAYS | |
| accountId | No | Google Ads customer ID (e.g. 958-390-0177). Uses primary connected account if omitted. |