hermosodocs

create_tiktok_ads_audience

Build a TikTok retargeting audience from real behaviour

Area: AUDIENCE MANAGEMENT · DPA CATALOG · APP MANAGEMENT · Ad campaign management. Generated from the running MCP server, like the rest of the tool reference.

Description

Create a TikTok custom audience from what people actually did — the thing that turns TikTok targeting from interests-and-geo into retargeting. audienceType chooses the source and EACH ONE READS A DIFFERENT ID SPACE for eventSourceIds, which is the mistake to avoid: PIXEL takes pixel ids (list_tiktok_ads_pixels), APP takes app ids (list_tiktok_ads_apps), ENGAGEMENT takes AD GROUP ids, ENGAGEMENT_ORGANIC_VIDEO takes TikTok post ids (list_tiktok_ads_identity_posts, max 10), TIKTOK_SHOP takes shop ids, OFFLINE takes offline event-set ids — and a LEAD_GENERATION audience must carry NO eventSourceIds at all, because TikTok errors if the field is present. The `event` on each rule must belong to that audience type: an event from a different family is refused here by name rather than silently building an audience that measures the wrong thing. THE AUDIENCE IS NOT USABLE IMMEDIATELY — TikTok takes up to 48 hours to process it, and until then it cannot be attached to an ad group. Creating one spends nothing: an audience is a definition. The reply is READ BACK from TikTok, because TikTok’s create returns an id and nothing else.

Parameters

ParameterTypeDescription
advertiserIdstringfrom list_tiktok_ads_accounts
namerequiredstring≤128 characters
audienceTyperequired"ENGAGEMENT" | "ENGAGEMENT_ORGANIC_VIDEO" | "ENGAGEMENT_LIVE_VIDEO" | "APP" | "PIXEL" | "LEAD_GENERATION" | "BUSINESS_ACCOUNT" | "TIKTOK_SHOP" | "OFFLINE"source of the audience; decides what eventSourceIds refer to (pixel, app, ad group, post, shop or offline set)
rulesrequiredobject[]inclusion rules, combined with OR. Each is {event, retentionDays, eventSourceIds?, parameterFilters?} — e.g. {event:"COMPLETE PAYMENT", retentionDays:30, eventSourceIds:["<pixelId>"]}
excludeRulesobject[]same shape; anyone matching these is removed from the audience
retentionInDaysnumberhow long the AUDIENCE itself lives, 1-365. A DIFFERENT field from each rule’s retentionDays lookback window — TikTok says itself it will rename one of them.
autoRefreshbooleandefault true at TikTok — keeps the audience updating with new matching people
identityIdstringREQUIRED for ENGAGEMENT_ORGANIC_VIDEO and ENGAGEMENT_LIVE_VIDEO — from list_tiktok_ads_identities
identityType"TT_USER" | "BC_AUTH_TT"TT_USER or BC_AUTH_TT; used with identityId for the organic and live-video engagement types
identityAuthorizedBcIdstringREQUIRED when identityType is BC_AUTH_TT

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/create_tiktok_ads_audience.

MCP (tools/call)

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_tiktok_ads_audience","arguments":{"name":"<string>","audienceType":"<one of the listed values>","rules":"<array>"}}}

CLI

hermoso call create_tiktok_ads_audience --json '{"name":"<string>","audienceType":"<one of the listed values>","rules":"<array>"}'

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