gads_create_call_extension
Google Ads write medium risk
Part of the Ad Extensions Agent.
What it does
Create a CallAsset (phone number + country code, optional call-reporting/conversion action) and link it at customer/campaign/ad-group level with field_type=CALL via the Asset-based API. The commit returns the created asset and link resource_names. Accuracy (v24 CallAsset): phone_number is the advertiser's raw number, e.g. '(123)456-7890' or '1234567890', and country_code its two-letter country ('US' or 'us'); both are sent as given and Google parses the number with the country at preview, with no E.164 conversion. call_conversion_action only has effect with USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION; without it Google uses the default conversion action. Flow: preview (validate_only=true to catch number-format/verification errors) -> diff (number, country, reporting state, scope) -> approval -> execute (atomic: asset and link together or neither) -> confirm + immutable audit log. 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 add a verified business phone number so users can call from the ad. Confirm the number is owned by the advertiser and the country_code matches; set call_conversion_reporting_state to USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION only with a valid conversion action, otherwise USE_ACCOUNT_LEVEL_CALL_CONVERSION_ACTION (default) or DISABLED.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
customer_id | string | yes | 10-digit CID; strip dashes. |
phone_number | string | yes | The advertiser's phone number as dialled in its country (v24 CallAsset examples: '1234567890', '(123)456-7890'). Sent as given; Google parses it with country_code at preview. No E.164 conversion is done. |
country_code | string | yes | Two-letter country code of the number (e.g. US, IN); Google takes either case. Sent as given. |
call_conversion_reporting_state | string | no | Enum USE_ACCOUNT_LEVEL_CALL_CONVERSION_ACTION / USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION / DISABLED. Defaults to USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION when call_conversion_action is given, else USE_ACCOUNT_LEVEL_CALL_CONVERSION_ACTION. |
call_conversion_action | string | no | Conversion-action resource. Implies USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION when the state is omitted, and is refused with any other state (it would have no effect; never silently dropped). Optional with that state: without it Google uses the default conversion action (v24 CallAsset). |
scope | string | yes | Enum CUSTOMER/CAMPAIGN/AD_GROUP. |
scope_id | string | no | Required when scope != CUSTOMER. |
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
The phone number must belong to the advertiser and connect to the advertised business; no premium/deceptive numbers. Call extensions may require number verification; do not spoof or use third-party numbers (Misrepresentation / Unacceptable Business Practices).
Reminder
Treat caller phone numbers as sensitive; never log; do not retain beyond this request.
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
INVALID_PHONE_NUMBER | Number invalid for the given country_code or unparseable. | Surface the field error; request a valid number/country pair. | no |
PHONE_NUMBER_NOT_SUPPORTED | Number type/country not supported for call assets. | Inform the user; request a supported number. | no |
FIELD_ERROR_REQUIRED | scope_id missing for a campaign or ad_group scope. | Require the missing field. | no |
TOKEN_REVOKED | Token revoked/expired. | Set needs_reauth; prompt reconnect. | no |
RESOURCE_EXHAUSTED | Quota/QPS exceeded (HTTP 429). | Backoff 5/10/20s cap 60s, retry once. | yes |
PLATFORM_UNAVAILABLE | Backend 5xx/INTERNAL. | Retry once after backoff. | yes |
Edge cases
- Number may need separate verification before serving -> note pending verification status.
- Call extensions don't serve on all devices/placements; mobile-primary — advise expectation.
- Duplicate number asset -> existing reused; new link still made.
- state=USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION without call_conversion_action -> Google uses the default conversion action (v24 CallAsset); not refused.
- Default state when unset is USE_ACCOUNT_LEVEL_CALL_CONVERSION_ACTION (USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION when call_conversion_action is given); UNSPECIFIED/UNKNOWN are not settable.
- validate_only=true creates nothing.
- preview TTL expiry -> re-preview.