Automation Basics
An automation rule answers four questions:
- What should Nitoriq watch?
- When should it count as a match?
- Should Nitoriq alert the team, automate an action, or do both?
- What safeguards should prevent a bad or premature action?
If you can answer those questions in plain language, you are ready to build a rule. If the answer feels fuzzy, start with alerts and narrow the scope until the rule is easy to review.
How a Rule Runs
- The rule reads the targets and reporting window you selected.
- It checks the trigger conditions against eligible, sufficiently fresh data.
- If a target matches, Nitoriq records the planned outcome.
- Alert outcomes create notifications. Automate outcomes enter the durable execution queue after readiness and safeguards pass.
- Provider actions are rechecked before the write and may be confirmed immediately or sent to recovery for verification.
- Activity records the result so your team can review it later.
Core Concepts
Parts of a rule
Target
The thing the rule watches, such as a campaign, ad set, ad, keyword, placement, site, or widget.
The target controls which metrics and actions are available.Trigger
The condition that makes the rule match, such as CPA above target, spend above payout, ROI below 0, or a time window.
A good trigger should read like a decision your team would make manually.Outcome
Whether the rule sends an alert, automatically runs an eligible action, or runs the action and alerts the team.
Start with Alert Only, then use automation after the evidence, scope, and safeguards are trusted.Action
What Nitoriq should do after a match, such as notify, tag, pause or resume a mapped provider entity, change a provider budget or bid, update a list, or send a webhook.
Provider actions are real ad-platform changes and require additional readiness.Account readiness
Whether the connected ad account has the access, permissions, and setup needed for the selected action.
A rule can alert before provider-write setup is complete, but ad-platform changes need the account to be ready.Campaign identity
The exact account-scoped binding between a Nitoriq campaign and its remote provider campaign.
Nitoriq verifies this relationship from niq_map or a trusted tracking route before it changes a provider entity.Safeguards
Limits such as action caps, cooldowns, freshness checks, execution windows, numeric guardrails, and safety pauses.
Safeguards keep one broad or stale signal from causing too many changes.Activity
The record of checks, alerts, actions, and safety decisions.
Use Activity before changing a rule. It usually tells you whether the issue is data, setup, scope, safety, or execution.Targets And Availability
| Target level | Typical use |
|---|---|
| Campaign | Stop-loss rules, budget pacing, winner scaling, recovery checks, and mapped provider campaign pause or resume actions. |
| Ad group or ad set | Lower-entity stop loss, budget or bid controls, recovery checks, and provider-specific scaling. |
| Ad or creative | Creative fatigue, provider ad pause rules, and lower-entity monitoring where ad-level reporting is available. |
| Keyword | Keyword monitoring and negative-keyword actions where provider support and permissions allow it. |
| Placement, site, or widget | Placement quality checks, exclusions, blacklist or whitelist updates, and provider-specific placement controls. |
Workspace, traffic source, flow, offer, lander, and Shopify product targets are not automation targets right now. Current rules focus on campaigns and the entities below them.
How Safeguards Help
Safeguards run before Nitoriq makes a change and are rechecked when queued work executes. They can stop an action when data is stale, a campaign identity is missing, a connection needs attention, the rule acted recently, too many items matched, or the current time is outside the execution window.
This is why a skipped action is not always a problem. Often it means the rule matched, but Nitoriq protected the account from acting too soon or too broadly.
How Results Are Reported
queuedorpendingmeans eligible work is waiting for durable executionexecutedmeans Nitoriq sent or completed the actionconfirmedmeans Nitoriq verified the requested state at the providerskippedmeans setup, identity, safety, freshness, or another eligibility check prevented executionfailedmeans a check, notification, or action did not completeneeds attentionmeans an action needs retry, verification, or recovery review
Use Activity before editing the rule. It shows why the outcome reached that state and what to check next.
A rule is ready when
- the target scope is narrow enough to review
- the trigger uses metrics available for that target
- the outcome matches the risk: Alert Only, Auto-execute, or Auto-execute + Alert
- connected accounts and exact campaign identities are ready for provider changes
- notifications go to the right people
- caps, cooldowns, numeric guardrails, and execution windows match the possible impact
- the simulation result makes sense before activation
Was this page helpful?