apply_tiktok_ads_audience
Include or exclude a TikTok audience on ad groups destructive
Description
Attach a TikTok custom audience to ad groups as an INCLUDE or an EXCLUDE — the call that changes WHO SEES THE ADS, and the reason building audiences is worth doing at all. actionMode is exactly "Apply" or "Disconnect" (TikTok’s enum is case-sensitive), and Apply also needs usageMode "Include" or "Exclude": GETTING usageMode WRONG INVERTS THE ENTIRE AUDIENCE, showing the ads to precisely the people you meant to keep out, and nothing in TikTok’s reply would say so. One audience per call, and the audience and ad groups must be on the same advertiser. A Lookalike cannot be applied to a Reach & Frequency ad group. It spends nothing by itself — every ad group Hermoso builds is born paused — but on an ALREADY-LIVE ad group it changes delivery on the next auction, so name the ad groups to the user first. The ad groups are read back from TikTok.
Parameters
| Parameter | Type | Description |
|---|---|---|
advertiserId | string | from list_tiktok_ads_accounts |
audienceIdrequired | string | exactly one — TikTok takes a single custom_audience_id per call |
adgroupIdsrequired | string[] | from list_tiktok_ads_campaigns |
actionModerequired | "Apply" | "Disconnect" | Apply attaches the audience to the ad groups; Disconnect removes it (case-sensitive) |
usageMode | "Include" | "Exclude" | REQUIRED when actionMode is Apply, and refused with Disconnect |
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/apply_tiktok_ads_audience.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"apply_tiktok_ads_audience","arguments":{"audienceId":"<string>","adgroupIds":"<array>","actionMode":"<one of the listed values>"}}}
CLI
hermoso call apply_tiktok_ads_audience --json '{"audienceId":"<string>","adgroupIds":"<array>","actionMode":"<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.
Related tools
update_tiktok_ads_audienceRename a TikTok custom audiencedelete_tiktok_ads_audienceDelete TikTok custom audiencescreate_tiktok_ads_lookalike_audienceGrow a TikTok lookalike from an existing audiencetiktok_ads_audience_overlapCompare how much two TikTok audiences sharecreate_tiktok_ads_audienceBuild a TikTok retargeting audience from real behaviourlist_tiktok_ads_audiencesList a TikTok advertiser’s custom audiences