gads_get_tracking_setup
Google Ads read low risk
Part of the Tracking Audit Agent.
What it does
Read a client account's conversion tracking setup and judge it against the tracking checklist: auto-tagging; the account-level tracking template compared with the standard template (same parameters and values, any order) and its final URL suffix; every campaign, ad group and ad that overrides them; conversion tracking status and the account that owns the conversion actions (read there when it is a manager); enhanced conversions for leads and the customer data terms (API v24 fields, approximate); every conversion action (category, source, Primary or Secondary, counting, conversions in 30 days by conversion date, the tag's last ping, last conversion); and Google's offline-upload diagnostics per upload client and per conversion action (status, accepted, pending and failed uploads, last upload, alerts). Each finding is a check: pass, problem, suspected (a pattern, not a proof, such as two Primary actions recording the same numbers day by day), not_verified (with the reason) or info. Low volume is never judged. Returns {success, data:{customer_id, account_name, time_zone, window, settings, standard_template, overrides, conversion_actions, offline:{clients, actions}, checks, check_counts}, warnings}. Read-only.
When to use it
Use in a conversion tracking audit (start with tracking_audit) or whenever the user asks whether auto-tagging, the tracking template, conversion actions or offline conversion uploads work in Google Ads.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
customer_id | string | yes | The client's Google Ads account, 10 digits (dashes are stripped). A manager (MCC) account is refused: run it on a client account. |
manager_id | string | no | Manager (MCC) id sent as login-customer-id when the account is reached through a manager; omit otherwise. |
Safeguards
Policy
Read-only reporting under the adwords scope, for the bearer's own enabled accounts only (a manager that owns the conversion actions must be enabled for Claude too). Quote the numbers and statuses as returned; a suspected or not_verified check is never reported as a proven fault.
Reminder
Counts are by conversion date and the newest days still fill in. Enhanced-conversion fields are approximate in API v24. Fixes go through gads_update_account_settings or gads_update_conversion_action with preview and approval.
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
invalid_argument | customer_id or manager_id is not 10 digits. | Pass the Google Ads ids as Google Ads shows them (dashes are fine). | no |
manager_account | This is a manager (MCC) account: its client accounts carry the tracking. | List the client accounts with gads_get_account_hierarchy and run it on one of them. | no |
permission_denied | The connected Google login cannot read this account. | Turn the account on for Claude in the Scalix console, or pass manager_id. | no |
needs_reauth | The Google connection's token is no longer valid. | Reconnect Google in the Scalix console. | no |
rate_limited | Google Ads API quota hit. | Wait a minute, then call again. | yes |
Edge cases
- A query Google refuses becomes one not_verified check and the rules that need it are skipped (counts show null, pings 'not read'); the rest of the setup is still returned.
- Google's 'never' (the epoch in the account's time zone) is shown as never; GA4-imported actions are never judged on tag pings.
- No offline upload action, no upload activity and no other CRM route (GA4 lead stage, Salesforce or store-sales import) is reported as no CRM results reaching Google Ads; it is not judged when the actions or diagnostics could not be read.