SCALIX help

← All tools

gads_check_naming_conventions

Google Ads read low risk

Part of the Account Structure Agent.

What it does

QA Google Ads names against the Scalix naming SOP and report where the account fails, with the exact fix per name. Account mode reads campaigns, ad groups, conversion actions, asset groups, experiments, audiences and labels (kinds adds shared_set, bidding_strategy, combined_audience); names mode checks proposed names before they are created. SOP format, parts separated by ' | ', ending in a date YYYY-MM or YYYY-MM-DD: campaign = Client | Type (Search, PMax, DG, D, YT, RMK) | Category (Brand, Non-Brand, Competitor, DSA, Remarketing, PLG, TOF, MOF, BOF) | Theme | [Intent] | Date; ad group = Client | Theme | Date; conversion = Client | Web or OCT | Category (e.g. Form Submitted, Demo Booked, Lead Qualified) | [Specific Action] | Date; other assets = Client | Description | Date. No vague names (General, Test, Campaign 1; Submit, Click, Conversion, Event). Cross-checks Type against the campaign's real type and Web/OCT against how Google Ads records the conversion. Returns a summary (pass rate, top issues), the failing and warnings_only names with each part labelled and its fix, a rules legend, and not_checked (system-named conversions, Google-made lists, experiment copies). Read-only.

When to use it

Use for a naming convention QA or audit ("check our naming", "which names break the SOP", "are these campaign names right"), and before creating campaigns, ad groups or conversion actions, to check the proposed names.

Inputs

NameTypeRequiredDescription
customer_idstringyes10-digit CID; strip dashes. A manager (MCC) account is refused: use a client account.
client_namestringnoThe client company name every name must start with, exactly. Omitted: inferred from the most common first part of the campaign and ad group names (the result says so), or the Client check is skipped.
namesarray<string>noProposed names to check instead of reading the account (max 200). Needs name_kind.
name_kindstringnoWith names: campaign, ad_group, conversion_action, or other (asset group, experiment, audience, label, shared set, portfolio bid strategy).
kindsarray<string>noWhat to read. Default: campaign, ad_group, conversion_action, asset_group, experiment, audience, label. Opt-in: shared_set, bidding_strategy, combined_audience.
campaign_idstringnoCheck one campaign and its ad groups and asset groups only.
include_pausedbooleannoDefault true: ENABLED and PAUSED names. false: ENABLED only. REMOVED is never checked.
limitintegernoMax names listed, failing first (default 100, max 500; the listing also stops near 35K characters). The summary counts every name.
manager_idstringnoOptional MCC login-customer-id.

Safeguards

Policy

Read-only: it never renames anything. A rename needs the user's approval through the update tools' preview, and the SOP asks for renames of existing assets to be documented.

Reminder

Report the pass rate, the failing names with their fixes, and the not_checked list; never call an account compliant when parts were not checked.

Errors

Error classMeansWhat to doRetry
INVALID_ARGUMENTnames without name_kind, an unknown kinds value, more than 200 names, a non-numeric campaign_id, or a client_name with '|'.Fix the named argument; the message lists the allowed values.no
MANAGER_ACCOUNTThe customer is a manager (MCC) account: it holds no names to check.Run it on a client account (gads_get_account_hierarchy).no
TOKEN_REVOKEDOAuth token expired/revoked.Refresh and retry once; else prompt reconnect (needs_reauth).yes
PERMISSION_DENIEDNo access to the account, or one kind could not be read.Confirm read access. A kind that fails alone is listed in not_checked; the other kinds still report.no
RESOURCE_EXHAUSTEDRate/quota exceeded (HTTP 429). A full run is up to 10 read operations.Backoff 5/10/20s cap 60s, then retry; pass kinds to read less.yes
INTERNAL_ERRORTransient Google server error (5xx).Retry after backoff.yes

Edge cases

  • No names for the kinds and filters given -> success with count 0 and a note.
  • Client name not given and not shared by half the campaign and ad group names -> the Client part is not checked, and not_checked says so.
  • System-named conversions (Store visits, Smart campaign, Firebase, UA, Floodlight, SA360) are counted in not_checked, not failed: rename them at the source.
  • Shopping, App, Local, Smart, Hotel and Travel campaigns have no SOP Type: the Type part is accepted as written and counted in not_checked.
  • Experiment and draft campaign copies, Smart-campaign ad groups, Google-made and shared audience lists, hidden conversions and ended experiments are skipped and counted.
  • A conversion owned by a manager account carries rename_in: rename it there.
  • Proposed names are not cross-checked against Google Ads types (nothing exists yet).