create_tiktok_ads_audience
Build a TikTok retargeting audience from real behaviour
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
| Parameter | Type | Description |
|---|---|---|
advertiserId | string | from list_tiktok_ads_accounts |
namerequired | string | ≤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) |
rulesrequired | object[] | inclusion rules, combined with OR. Each is {event, retentionDays, eventSourceIds?, parameterFilters?} — e.g. {event:"COMPLETE PAYMENT", retentionDays:30, eventSourceIds:["<pixelId>"]} |
excludeRules | object[] | same shape; anyone matching these is removed from the audience |
retentionInDays | number | how 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. |
autoRefresh | boolean | default true at TikTok — keeps the audience updating with new matching people |
identityId | string | REQUIRED 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 |
identityAuthorizedBcId | string | REQUIRED 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.
Related tools
list_tiktok_ads_pixelsList a TikTok advertiser’s conversion pixelslist_tiktok_ads_appsList the mobile apps on a TikTok ad accountlist_tiktok_ads_identity_postsList the organic TikTok posts under an identitylist_tiktok_ads_audiencesList a TikTok advertiser’s custom audiencescreate_tiktok_ads_lookalike_audienceGrow a TikTok lookalike from an existing audienceupdate_tiktok_ads_audienceRename a TikTok custom audienceapply_tiktok_ads_audienceInclude or exclude a TikTok audience on ad groupsdelete_tiktok_ads_audienceDelete TikTok custom audiencestiktok_ads_audience_overlapCompare how much two TikTok audiences share