gads_copy_campaign
Google Ads write high risk
Part of the Google Ads Manager Agent.
What it does
Copies a campaign SHELL (new budget + campaign settings + bidding) into a new campaign — ad groups, ads, and criteria are NOT copied; recreate them with the create tools with a clear copy label, defaulting to PAUSED. Implemented by reading the source structure (GoogleAdsService.Search) then creating a new budget + campaign via GoogleAdsService.Mutate with temp resource names (there is no native server-side clone). Useful for A/B variants and seasonal re-launches. Money fields carried over are micros; the preview's budget_display gives the budget in the account currency (e.g. INR). PREVIEW->APPROVE->COMMIT: step 1 build the clone and validate_only=true; step 2 plain-English diff (source -> new name, what is copied: budget + campaign settings only, new status, and the source's EU political-ads declaration, which the copy keeps); step 3 explicit approval; step 4 execute (atomic: the budget and campaign are created together or not at all); step 5 return new resource_name + timestamp + audit log. Returns standard success/error envelope. 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 spin up an A/B variant or re-launch a proven campaign. Confirm exactly what is copied (budget + campaign settings — ad groups/ads/criteria are NOT copied; recreate them with the create tools), give the copy an unambiguous variant name, and require approval before committing. Default the copy to PAUSED so it doesn't spend until the user goes live. Refuse if the intent is to relaunch disapproved content.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
customer_id | string | yes | 10-digit CID, dashes stripped; operating account. |
source_campaign_id | string | yes | Numeric ID (or resource_name) of the campaign to copy. |
new_name | string | yes | Name for the copy; must be unique and should clearly mark it as a variant (avoids looking like circumvention). |
new_budget_amount_micros | integer | no | Override budget (micros); else create a new budget mirroring the source (never silently reuse a shared budget). |
status | enum | no | ENABLED|PAUSED; defaults PAUSED. |
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
Duplicating a campaign must never be used to recreate or relaunch DISAPPROVED content or to evade a suspension — that is 'Circumventing Systems' (egregious, immediate suspension). Label the copy clearly so it is not mistaken for a circumvention of a disapproved original. Copied creative is re-reviewed and must still meet editorial/Misrepresentation policy.
Reminder
Preview with validate_only, approve the diff, default PAUSED; never copy a campaign to relaunch disapproved content or bypass enforcement, and label variants clearly.
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 | Source campaign not found in this account. | Verify source_campaign_id (and that it isn't REMOVED). | no |
OPERATION_ON_MANAGER_ACCOUNT | Cannot create campaigns on an MCC. | Use the child operating account. | no |
DUPLICATE_CAMPAIGN_NAME | new_name already exists in the account. | Choose a unique variant name. | no |
INVALID_ARGUMENT | Preview validation failed reconstructing the clone (e.g. a source setting invalid in the new context). | Surface the platform message verbatim; adjust the offending field and re-preview. | no |
PARTIAL_FAILURE | One of the budget/campaign pair failed while the other succeeded. | Report which op failed with the platform message; the copy never includes children, so nothing else is left dangling. | 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 nothing partially created before re-running. | yes |
Edge cases
- No native clone exists — the tool reads the source settings and recreates budget + campaign with temp resource names in one atomic Mutate.
- Never silently reuse the source's shared budget; create a new budget (or take an explicit override) so the copy doesn't draw down the original's shared budget.
- Copied ads are re-reviewed; a clean source does not guarantee the copy is approved.
- Default PAUSED; ENABLE only on explicit go-live.
- Commit must be idempotent on retry to avoid double-cloning.
- Expired token mid-call -> refresh once and retry.