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"})
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ad_account_id": "<ad_account_id>",
"name": "<name>",
"evaluation_spec": "<evaluation_spec>",
"execution_spec": "<execution_spec>"
},
"name": "meta_create_ad_rule"
}
}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 |