create_rule
Create an automated rule for a Meta ad account by defining its conditions, actions, and optional schedule.
Instructions
Create a new automated rule for the ad account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Rule name | |
| account_id | No | Ad account ID to create the rule in (e.g. 'act_123' or '123'). Falls back to META_AD_ACCOUNT_ID env var if omitted. | |
| schedule_spec | No | JSON string defining rule schedule | |
| execution_spec | Yes | JSON string defining rule actions | |
| evaluation_spec | Yes | JSON string defining rule conditions |