hermosodocs

set_tiktok_ads_rule_status

Arm, disarm or delete a TikTok automated rule destructive

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

Description

TURN_ON IS THE SWITCH THAT HANDS A RULE TO TIKTOK TO RUN UNATTENDED, and it is gated in two classes because the two are not the same act. A rule whose only actions are TURN_OFF, MESSAGE or a DECREASE cannot start or raise spend — the worst it does is under-deliver, which is recoverable by turning it off — so it needs confirm:true and nothing else. A rule that can TURN_ON an object or INCREASE / ADJUST_TO a budget or bid is standing permission to spend real money with nobody present, so it needs confirm:true AND confirmScope set to the scopeToken that list_tiktok_ads_rules prints. That token is computed from the rule AS TIKTOK STORES IT: confirm:true proves the caller meant to arm SOMETHING, and only the echo proves they aimed at the rule they actually inspected rather than one a teammate has edited since. CALLING WITHOUT THE GATE CHANGES NOTHING and returns the sentence describing exactly what the rule will be able to do — show the user that, get an unambiguous yes, then confirm. TURN_OFF and DELETE only ever reduce what runs unattended, so both take confirm:true and no echo; prefer TURN_OFF, because TikTok publishes no way to restore a deleted rule and turning one off is reversible. THE ANSWER IS THE READ-BACK: the result carries the status TikTok stored per rule, and says so when it could not confirm. Free.

Parameters

ParameterTypeDescription
advertiserIdstringTikTok ad account id from list_tiktok_ads_accounts; omit when only one account is shared with this profile
ruleIdsrequiredstring[]the rules to change
operateTyperequired"TURN_ON" | "TURN_OFF" | "DELETE"TURN_ON = start running it unattended; TURN_OFF = stop, reversible; DELETE = remove, NOT reversible
confirmbooleanREQUIRED true for every operation — call without it first to see what would happen
confirmScopestringREQUIRED as well, to arm a rule that can start or raise spend: the scopeToken from list_tiktok_ads_rules. The refusal prints the value it wants.

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_tiktok_ads_rule_status.

MCP (tools/call)

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"set_tiktok_ads_rule_status","arguments":{"ruleIds":"<array>","operateType":"<one of the listed values>"}}}

CLI

hermoso call set_tiktok_ads_rule_status --json '{"ruleIds":"<array>","operateType":"<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