hermosodocs

set_meta_ad_rule_status

Switch a Meta automated rule on or off destructive

Area: AUTOMATED AD RULES · Ad campaign management. Generated from the running MCP server, like the rest of the tool reference.

Description

ENABLED hands the rule to Meta to run unattended. A rule that can only pause, lower or notify needs confirm:true. A rule that can switch something ON or RAISE a budget/bid needs confirm:true AND confirmScope (the scopeToken from list_meta_ad_rules, computed from the rule as Meta stores it), and is refused if its worst case breaks the ad account's caps (set_meta_ad_rule_limits). Calling without them changes nothing and returns exactly what the rule would do — show the user, get a yes, then confirm. DISABLED is the brake: never gated. The answer is the status read back from Meta. Free.

Parameters

ParameterTypeDescription
adAccountIdrequiredstringMeta ad account id (act_… or the bare number) from list_meta_ads; required — every rule lives on one ad account
ruleIdrequiredstringrule id from list_meta_ad_rules
statusrequired"ENABLED" | "DISABLED"ENABLED or DISABLED
confirmbooleantrue once the user has said yes to exactly what the refusal described
confirmScopestringthe scopeToken the list tool (or the refusal) prints; required with confirm when the rule can raise spend

Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/set_meta_ad_rule_status.

MCP (tools/call)

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"set_meta_ad_rule_status","arguments":{"adAccountId":"<string>","ruleId":"<string>","status":"<one of the listed values>"}}}

CLI

hermoso call set_meta_ad_rule_status --json '{"adAccountId":"<string>","ruleId":"<string>","status":"<one of the listed values>"}'

Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.

All 759 Ad campaign management tools · tools.json