gads_resume_campaign
Google Ads write high risk
Part of the Google Ads Manager Agent.
What it does
Resumes (enables) a paused campaign by setting campaign.status=ENABLED via CampaignService.MutateCampaigns update with update_mask='status'. ENABLING resumes serving and real spend immediately. Bulk-capable (one atomic request). PREVIEW->APPROVE->COMMIT: step 1 validate_only=true; step 2 plain-English diff (campaign name(s): PAUSED -> ENABLED, the daily budget that will start spending again, monthly pacing implication); step 3 explicit approval; step 4 execute (atomic); step 5 confirm + timestamp + audit log. Returns standard success/error envelope. The preview shows each campaign's current status next to ENABLED, with its daily budget, pacing and monthly cap (30.4 times the daily budget), and warns that spend starts at once. 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 bring a paused campaign back online. Because ENABLING spends immediately, show the daily budget that resumes and the monthly pacing implication, capture a reason, and require explicit go-live approval before committing. Do not resume disapproved campaigns.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
customer_id | string | yes | 10-digit CID, dashes stripped; operating account. |
campaign_ids | array | yes | One or more numeric campaign IDs (or resource_names) to enable. Bulk supported. |
reason | string | no | Optional human reason recorded in the audit log. |
validate_only | boolean | no | Optional. 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_id | string | no | Omit 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
Enabling a campaign starts real spend immediately, so it requires explicit approval. Do not resume a campaign whose content is disapproved or whose serving would relaunch content used to circumvent enforcement; restricted-vertical eligibility must still hold.
Reminder
Preview with validate_only and get explicit approval; enabling spends real money immediately — confirm the daily budget and pacing.
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
CUSTOMER_NOT_FOUND | Customer ID not found / not accessible. | Verify CID and access; prompt re-auth if needed. | no |
TOKEN_REVOKED | OAuth token invalid/revoked (401). | Refresh; if still failing set needs_reauth. | no |
CAMPAIGN_NOT_FOUND | One 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_ACCOUNT | Cannot mutate campaigns on an MCC. | Use the child operating account. | no |
INVALID_ARGUMENT | Invalid status transition (e.g. campaign is REMOVED and cannot be re-enabled). | Surface the platform message; a REMOVED campaign cannot be resumed. | no |
PARTIAL_FAILURE | Bulk resume: some campaigns enabled, others failed. | Report per-campaign results with platform messages; retry only the failed IDs. | no |
PERMISSION_DENIED | Missing write scope / out-of-bearer-scope (403). | Confirm scope + role; re-consent. | no |
RESOURCE_EXHAUSTED | Rate/quota exceeded (429). | Backoff 5->10->20s cap 60s, honor retryDelay, retry once. | yes |
PLATFORM_UNAVAILABLE | Google Ads API 5xx/INTERNAL. | Retry once with backoff; verify status before re-applying. | yes |
Edge cases
- Already ENABLED -> success with changed: false and a note, and no preview_id (nothing to approve).
- REMOVED campaign cannot be re-enabled -> INVALID_ARGUMENT (must be recreated/copied instead).
- Enabling resumes spend at the full daily budget immediately — surface pacing in the preview.
- A disapproved campaign may ENABLE but still not serve; warn that policy status governs serving.
- Bulk: the commit is atomic, so one id Google rejects fails the request and nothing is applied; split if over 10,000 ops.
- validate_only preview never executes; commit separate + idempotent on retry.
- Expired token mid-call -> refresh once and retry.