Run a read-only GAQL query
google_queryRun a read-only GAQL SELECT query against a Google Ads account to retrieve raw metric rows for reporting and analysis.
Instructions
Run one read-only Google Ads Query Language (GAQL) SELECT query against one account and return the raw rows. Only SELECT ... FROM ... is accepted; anything else is rejected. Fields ending in _micros are millionths of the account currency.
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": "google_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | A GAQL SELECT query, e.g. SELECT campaign.name, metrics.clicks FROM campaign WHERE segments.date DURING LAST_7_DAYS | |
| max_rows | No | Maximum rows to return (default 100, max 1000). | |
| customer_id | Yes | Google Ads customer ID, e.g. 123-456-7890 (hyphens optional). | |
| login_customer_id | No | Manager (MCC) account ID to access the customer through. Defaults to GOOGLE_ADS_LOGIN_CUSTOMER_ID if set. |