SCALIX help

← All tools

gads_pause_campaign

Google Ads write medium risk

Part of the Google Ads Manager Agent.

What it does

Pause one or more campaigns (status=PAUSED), with an optional audit-logged reason. SCALIX SOP PRE-FLIGHT: the account's ENABLED campaigns are read first — if the pause would stop every enabled campaign, a prominent warning says all delivery and conversions will stop; and any target using Smart Bidding (TARGET_CPA/TARGET_ROAS/MAXIMIZE_CONVERSIONS/MAXIMIZE_CONVERSION_VALUE) warns that pausing resets its learning period on resume. PREVIEW->APPROVE->COMMIT + audit. The preview shows each campaign's current status next to PAUSED, with its daily budget and pacing. An id already in the target status is flagged; when all of them are, the call returns changed: false and no preview_id, since there is nothing to approve. 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

Show the estimated daily spend being stopped and surface the learning-period and last-campaign warnings before asking for approval.

Inputs

NameTypeRequiredDescription
customer_idstringyes10-digit CID, dashes stripped; operating account.
campaign_idsarrayyesOne or more numeric campaign IDs (or resource_names) to pause. Bulk supported.
reasonstringnoOptional human reason recorded in the audit log.
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

Pausing is reversible and content-neutral; the only requirement is explicit approval and an audit log. Do not pause as a step in a circumvention workflow (e.g. pause-disapproved-then-relaunch-elsewhere to dodge enforcement).

Reminder

Preview with validate_only, get explicit approval, and log the reason; pausing stops spend but does not delete the campaign.

Errors

Error classMeansWhat to doRetry
CUSTOMER_NOT_FOUNDCustomer ID not found / not accessible.Verify CID and access; prompt re-auth if needed.no
TOKEN_REVOKEDOAuth token invalid/revoked (401).Refresh; if still failing set needs_reauth.no
CAMPAIGN_NOT_FOUNDOne or more campaign IDs not found in this account.Verify the IDs; in bulk, the missing ones surface via partial_failure.no
OPERATION_ON_MANAGER_ACCOUNTCannot mutate campaigns on an MCC.Use the child operating account.no
INVALID_ARGUMENTInvalid status transition (e.g. campaign already REMOVED).Surface the platform message; a REMOVED campaign cannot be paused.no
PARTIAL_FAILUREBulk pause: some campaigns paused, others failed.Report per-campaign results with platform messages; retry only the failed IDs.no
PERMISSION_DENIEDMissing write scope / out-of-bearer-scope (403).Confirm scope + role; re-consent.no
RESOURCE_EXHAUSTEDRate/quota exceeded (429).Backoff 5->10->20s cap 60s, honor retryDelay, retry once.yes
PLATFORM_UNAVAILABLEGoogle Ads API 5xx/INTERNAL.Retry once with backoff; verify status before re-applying.yes
account_inactiveThe Google Ads account is suspended or not enabled, so Google rejects every mutate - including validate_only=true previews. Reads keep working.Resolve the account status in the Google Ads UI (billing/policy). Do NOT tell the user to reconnect Google Ads; reconnecting cannot fix an account-state rejection.no

Edge cases

  • Already PAUSED -> success with changed: false and a note, and no preview_id (nothing to approve).
  • REMOVED campaign cannot be paused -> INVALID_ARGUMENT.
  • Bulk: the commit is atomic, so one id Google rejects fails the request and nothing is applied.
  • Bulk over 10,000 ops -> split the request.
  • validate_only preview never executes; commit is separate and idempotent (re-pausing a paused campaign is safe).
  • Pausing frees daily budget but does not change the budget resource amount.
  • Expired token mid-call -> refresh once and retry.