# Hermoso: set_tiktok_ads_rule_status · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/ads/set_tiktok_ads_rule_status/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Ad campaign management](https://hermoso.ai/docs/reference/ads/) / set_tiktok_ads_rule_status

# `set_tiktok_ads_rule_status`

Arm, disarm or delete a TikTok automated rule destructive

Area: AUTOMATED RULES · [Ad campaign management](https://hermoso.ai/docs/reference/ads/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/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

Parameter Type Description

`advertiserId` `string` TikTok ad account id from list_tiktok_ads_accounts; omit when only one account is shared with this profile

`ruleIds` required `string[]` the rules to change

`operateType` required `"TURN_ON" | "TURN_OFF" | "DELETE"` TURN_ON = start running it unattended; TURN_OFF = stop, reversible; DELETE = remove, NOT reversible

`confirm` `boolean` REQUIRED true for every operation — call without it first to see what would happen

`confirmScope` `string` REQUIRED 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](https://hermoso.ai/docs/credits/).

## Related tools

- [list_tiktok_ads_rules](https://hermoso.ai/docs/reference/ads/list_tiktok_ads_rules/) List TikTok automated rules, classified by whether they can spend
- [tiktok_ads_rule_results](https://hermoso.ai/docs/reference/ads/tiktok_ads_rule_results/) What TikTok’s automated rules actually did
- [bind_tiktok_ads_rule](https://hermoso.ai/docs/reference/ads/bind_tiktok_ads_rule/) Put objects under a TikTok automated rule, or take them out
- [update_tiktok_ads_rule](https://hermoso.ai/docs/reference/ads/update_tiktok_ads_rule/) Replace a TikTok automated rule’s definition
- [create_tiktok_ads_rule](https://hermoso.ai/docs/reference/ads/create_tiktok_ads_rule/) Create a TikTok automated rule (created turned OFF)

[All 759 Ad campaign management tools](https://hermoso.ai/docs/reference/ads/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
