SCALIX help

← All tools

gads_create_responsive_search_ad

Google Ads write high risk

Part of the RSA Copy Agent.

What it does

Create a Responsive Search Ad in a Search ad group (AdGroupAdService.MutateAdGroupAds). ACCEPTS WHAT GOOGLE ACCEPTS: 3-15 headlines and 2-4 descriptions, each a plain string or {text, angle?, pinned_field?}. Hard blocks are Google's own rules only — counts, 30/90 char limits (the offending asset is named), and pin positions (headlines: HEADLINE_1/2/3; descriptions: DESCRIPTION_1/2). The Scalix SOP framework (15 headlines across the 7 angles, 3-4 descriptions, <=2 pins) surfaces as ADVISORY preview warnings, never refusals; `angle` labels are optional and stripped before the API call. Returns applied:{resource_names, headline_count, description_count, pinned_count}. PREVIEW SEMANTICS: the first call (no preview_id) is sent to the Google Ads API in validation mode — field, enum, policy and permission errors surface AT PREVIEW, nothing is changed, and the response returns a preview_id. To apply, show the preview to the user, get their approval, and re-call with that preview_id and IDENTICAL arguments within 30 minutes; changed arguments or an expired token fail closed to a fresh preview. validate_only=true forces another preview; validate_only=false alone never commits.

When to use it

Creating a responsive search ad (RSA). gads_generate_rsa_copy is the recommended drafting path (15 angle-labelled headlines), but any valid Google set — plain strings included — is accepted; SOP deviations warn, never block. Use after gads_generate_rsa_copy has produced the headlines and 4 descriptions. Confirm the pinned slots with the buyer before committing. The campaign blueprint and policy pre-checks come from gads_plan_search_campaign.

Inputs

NameTypeRequiredDescription
ad_group_idstringyesSearch ad group id; forms the ad_group resource_name.
customer_idstringyes10-digit CID, dashes stripped.
headlinesarrayyes3-15 headline assets, each text <=30 chars (emoji count >=2). Optional per-asset pinned_field (HEADLINE_1, HEADLINE_2, or HEADLINE_3) and optional `angle` label (Scalix advisory, stripped before the API call). Verify length client-side.
descriptionsarrayyes2-4 description assets, each text <=90 chars. Optional pinned_field (DESCRIPTION_1 or DESCRIPTION_2).
final_urlsarrayyesLanding page URL(s); must be reachable and consistent with copy claims.
path1stringnoDisplay path segment 1, <=15 chars.
path2stringnoDisplay path segment 2, <=15 chars (only valid if path1 set).
statusstringnoAdGroupAdStatus ENABLED|PAUSED, enum-normalized; tool defaults to PAUSED unless go-live approved.
validate_onlybooleannoOptional. true forces another preview even with a preview_id; false is DEPRECATED and no longer commits — only a valid preview_id applies the write.
preview_idstringnoOmit it to preview: nothing is applied, and the call returns a preview_id bound to this exact request. Pass it only after the user approves that preview in a later message, with the same arguments (leave out validate_only, and add any confirmation flag the preview names). Single-use, expires in 30 minutes; changed arguments need a fresh preview.

Safeguards

A change in two steps. The first call previews and changes nothing; Claude shows you the preview and applies it only after you approve, within 30 minutes and with the same arguments. Every applied change goes to the audit log. How changes are approved.

Policy

RSA copy must meet Google editorial standards: no excessive capitalization, no gimmicky punctuation/symbols, no word/claim repetition, no clickbait, correct spelling/grammar — and no claim the landing page can't support (Misrepresentation = egregious, immediate suspension). Honor Campaign text guidelines (term exclusions, messaging restrictions). AI-generated copy meets the same bar and must not deceive.

Reminder

Generated/edited copy must be truthful and on-policy; never craft an RSA to revive disapproved content (Circumventing Systems).

Errors

Error classMeansWhat to doRetry
CUSTOMER_NOT_FOUNDCustomer ID not found / unauthorized.Verify CID and authorization; re-auth if revoked.no
TOKEN_REVOKEDOAuth credential revoked/expired.Prompt reconnect (needs_reauth).no
POLICY_FINDINGCopy violates editorial/advertising policy (e.g. excessive punctuation, disapproved or unsupported claim) — surfacing Google's policy finding from policy_summary / validate_only.Show the exact policy reason; revise copy and re-preview. Do not request an exemption to push known-violating copy.no
INVALID_ARGUMENTAsset rejected (too few/many headlines or descriptions, length over limit, invalid pinned_field position, bad URL, path2 without path1) — surfacing Google's message.Surface exact error; fix lengths/counts/URL and re-preview.no
TOO_MANY_ADSThe ad group already holds the maximum number of enabled RSAs.Pause/remove an existing RSA before adding another, or create the new one as PAUSED.no
PERMISSION_DENIEDScope/role does not permit writes here.Confirm adwords scope and editor role on this CID.no
MANAGER_ACCOUNT_WRITECannot create ads on an MCC.Target a client account.no
PARTIAL_FAILUREA bulk ad create partially succeeded: some ads created, others rejected.Return success:true with per-row warnings (index + Google's error); re-preview only the failed rows.no
RESOURCE_EXHAUSTEDRate/quota exceeded (429).Backoff 5->10->20s cap 60s; honor retryDelay.yes
PLATFORM_UNAVAILABLEGoogle Ads API 5xx.Re-check state, then retry to avoid duplicate ads.yes

Edge cases

  • Fewer than 3 headlines or 2 descriptions -> INVALID_ARGUMENT; enforce minimums before sending.
  • Headline >30 / description >90 chars after counting emoji as >=2 -> reject client-side with the offending asset.
  • Over-pinning (pinning every asset) reduces ad strength — warn even though it validates.
  • path2 set without path1 -> INVALID_ARGUMENT.
  • Exceeding the enabled-RSA limit in a group -> TOO_MANY_ADS; create PAUSED or replace one.
  • ad_strength is not returned by the create call — direct the user to gads_get_ad_strength after creation.
  • Preview TTL expiry -> re-preview; expired token -> refresh once, retry; commit idempotency to avoid duplicate ads on retry.