Create a Meta automated rule
meta_create_ruleCreate an automated rule that checks campaigns/ad sets/ads every 30 minutes or daily and pauses, turns on, changes budget or just notifies when a metric crosses a threshold. Rules that turn things on or raise budgets need confirm=true after the user's yes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | Limit to these object IDs. Omit for all active objects of that level. | |
| name | Yes | ||
| value | Yes | ||
| action | Yes | ||
| entity | Yes | ||
| folder | No | Client folder name. | |
| metric | Yes | ||
| account | No | Meta ad account name or ID (act_123 or 123). Optional when only one account is enabled. | |
| confirm | No | ||
| language | No | Language of the card: the language the user is writing in (ar for any Arabic dialect). | |
| operator | Yes | ||
| schedule | No | ||
| min_spent | No | Only apply after this much spend (account currency). | |
| time_preset | No | ||
| budget_change_pct | No | For CHANGE_BUDGET: e.g. 20 or -20. |