gads_audit_account
Google Ads skill low risk
Part of the Google Ads Audit Agent.
What it does
Starts a Google Ads account audit the ScalixAI way: the audit prompt's method, with the server doing the arithmetic (ADR-108). It reads the account live: name, currency, time zone and status; the audit window (the user's named months or dates exactly, else the last 3 full calendar months plus this month to yesterday, on the account's own clock, the current month labelled MTD); every conversion action with its source (web tag, CRM upload, GA4), Primary flag, counting, value, click-through window, attribution model and what it recorded in the window; section 0's flags (Primary actions that are not the quality actions, lead actions counting Many, enabled actions that never fired); and every campaign that spent, with a proposed group (brand, non-brand, competitor, or Display/Demand Gen/PMax) and whether it is small enough for the short template. Quality actions are resolved by name or id and never guessed: with none given it proposes candidates for the user to confirm. It returns the inputs still missing, the method (role, how to run, analysis rules, the verdict rule) and ordered_steps: the exact gads_audit_data calls (overview, changes, geo, one campaign call per campaign), then build_audit_report for the document and the logo, then the Word build. Read-only: it changes nothing. Output: {success, data:{task, platform, account, window, quality_actions, meeting_action, currency, window_notes, conversion_actions, action_flags, proposed, campaigns, groups, inputs_missing, method, ordered_steps, report_with}, warnings}.
When to use it
Use first whenever the user asks for a Google Ads account audit, a month-over-month spend analysis, a health check or 'what went wrong with my account': it reads the account, sets the audit window, inventories the conversion actions and campaigns, and returns the exact gads_audit_data calls, then build_audit_report for the Word document.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
customer_id | string | yes | Google Ads customer ID, 10 digits, dashes stripped. A client account: a manager (MCC) id is refused. |
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. |
quality_actions | array<string> | no | The client's quality conversion actions, by exact name or id, e.g. ['Medium Fit Demos', 'High Fit Demo']. Omitted: the result proposes candidates; confirm them with the user, then call again. An unknown name is refused with the closest names. |
meeting_action | string | no | The meeting or lead action, by exact name or id, e.g. 'Meeting Booked'; shown as '26 ($917)' throughout. |
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. Never guess the quality actions: they are the client's choice, confirmed by the user. Every figure in the audit comes from the server's computed tables (gads_audit_data), copied exactly; anything else is computed in code from those tables, never by hand, and every figure reconciles to the Google Ads UI within +/-1% or is flagged.
Reminder
This is the plan and the inventory, not the audit: run ordered_steps, then write the document from build_audit_report's spec. Fixes the audit recommends still go through preview, approval and execute with their write tools.
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
invalid_argument | An audit_window in an unsupported form or starting after yesterday, or a quality or meeting action that is not in the account (the message names the closest). | Fix the argument from the message; never guess an action name. | 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 quality actions given: proposed lists likely ones and nothing is pulled until the user confirms them.
- An account that is not ENABLED: a warning says so first; its history in the window can still be audited.
- On the 1st of a month the default window is the last 3 full months, with no MTD.
- A named window reaching past yesterday is cut back to yesterday, and the notes say so.
- A conversion action owned by a manager account shows with its activity, marked as not listed in this account.
- A campaign under 5% of account spend gets the short template (short=true in its step).