Build a custom Google Ads report with GAQL
A GAQL query built field-by-field, validated, then run: the escape hatch for every bespoke question.
Intent The exact table nothing pre-built provides, validated before it runs.
- Steps
- 3
- Tools
- 3
- Rules
- 1
- Failure modes
- 1
When to use it
Use it when
- The question fits no packaged tool.
- Recurring bespoke exports.
Do not use it when
- When a dedicated tool already answers it: bespoke queries are a maintenance debt.
What it needs first
Required Google Ads
Preconditions
- The account is among the chosen accounts, confirmed via list_accounts.
Evidence every conclusion must carry
- Every figure carries its account, metric and window.
- Anything below a readable sample size is reported as unjudged, not as zero.
| Input | Required | What it is |
|---|---|---|
window | Analysis window.Default: last 30 days. |
Procedure
In order. Every tool named is one the gateway ships, and links to its reference.
Steps
- Find the right resources and fields.
google_ads_search_fields - Validate the query before running.
google_ads_validate_query - Run it.
google_ads_run_gaql
Decision rules
The observable condition, what it lets you conclude, and what takes the conclusion back.
- When The query mixes incompatible resourcesConclude Validation says so before the API does: fix the FROM, not the WHERE.
Where the agent stops
The readout changes nothing. Any change it motivates goes through Safe Writes: preview, human confirmation, then apply.
How it goes wrong quietly
The cases where the analysis is wrong and still looks right. Read them before trusting a number.
- Metrics without their segment context read as totals when they are slices.
What the answer contains
| Section | What it holds |
|---|---|
| Readout | The figures, with windows and accounts named. |
| Flags | What deserves a deeper skill or a human decision. |
Manage your ads from your AI assistant
Free with 1 ad account, no card. Pro is free for 7 days.