gads_create_seasonality_adjustment
Google Ads write medium risk
Part of the Seasonality Agent.
What it does
Tell Smart Bidding to EXPECT a short change in conversion rate during a coming event (a flash sale, a promotion, a launch): a seasonality adjustment (BiddingSeasonalityAdjustmentService). conversion_rate_modifier is the expected change, 0.1 to 10.0 (1.5 = 50% more conversions per click, 0.7 = 30% fewer; 1.0 changes nothing and is refused). Window: start_date_time to an EXCLUSIVE end_date_time, 'yyyy-MM-dd HH:mm:ss' in the account's time zone, at most 14 days; Google recommends 1 to 7 days. Covers either named campaigns (campaign_ids, the only way to cover Performance Max, Demand Gen or App) or whole channels (channel_types SEARCH, DISPLAY, SHOPPING); never the whole account. Optional devices (MOBILE, TABLET, DESKTOP). Only Smart Bidding reacts (target CPA, target ROAS, maximize conversions, maximize conversion value); manual CPC and other strategies ignore it. Meant for future events: a window starting in the past comes back with a warning pointing to gads_create_data_exclusion. WRITE with preview->approve->commit: preview = mutate validate_only=true + the event's fields + preview_id; commit = the same call plus that preview_id after the user approves in a later message + audit. Returns the new resource_name. 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 before a short event the advertiser expects to change the conversion rate (a sale, a promotion, a product launch): a seasonality adjustment. For days whose tracking broke, use gads_create_data_exclusion.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
customer_id | string | yes | 10-digit CID, dashes stripped. Not a manager (MCC) account: Google refuses these there. |
name | string | yes | Name shown in Google Ads (at most 255 characters; unique per account for seasonality adjustments). |
start_date_time | string | yes | Inclusive start, 'yyyy-MM-dd HH:mm:ss' in the account's time zone (e.g. '2026-11-27 00:00:00'). |
end_date_time | string | yes | EXCLUSIVE end, 'yyyy-MM-dd HH:mm:ss' in the account's time zone; at most 14 days after the start (e.g. a whole day of 27 Nov ends '2026-11-28 00:00:00'). |
conversion_rate_modifier | number | yes | Expected conversion-rate change, 0.1 to 10.0 (1.3 = 30% higher). 1.0 changes nothing and is refused. |
scope | string | no | CAMPAIGN or CHANNEL; inferred from which list you give. CUSTOMER (whole account) cannot be created through the API and is refused. |
campaign_ids | array | no | Scope CAMPAIGN: the campaign ids it covers (1 to 2,000). The only way to cover Performance Max, Demand Gen or App campaigns. From gads_list_campaigns. |
channel_types | array | no | Scope CHANNEL: any of SEARCH, DISPLAY, SHOPPING (all campaigns of those types). Not together with campaign_ids. |
devices | array | no | Optional: any of MOBILE, TABLET, DESKTOP. Leave out for all devices. |
description | string | no | Optional note shown in Google Ads (at most 2,048 characters). |
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
Use a realistic modifier based on the advertiser's own past events; an inflated one makes Smart Bidding overspend during the window. Only for short, known events.
Reminder
Base the modifier on real past events, keep the window short (1 to 7 days), and confirm the times in the account's time zone.
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
invalid_argument | conversion_rate_modifier is outside 0.1-10.0 or exactly 1.0. | Use the expected change, e.g. 1.3 for 30% more conversions per click. | no |
invalid_argument | A time is not 'yyyy-MM-dd HH:mm:ss', the end is not after the start, the window is over 14 days, scope CUSTOMER was asked for, both or neither of campaign_ids and channel_types were given, a channel is not SEARCH/DISPLAY/SHOPPING, or a device is not MOBILE/TABLET/DESKTOP. | Fix what the message names and preview again; nothing was sent to Google. | no |
RESOURCE_LIMIT | The account has too many active seasonality adjustments (Google allows 500 data exclusions per account). | Remove old ones with gads_remove_seasonality_adjustment first. | no |
google_ads_error | Google refused the event at preview (for example a campaign that is not in this account, or a field combination Google does not allow). | Fix what Google's message names and preview again. | no |
OPERATION_NOT_PERMITTED_FOR_CONTEXT | Google refuses these on a manager (MCC) account. | Run it on the client account the campaigns belong to. | no |
needs_reauth | Authorization expired or revoked. | Reconnect Google Ads in the Scalix dashboard. | no |
rate_limited | Google Ads rate limit hit. | Wait a minute, then call again. | yes |
Edge cases
- The end is exclusive: a sale on 27 Nov is '2026-11-27 00:00:00' to '2026-11-28 00:00:00'.
- Over 7 days comes back with a warning: Google recommends 1 to 7 days, and Smart Bidding adapts to longer changes itself.
- A window starting in the past comes back with a warning: adjustments are for coming events.
- Performance Max, Demand Gen and App campaigns cannot be covered by channel: name them with campaign_ids.
- Names must be unique per account; Google refuses a duplicate at preview.