Automation rules

ShopeeTikTok
IF/THEN rules that watch a metric and change a setting — with cooldowns, caps, and a dry run before you turn one on.

An automation rule watches a metric and changes a setting when it crosses a line you drew. The nightly solve decides how to split the budget; automation decides when to move the dial you set it against — the group's budget, a campaign's target ROAS, a campaign's status.

Rules live on the group's Automation tab. Each one is a sentence: every day at a time, looking at a window, if a metric compares to a value, set a setting — for these campaigns, within these limits.

Two scopes

ScopeCan change
Group automationThe group itself, or all eligible campaigns in it
Campaign automationOnly the campaign you opened it from

Starting one

Start from a template for a ready rule you can change any part of:

TemplateWhat it does
Hold ROAS near targetWhen returns drift under the target you set, tighten the target so the platform bids more carefully and pulls ROAS back up
Buy traffic when aheadWhen returns run well above the target, loosen it a little to win more impressions while they are cheap
Scale what is workingWhen a campaign beats its target and is spending real money, give it more daily budget

Or start from scratch with an empty IF … THEN.

A rule has two editors and the same rule underneath: Sentence, which reads as plain English, and Detailed, which exposes everything. A few shapes have no sentence form — a condition that checks whether a metric exists rather than comparing it, a threshold that is a calculation, a metric that is itself a calculation, or an action set from a formula. Those stay in the detailed editor and the panel says why.

Time

How often it runs, when, and what it looks at.

  • Every day at a time, or once a week on a day of the week.
  • A metrics window: previous complete day, trailing complete days, previous complete week, or month to latest complete day.

A rule can also be triggered by an event rather than a clock — when daily metrics settle, when a group run completes, or on a data-quality event.

Condition

Pick a metric, a comparison, and something to compare against.

MetricReads
Platform ROASWhat the platform reports
Contribution ROASAfter fees, COGS and shipping
Profit-adjusted ROASTrue ROAS — break-even 0
ACOSAd spend as a share of ad revenue
Attributed GMVAd-attributed revenue
Profit after adsWhat is left once the ad cost is paid
Current target ROAS / Current daily budgetThe setting as it stands right now

Behind Show system health metrics sit two more: last successful group runs and consecutive failed group runs — for a rule that should react to the pipeline rather than to performance.

Measure the metric across the whole group or each campaign separately. Comparisons are the usual six (at least, greater than, at most, less than, equals, changed by — absolute or percent), plus three that ask about availability rather than value: is stale, is unavailable, became available.

The threshold is either a fixed number you type, or a share of a setting — for example, 80% of the current target ROAS. Prefer the share: it tracks the setting, so the rule keeps working after you change it.

Several conditions combine with and (every one must be true) or or (any one is enough).

Profit metrics are greyed out until the shop has product costs on file, and the panel counts how many are waiting on that.

Action

What the rule changes when the condition holds.

TargetNotes
Group Daily Budget / Group Monthly BudgetThe group's own limits
Group constraint targetThe value of the group's constraint
Group statusPause or resume the group
Campaign target ROASProduct Ads or GMV Max
Campaign daily budget / Campaign Daily BudgetThe platform budget, or the group's per-campaign ceiling
Campaign statusPause or resume a member
Use auto biddingHand a campaign back to the platform bidder
Send notificationTell you, and change nothing

Each action is a set to, increase by, decrease by, change by %, or a formula — and carries a direction guard: allow increase or decrease, increase only, or decrease only. Increase-only is the honest choice for a rule that is meant to scale a winner and should never quietly cut anything.

Campaigns

All eligible campaigns in this group, or a list you pick.

Limits

The part to fill in before you turn a rule on, not after.

LimitRangeWhat it is for
Cooldown0–168 hoursWait after a change before this rule may act again
Consecutive matches1–14 runsHow many runs in a row must match before anything changes — higher values ignore one-off bad days
Changes a day0–100 (0 = no cap)The most changes this rule may make in a day
Campaigns a runup to 100The most campaigns one evaluation may touch

A rule with no cooldown, no daily cap and no consecutive requirement acts on the first match, every time. The panel flags that before you save.

Before you turn it on

The Result section runs the rule against history and against right now:

  • "{n} of {total} days would have acted" — the replay. A rule that would have fired on 28 of 30 days is not a guardrail, it is a ratchet.
  • "If it runs now" — what it would do against the current numbers, or nothing would change right now.

Save it paused and watch the replay for a few days before activating. You can activate or pause a rule at any time.

Two active rules on the same setting stack. The second computes from the value the first just wrote, which is rarely what anyone means. The panel warns you and names the other rule — "'{name}' already changes {setting}" — when you build one.
If your account cannot see profit figures, a rule that reads them still runs — its replay and preview are simply hidden from you. See Managing access.
TikTok automation has a narrower metric set. Spend, ROAS, orders and operational metrics are available; profit and contribution metrics stay unavailable until TikTok attribution supplies them, and unsupported conditions and actions are omitted from the pickers.