Create a rule
- Open Rules and select New rule.
- Select the ad accounts and target level.
- Add a target filter, or choose an empty filter to cover the selected level.
- Add a task with at least one condition and action.
- Set the metric, timeframe, operator, and comparison value for each condition.
- Set a schedule and time zone.
- Save as a draft with dry-run mode enabled.
Check a dry run
Run the current rule version withdry_run: true. Review which objects match and which actions the rule would take before allowing live changes.
Draft a rule for this account that pauses active ads when spend exceeds 50 today and purchases are zero. Use dry-run mode, show the target filter and schedule, and wait for me to review before activation.Your agent should call
rules_schema for the current metrics and action vocabulary. It should obtain the account ID and ask for any missing targeting or scheduling choices.
Edit or activate
Read the rule’s current version before changing it.rules_update replaces the definition, so preserve fields you intend to keep.
To allow scheduled live changes, set the rule to Active and turn off Dry run. Review both settings before saving. A manual MCP rules_run defaults to dry-run mode.
Review results
Open the run details or userule_runs_get. Review Activity for decisions and provider actions. rules_delete archives the rule.