OverviewProductsPlatformsAPI ReferenceResources

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.

TypeScript
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):

JSON
{
  "audience": { "id": "66e5b2c3d4f5a6b7c8d9e0f1", "name": "Cart abandoners", "type": "customer_list", "platform": "tiktok", "status": "pending" },
  "message": "Audience created"
}

Response (200):

JSON
{ "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 pending and no platform id. The first users call provisions it on TikTok.
  • A new audience takes up to 48 hours to finish processing before it is targetable.

If it fails

ErrorCauseFix
Members not matchedOnly phone was sent; TikTok matches on email onlySend an email for each member.
Audience not targetableIt is still processing, which takes up to 48 hoursWait, then pass its platformAudienceId to audienceInclude.
No platform id on the audienceNo members have been uploaded yetUpload members: the first upload creates it on TikTok.
Was this page helpful?

On this page