SCALIX help

← All tools

gads_enable_ad_group

Google Ads write medium risk

Part of the Google Ads Manager Agent.

What it does

Enable a paused ad group by setting ad_group.status = ENABLED via AdGroupService.MutateAdGroups update with update_mask=status. The ad group (and its eligible, approved ads) resumes serving and can begin spending against the campaign budget immediately. PREVIEW->APPROVE->COMMIT: validate_only=true dry run -> plain-English confirmation (ad group, current status -> ENABLED, that it will start serving/spending) -> explicit approval -> execute -> confirm with UTC timestamp + audit log. The preview shows the ad group's name and current status next to ENABLED, and warns that serving and spend start at once (also when the status can't be read). 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

Use to resume a paused ad group the user explicitly wants live. Make clear it will start serving and spending against the campaign budget right away; preview with validate_only and apply only on explicit approval.

Inputs

NameTypeRequiredDescription
ad_group_idstringyesNumeric ad group id; forms resource_name with customer_id.
customer_idstringyes10-digit CID, dashes stripped.
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

No content-policy risk, but enabling resumes spend — confirm explicitly. Do not enable an ad group hosting content that was disapproved (re-serving disapproved content can compound enforcement); resolve the policy issue first.

Reminder

Enabling resumes real spend immediately — confirm and log; never re-enable disapproved content to evade review.

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
INVALID_ARGUMENTStatus update rejected (e.g. ad group removed) — surfacing Google's message.Surface exact error; verify ad group state.no
PERMISSION_DENIEDScope/role does not permit writes here.Confirm adwords scope and editor role on this CID.no
MANAGER_ACCOUNT_WRITECannot mutate ad groups on an MCC.Target a client account.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.yes

Edge cases

  • Ad group already ENABLED -> success with changed: false and its current state, and no preview_id (nothing to approve).
  • Cannot enable a REMOVED ad group -> INVALID_ARGUMENT.
  • Enabling does not serve if the parent campaign is paused or budget is exhausted — the spend warning says so, so the user isn't surprised by zero serving.
  • Ads inside may still be disapproved and won't serve even when the group is enabled.
  • One ad group per call; the commit is atomic.
  • Preview TTL expiry -> re-preview before commit; expired token -> refresh once, retry.