Create Automated Ad Rule
meta_create_ad_ruleCreate automated rules to pause or adjust ads when performance metrics cross thresholds, solving manual ad management inefficiencies.
Instructions
Creates an automated rule for managing ads, ad sets, or campaigns.
Args:
ad_account_id (string): Ad account ID
name (string): Rule name
evaluation_spec (object): Conditions that trigger the rule (e.g., {"evaluation_type":"TRIGGER","trigger":{"type":"STATS_CHANGE","field":"cost_per_result","value":"5.00","operator":"GREATER_THAN"}})
execution_spec (object): Actions to take (e.g., {"execution_type":"PAUSE"})
schedule_spec (object, optional): When to evaluate (e.g., {"schedule_type":"DAILY"})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ad_account_id | Yes | ||
| name | Yes | ||
| evaluation_spec | Yes | ||
| execution_spec | Yes | ||
| schedule_spec | No | ||
| response_format | No | Output format: 'markdown' for human-readable or 'json' for machine-readable | markdown |