Run a GAQL query
run_gaql_queryRuns a read-only Google Ads Query Language (GAQL) SELECT on one account and returns the rows as JSON (first 500 rows). Use it only for data the other tools do not cover: for wasted spend, search terms or campaign results they answer in one call. GAQL joins WHERE conditions only with AND: no OR, no parentheses; for alternatives on one field use IN (...), otherwise run separate queries. Use only field names you are sure exist in the current Google Ads API; do not guess.
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": {
"customer_id": "<customer_id>",
"query": "<query>"
},
"name": "run_gaql_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | A GAQL SELECT statement | |
| customer_id | Yes | Google Ads customer ID, 10 digits (dashes allowed) | |
| login_customer_id | No | Manager account ID used to reach this customer (login-customer-id). Needed when access comes through a manager account. |