gads_audit_data
Google Ads read low risk
Part of the Google Ads Audit Agent.
What it does
One section of a Google Ads account audit, computed server-side (ADR-108): the queries run and fold into the audit prompt's tables on the server, so nothing is cut at 10,000 rows and every number (month labels, MTD, CRM lag, the (A+B) split, cost each, the '26 ($917)' cells, the judging threshold, verdicts, impression share weighted by eligible impressions) is computed once, in tested code. Sections: overview (sections 1 and 2: the monthly table with average, good-period and total rows, the projection, brand vs non-brand, what counted: the Conversions column against the quality actions, and when each action was Primary, inferred; weeks where every campaign fell at once, with the meeting action beside them; the scorecards that open sections 3 to 6, with rule verdicts; the mapper's facts; a reconcile block proving the campaigns add up to the account); changes (the last 30 days by campaign: target CPA and ROAS edits, budget, status and bid strategy changes with from and to); geo (countries across the account and by campaign, spend above the account's and the main geo's rates, spend from outside the targeted locations, cities for priority_geos); campaign (one campaign's 12-part template: totals, structure, month over month with impression share, ad groups with verdicts, keyword winners and losers with Quality Score, search terms, top ads, audiences, countries, landing pages and the best page per ad group, and the bidding story with 28 days before and after each change; short=true reads only the short template's parts). Every table is display-ready {title, columns, rows, total, notes}; capped lists say what they left out; an optional table Google refuses is named in missing. Each result echoes its basis (window and actions) so the QA can confirm every section agrees. Read-only. Output: {success, data:{section, basis, ...the section's tables, facts, notes, missing}, warnings}.
When to use it
Use for each section of a Google Ads account audit, with the exact arguments gads_audit_account's ordered_steps give: overview, changes, geo, then one campaign call per campaign. It returns the audit's computed tables; never pull the audit's raw data with gads_run_gaql_query instead.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
customer_id | string | yes | Google Ads customer ID, 10 digits, dashes stripped. A client account. |
section | string | yes | overview, changes, geo or campaign. |
quality_actions | array<string> | no | The confirmed quality actions, by name or id; required except for changes. Pass the same list to every section. |
meeting_action | string | no | The meeting or lead action, by name or id. Pass the same value to every section. |
audit_window | string | no | The user's named window: 'YYYY-MM,YYYY-MM' (whole months, inclusive), 'YYYY-MM-DD,YYYY-MM-DD', or one 'YYYY-MM'; turn 'April to September' into '2026-04,2026-09'. Omitted: the last 3 full calendar months plus this month to yesterday, on the account's own clock. A named end after yesterday is cut back to yesterday, and the notes say so. Pass the same value to every section. |
campaign_id | string | no | For section campaign: the campaign's numeric id, from the overview's mapper or gads_audit_account's campaigns. |
short | boolean | no | For section campaign: true reads only the short template's parts (verdict, structure, month over month, ad groups, auction and bidding, what didn't convert). Default false. |
priority_geos | array<string> | no | For section geo: country names or two-letter codes, e.g. ['US', 'United Kingdom']; each gets a cities table. |
good_period | array<string> | no | For section overview: the client's good months as 'YYYY-MM'; the full months inside the window get an average row. |
groups | object | no | Corrections to the proposed campaign groups: {campaign_id: 'brand' | 'non_brand' | 'competitor' | 'other'}. Pass the same corrections to every section. |
manager_id | string | no | Manager (MCC) login-customer-id, dashes stripped, only when reaching the account through a manager. |
Safeguards
Policy
Read-only: makes NO account changes. Copy every figure exactly as given: never recompute, re-round or add numbers by hand; a figure the document needs that no section gives is computed in code from these tables and named in Data and assumptions. Every figure reconciles to the Google Ads UI within +/-1% (the reconcile block says what to compare) or is flagged. Bound to the account's tenant; nothing is stored, and change history carries no editor emails.
Reminder
Notes are for you; tables and facts are for the client: no tool names, query fields or ids in the document. Say (inferred) where a note says inferred, and name every missing table in Data and assumptions.
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
invalid_argument | An unknown section, quality_actions missing for a section that needs them, a missing or non-numeric campaign_id, an action not in the account, an unsupported audit_window, or a campaign with no activity in the window. | Fix the argument from the message; use the ids and names gads_audit_account returned. | no |
manager_account | The id is a manager (MCC) account, which holds no campaigns. | Audit one of its client accounts: list them with gads_get_account_hierarchy, then pass that customer_id with this id as manager_id. | no |
result_too_large | One query returned more rows than a call folds (500,000); nothing was cut. | Narrow audit_window, or audit the campaigns one at a time. | no |
connection_not_found / account_forbidden / needs_reauth | Google Ads is not connected, the account is turned off for Claude in the Scalix console, or the login needs a reconnect. | Tell the user to connect or enable the account in the Scalix console, or to reconnect Google Ads. | no |
platform_unavailable / rate_limited | Google failed on its side (5xx) or rate-limited the call. | Retry with backoff; report a persistent outage. | yes |
Edge cases
- No whole quality conversion in the window: the threshold is n/a and every verdict is Too little data.
- Impression share exists for Search and Shopping only; elsewhere it is n/a.
- Google hides low-volume search terms: the coverage line says what share of spend the visible terms carry.
- The location report attributes slightly fewer conversions than the campaign report; the notes give both figures.
- An optional table Google refuses (Quality Scores, search terms, ads, audiences, countries, ad groups by country, landing pages, cities) is named in missing, never silently dropped.
- Change history reaches back 30 days; earlier changes can only be inferred from the monthly CPC and impression share, marked (inferred).
- Before-and-after days may reach before the audit window: change history is the prompt's one exception to the window.
- A start Google calls too old moves a day later, and a Google internal error on change details falls back to rows without them; the notes say which happened.