gads_run_gaql
Run raw GAQL queries to fetch Google Ads data when preset tools lack the required report shape, enabling custom campaign and metric analysis.
Instructions
Escape hatch: run any raw GAQL query against Google Ads. Use when preset tools don't cover the report shape you need. Docs: developers.google.com/google-ads/api/docs/query/overview
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Raw GAQL query. Example: SELECT campaign.id, campaign.name, metrics.impressions, metrics.clicks, metrics.cost_micros FROM campaign WHERE segments.date DURING LAST_30_DAYS ORDER BY metrics.cost_micros DESC LIMIT 50 | |
| customer_id | No | Override GOOGLE_ADS_CUSTOMER_ID for this call (no dashes) |