search
Run GAQL queries against a Google Ads account to retrieve matching rows.
Instructions
Run a GAQL query against one account and return the matching rows.
Args: customer_id: Account id (dashes are stripped automatically). gaql: A Google Ads Query Language statement containing a SELECT clause. page_size: Max rows to return (default 1000). login_customer_id: Optional manager/login id for accounts not under the manager in google-ads.yaml. For a direct-access account, pass its own id here.
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>",
"gaql": "<gaql>"
},
"name": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gaql | Yes | ||
| page_size | No | ||
| customer_id | Yes | ||
| login_customer_id | No |