run_gaql_query
Execute raw GAQL queries against Google Ads accounts to retrieve campaign and performance data, with optional row limits and full CSV export of results.
Instructions
Execute a raw GAQL query. Saves full results to CSV. WARNING: limit=0 fetches all rows — use with caution on large accounts.
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": "run_gaql_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows to return (0 = no limit) | |
| query | Yes | GAQL query to execute | |
| customer_id | No | Google Ads customer ID (no dashes). Uses active account if not provided. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||