ads_run_gaql
Run arbitrary GAQL queries to fetch custom Google Ads metrics and campaign data, enabling flexible reporting for any analysis need.
Instructions
Run an arbitrary GAQL (Google Ads Query Language) query and return rows.
This is the most flexible read tool. Use it for any custom report. Example query: SELECT campaign.id, campaign.name, metrics.clicks, metrics.cost_micros FROM campaign WHERE segments.date DURING LAST_7_DAYS ORDER BY metrics.clicks DESC
Args: customer_id: 10-digit account id (dashes ok). query: full GAQL query string. limit: max rows to return (client-side cap; default 200).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | No | ||
| customer_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |