TOOL API

optimizer_rule_create

Creates automated rules that watch campaigns, ad groups, or ads and automatically turn them off/on, adjust budget or bid, or send a notification when conditions are met. Not supported for Upgraded Smart+ campaigns, ad groups, or ads: if the response says "This API does not support Upgraded Smart Plus ads", do not retry with other parameters; tell the user automated rules for Smart+ cannot be created through this API. If the response says "Insufficient permission ... grant access to the advertiser", do not retry: the user's role on this advertiser has no edit access; tell them to ask their Business Center admin for an edit-level role. Request shape: `advertiser_id` plus `rules` (array). Every rule needs `name`, `apply_objects`, `conditions`, `actions`, `notification`, `rule_exec_info`. Minimal example (pause active ad groups whose CPA today is above 50): {"advertiser_id":"<id>","rules":[{"name":"Pause high CPA","apply_objects":[{"dimension":"ADGROUP","pre_condition_type":"ALL_ACTIVE_AD_GROUP"}],"conditions":[{"subject_type":"CPA","range_type":"TODAY","match_type":"GT","values":["50"]}],"actions":[{"subject_type":"TURN_OFF"}],"notification":{"notification_type":"ANY_CHANGES"},"rule_exec_info":{"exec_time_type":"PER_HALF_HOUR"}}]}

ecommerceOAuth1 credits

Call information

Tool slug
tiktok-ads.optimizer_rule_create
Provider
TikTok for Business
Average response
0 ms
Calls in 7 days
0

Input parameters

advertiser_idrequired

Advertiser ID.

lang

Language for error messages. Defaults to `EN` if omitted.

rulesrequired

List of rules to create.