Custom Audiences
Create a TikTok Custom Audience from a customer list and upload its members by email.
Build a customer-file Custom Audience on a tiktokads account, then target it through audienceInclude or audienceExclude (Targeting fields).
Create an audience
Create the audience with POST /v1/ads/audiences (type: "customer_list"). Then upload members with POST /v1/ads/audiences/{audienceId}/users.
adAccountId is the TikTok advertiser id.
TikTok matches on email only (any phone is ignored). Values are SHA-256 hashed server-side.
const { data: audience } = await zernio.adaudiences.createAdAudience({
body: {
accountId: '66b2e19d8c3f5a7e9d0b1c2d',
adAccountId: '7123456789012345678',
type: 'customer_list',
name: 'Cart abandoners'
}
});
const { data: upload } = await zernio.adaudiences.addUsersToAdAudience({
path: { audienceId: audience.audience.id },
body: { users: [{ email: 'jane@example.com' }, { email: 'sam@example.com' }] }
});
console.log(upload.numReceived);Response (201):
{
"audience": { "id": "66e5b2c3d4f5a6b7c8d9e0f1", "name": "Cart abandoners", "type": "customer_list", "platform": "tiktok", "status": "pending" },
"message": "Audience created"
}Response (200):
{ "message": "Users added", "numReceived": 2, "numInvalid": 0 }How it behaves
- The audience is created lazily on the first member upload, because TikTok needs the member file at creation time.
- The create records it with status
pendingand no platform id. The firstuserscall provisions it on TikTok. - A new audience takes up to 48 hours to finish processing before it is targetable.
If it fails
| Error | Cause | Fix |
|---|---|---|
| Members not matched | Only phone was sent; TikTok matches on email only | Send an email for each member. |
| Audience not targetable | It is still processing, which takes up to 48 hours | Wait, then pass its platformAudienceId to audienceInclude. |
| No platform id on the audience | No members have been uploaded yet | Upload members: the first upload creates it on TikTok. |
Related
- Targeting fields: where
audienceIncludeandaudienceExcludego. - Create ad audience: every field of the create.
- Add users to ad audience: the member upload.
Was this page helpful?