Docs sections

TikTok rule chains

A chain links rules into a scheme: when one rule fires, it attaches the object to the next rule, disables or enables another rule, or rolls back a budget. This is how “scaling with insurance” works: one rule raises the budget of a good group and attaches it to an insurance rule that pauses the group if the result price drifts away, and then finishes the chain. Watching such a pair by hand around the clock is not realistic, so the chain does it for you.

Chains are part of the “Ads” module at no extra cost: there is no separate price or plan limit.

“Then” actions#

On the rule page, add actions in the Then section; they run when the rule fires on an object:

  • Attach the object to the rule — the chosen chain-link rule starts checking this object;
  • Disable the rule for the object — the chosen rule stops touching this object;
  • Enable rule and Disable rule — switch a whole rule on or off;
  • Finish the chain — link rules only: the chain for this object is done.

Each action has a Term: While the chain runs, N hours, Until end of day and Until cancelled (the last one is only for enabling and disabling a rule). The overall term of the chain is set in Chain duration, hours; when it runs out, everything the chain switched goes back as it was. The term limit and the number of actions per rule are shown in the form. You can also cancel a chain by hand: the same things come back. If you switched a rule on or off yourself, the chain will not switch it or switch it back for some time.

A rule with the scope Objects from other rules is a chain link: it has no objects of its own and works with those attached to it by the chain's rules. A link's conditions are counted separately for each object. A link's Period has the option Since connected: metrics are counted only from the moment the object was attached to the link, so the insurance does not see spend from before scaling. The Holds for checks in a row field requires the condition to hold for several checks in a row rather than once, so the link does not react to a random spike.

Roll back budget is available to links only: it returns the budget that was in place before the scaling rule fired. If the budget was changed manually after scaling, the rollback leaves it alone — the chain log shows why.

The “Chain” section and the chain log#

If a rule belongs to a chain, a Chain section appears in its contents: the scheme from top to bottom, the readiness of each rule, which objects are in the chain now, and the results. A link that is off or not checked is marked: while it is, the “Attach the object to the rule” action is not performed and the reason is recorded. The Chain log shows step by step what happened: what fired, what was attached or detached, what went back when the term ran out, and what failed and why. In the rule list, chain rules carry a Chain badge, and a link shows “Chain link · …” in the action column. If a lidvanto administrator has temporarily stopped chains, the Chain section shows a notice: rules work as usual, without “Then”.

Ready-made chains#

The Ready-made chains block on the new rule page creates all the rules of a scheme at once, switched off and connected by “Then” actions: Scaling with insurance, Second chance, Stop-day (needs the tracker) and Warm-up of new groups. The thresholds in them are examples. Check each rule, adjust the values, then switch the chain on in the Chain section.