gads_upload_call_conversions
Google Ads write high risk
Part of the Offline Conversion Agent.
What it does
Upload offline call conversions (ConversionUploadService) keyed by caller_id (E.164) + call_start_date_time + conversion_action + conversion_date_time, with optional conversion_value/currency_code and EU consent. Uses partial_failure=true. conversion_value is plain currency (NOT micros). WRITE with preview->approve->commit: preview shows row count, total value, consent state + preview_id; commit uploads + audit. Returns {total_uploaded, successful, failed, errors}. Processing is asynchronous on Google's side. 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
Use to import phone-call conversions (e.g., from a call-tracking system). Preview row count/value/consent, confirm the calls are attributable and consented, then commit. Set EU consent for EEA/UK/CH callers.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
customer_id | string | yes | 10-digit CID; strip dashes. |
conversions | array | yes | Rows: {caller_id (E.164, e.g. +14155551234), call_start_date_time, conversion_action (resource_name or bare id), conversion_date_time, conversion_value (plain currency), currency_code (ISO-4217)}. |
consent_ad_user_data | string | no | GRANTED/DENIED/UNSPECIFIED; required GRANTED for EEA/UK/CH. |
consent_ad_personalization | string | no | GRANTED/DENIED/UNSPECIFIED; required GRANTED for EEA/UK/CH. |
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. |
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
Caller phone numbers are personal data — upload only with consent, set EU consent fields (Consent Mode), and never log/store the raw caller_id. Do not upload calls you cannot attribute or to inflate results.
Reminder
caller_id is PII; set EU consent, never log the number, purge after upload. The ConversionUploadService sunset took effect June 15, 2026 (allowlisted tokens only) — a sunset warning rides on every preview and commit response.
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
PARTIAL_FAILURE | Some call rows failed (e.g., caller_id not matched to a click, time outside window) while others succeeded. | Report failed indices + reasons; the rest were accepted. | no |
INVALID_ARGUMENT | Malformed caller_id (non-E.164) or timestamps. | Surface the platform message; normalize to E.164 and re-preview. | no |
CONVERSION_ACTION_NOT_UPLOAD_TYPE | Conversion action is not a call/upload type. | Use a CLICK_TO_CALL/PHONE_CALL_LEAD or UPLOAD conversion action. | 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 |
Edge cases
- conversion_value is plain currency, NOT micros.
- caller_id must be E.164; call_start_date_time must match a tracked Google-forwarded call within the lookback window or the row is rejected.
- conversion_date_time must be after call_start_date_time and not in the future.
- EEA rows without consent accepted but unattributed.
- validate_only (preview) and partial_failure (commit) are mutually exclusive.
- Raw caller_id must never appear in logs/audit — only counts.
- Expired token -> refresh once and retry; preview_id TTL expiry -> re-preview.