gads_create_promotion_extension
Google Ads write medium risk
Part of the Ad Extensions Agent.
What it does
Create a PromotionAsset (promotion target text + discount via either percent_off or money_amount_off, optional promotion_code/orders_over_amount, occasion enum, redemption start/end dates, language) and link it with field_type=PROMOTION. Asset-based promotion extension. Returns {asset_resource_name, link_resource_name, scope}. Accuracy: money_amount_off and orders_over_amount are sent in standard MICROS (value x 1e6) with currency_code; percent_off uses the API's fraction-micros scale where 1,000,000 == 100% (live-verified 2026-07: 20% is sent as 200,000; Google's own doc phrase '1 million = 1%' contradicts its live API), supports at most 2 decimal places, and both bounds are validated pre-API. Redemption dates are sent as given (YYYY-MM-DD) and are not checked locally. Flow: preview (validate_only=true) -> diff (offer, discount, code, dates) -> approval -> execute (atomic: the asset and its link together) -> confirm + immutable audit log. The preview's amounts give the discount in plain units (20%, 150.00 INR). 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
Creating a promotion extension. Use to surface a real, time-bound discount/coupon. Provide exactly one of percent_off or money_amount_off, confirm the offer is live on the landing page, set accurate redemption start/end dates, and pass money amounts in currency units (the tool converts them to micros).
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
customer_id | string | yes | 10-digit CID; strip dashes. |
promotion_target | string | yes | What is promoted (the promo headline); keep concise — Google truncates long targets in display. |
discount_modifier | string | no | Enum UP_TO (the only modifier Google defines). Omit — or pass NONE — for an exact discount; the field is then left unset (Google's enum has no NONE member). |
percent_off | number | no | Percent discount as a number (20 = 20%); converted x1e4 to fraction-micros (20 -> 200,000; 1,000,000 == 100%). Range (0, 100], max 2 decimal places — violations fail pre-API with the limit named. Provide exactly this OR money_amount_off. |
money_amount_off | number | no | Absolute discount in currency; converted to standard micros. Requires currency_code. |
currency_code | string | no | Required when money_amount_off or orders_over_amount is set. |
promotion_code | string | no | Optional coupon code. |
orders_over_amount | number | no | Minimum spend to qualify; converted to standard micros; requires currency_code. |
occasion | string | no | Enum (NEW_YEARS, BLACK_FRIDAY, CYBER_MONDAY, ...); enum-normalize. |
start_date | string | no | Redemption start, YYYY-MM-DD; must be <= end_date. |
end_date | string | no | Redemption end, YYYY-MM-DD. |
language_code | string | yes | ISO language code. |
scope | string | yes | Enum CUSTOMER/CAMPAIGN/AD_GROUP. |
scope_id | string | no | Required when scope != CUSTOMER. |
final_urls | array | no | Landing page URL(s) for the promotion (single URL or list). |
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 promotion must be genuinely available on the landing page for the stated dates; expired/fake/bait promotions = Misrepresentation (egregious). Occasion-restricted promos must match the actual occasion window. No hidden conditions beyond orders_over_amount.
Reminder
Reflect only real, currently-honored promotions; do not retain beyond this request.
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
INVALID_ARGUMENT | Both or neither of percent_off/money_amount_off set, or start_date > end_date. | Require exactly one discount form and a valid date range. | no |
PROMOTION_ERROR_INVALID_PROMOTION_CODE | Promotion code/occasion combination invalid. | Surface the field error; correct code/occasion. | no |
PRICE_ERROR_INVALID_CURRENCY | currency_code missing/unsupported for money fields. | Supply a valid currency; re-derive micros. | no |
FIELD_ERROR_REQUIRED | scope_id missing for non-customer scope. | Require scope_id. | 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 |
PARTIAL_FAILURE | Asset/link partial failure. | Return per-op errors. | no |
PLATFORM_UNAVAILABLE | Backend 5xx/INTERNAL. | Retry once after backoff. | yes |
Edge cases
- percent_off 20 (%) is sent as 200,000 (1,000,000 = 100%, live probe 2026-07-22); money_amount_off uses standard micros (10 USD -> 10,000,000). The preview's amounts show both in plain units.
- A promo whose end_date has passed won't serve; dates are not checked locally.
- Occasion set but dates outside its typical window -> Google may reject; surface.
- Customer scope = account-wide; campaign/ad-group narrows.
- validate_only=true creates nothing.
- preview TTL expiry -> re-preview.