gads_update_conversion_action
Google Ads write medium risk
Part of the Conversion Tracking Agent.
What it does
Update a conversion action's mutable fields (name, status, category, counting_type, value settings, lookback windows, attribution model, primary_for_goal). The preview shows before -> after values for the fields being changed, and a counting_type equal to the action's current value is named as a no-op (the switch gate applies only to genuine changes). SCALIX SOP: if `counting_type` differs from the action's CURRENT value (read first), the call is BLOCKED with error_class 'reason_required' until a `reason` is supplied — switching counting type alters historical and future conversion numbers, can corrupt Smart Bidding signals, and makes period-over-period data unreliable. The reason is written to the immutable audit log and a 14-day monitoring warning is returned. Use this tool to promote a secondary action once it has been observed: pass primary_for_goal=true (biddability is the primary_for_goal flag, never `status`). primary_for_goal=false demotes it back to reporting-only. PREVIEW->APPROVE->COMMIT. 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.
When to use it
Editing — or DELETING via status=REMOVED — a conversion action. Preview each field's current vs proposed value. A counting-type switch needs a documented reason and a 14-day monitoring period.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
customer_id | string | yes | 10-digit CID; strip dashes. |
conversion_action_id | string | yes | ID of the conversion action to update. |
name | string | no | New name. |
status | string | no | ENABLED re-enables via update. REMOVED permanently DELETES the action — sent as a v24 remove operation (update.status cannot express it; historical conversions stay in reports). HIDDEN is NOT settable via the API (Google blocks it) — hide in the UI, or set primary_for_goal=false to stop it influencing Smart Bidding. Lifecycle only, NOT biddability. |
category | string | no | New category (same enum set as create). |
counting_type | string | no | ONE_CONVERSION or MANY_CONVERSIONS. |
value_settings | object | no | Partial: any of default_value (currency, not micros), default_currency_code, always_use_default_value — each maps to its own mask path. |
attribution_model | string | no | GOOGLE_ADS_LAST_CLICK or GOOGLE_SEARCH_ATTRIBUTION_DATA_DRIVEN. |
primary_for_goal | boolean | no | true = PRIMARY (biddable: feeds Smart Bidding for campaigns whose conversion goal includes this category). false = SECONDARY (reported only). This, not `status`, is Google's primary/secondary flag. Promote with true after a 7-day observation window. |
click_through_lookback_window_days | integer | no | 1-90. |
view_through_lookback_window_days | integer | no | 1-30. |
manager_id | string | no | Optional MCC login-customer-id. |
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. |
reason | string | no | Why this change is being made. REQUIRED when counting_type changes; audit-logged. |
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
Changing a conversion action's value, counting, or attribution alters reported results and Smart Bidding behavior — do not change it to flatter reporting. Removing/hiding an action that bidding optimizes toward can disrupt delivery; confirm intent. No PII/sensitive data in names/labels.
Reminder
Edits to value/attribution change reported numbers and bidding; confirm the user understands the downstream effect.
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
NO_UPDATES | No updatable fields were provided. | Provide at least one field to change. | no |
NOT_FOUND | No conversion action with that ID. | Confirm the ID via gads_list_conversion_actions. | no |
INVALID_ARGUMENT | Invalid enum/window/currency value. | Surface the platform message; correct the value and re-preview. | no |
TOKEN_REVOKED | OAuth token expired/revoked. | Refresh and retry once; else prompt reconnect (needs_reauth). | yes |
CUSTOMER_NOT_FOUND | Customer ID not found/accessible. | Verify the CID is authorized. | no |
PERMISSION_DENIED | No access or out-of-bearer-scope write. | Confirm access and write scope; else refuse. | no |
RESOURCE_EXHAUSTED | Rate/quota exceeded (HTTP 429). | Backoff 5/10/20s cap 60s, then retry. | yes |
INTERNAL_ERROR | Transient Google server error (5xx). | Retry after backoff. | yes |
account_inactive | The 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
- Only fields present go into update_mask — omitted fields are untouched (avoid accidental resets).
- default_value is plain currency, not micros.
- status=REMOVED is permanent deletion via a remove operation — confirm explicitly. status=HIDDEN returns a clean unsupported error (API-blocked); other fields passed alongside REMOVED are ignored.
- Changing attribution to DATA_DRIVEN requires enough conversion volume; Google may reject or revert -> surface the message.
- Preview changes nothing; preview_id TTL expiry -> re-preview; expired token -> refresh once and retry.