execute_gaql_query
Run custom GAQL queries to retrieve Google Ads reporting data with SELECT, WHERE, ORDER BY, LIMIT, and PARAMETERS clauses for tailored insights.
Instructions
Execute a custom GAQL (Google Ads Query Language) query. Supports SELECT, FROM, WHERE, ORDER BY, LIMIT, and PARAMETERS clauses. Use this for any custom reporting or data retrieval.
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": {
"customerId": "<customerId>",
"query": "<query>"
},
"name": "execute_gaql_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | GAQL query (e.g., SELECT campaign.name, metrics.clicks FROM campaign WHERE segments.date DURING LAST_30_DAYS) | |
| pageSize | No | ||
| customerId | Yes | The customer ID |