List custom audiences
Lists the custom audiences in an ad account so you can reuse them for targeting.
Supports Meta, Google, TikTok, Pinterest, LinkedIn, X, and Reddit.
On Reddit, size is the lower bound of Reddit's matched-users range, and status is too_small
while the list has matched fewer than 1,000 people.
Authentication
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
Query parameters
Account ID
Platform ad account ID
facebook | instagram | googleads | tiktok | tiktokads | pinterest | linkedin | linkedinads | twitter | xads | redditadscustomer_list | company_list | engagement | meta_engagement | website | website_retargeting | lookalike | saved_targetingFilter to one audience type. saved_targeting returns stored TargetingSpec audiences; the other types return uploaded/derived audiences.
Responses
Success· the request worked
Errors· the request failed
Upload an ad video
Uploads a video to a Meta ad account from a URL or file, so you can preview it or use it in ads before any ad exists. This is a standalone ad-video upload (parallel to POST /v1/ads/images). A video creative can then be rendered via POST /v1/ads/preview or attached via `video.id` on POST /v1/ads/create before an ad exists. ### Input Exactly one is required: - `videoUrl`: an https URL we download server-side (SSRF-guarded). - `videoBase64`: raw bytes. Capped by Vercel's body limit, around 4.5 MB payload in practice, so larger videos must come via `videoUrl`. ### Response Returns the Meta `video.id` (reusable wherever `video.id` is accepted) plus Meta's auto-generated poster URL when available. By default the endpoint waits until Meta reports the video ready and answers 201. Chunked upload + transcode can take minutes; the handler runs up to 800 s. ### Async mode Send `async: true` to get a 202 as soon as Meta has accepted the bytes, with `video.status: processing`. Then either: - poll `GET /v1/ads/videos/{videoId}` until `status` is `ready`, or - subscribe to the `ad.video.processed` webhook. A create call that references the video while it is still processing waits up to 30 s, then answers 409 `invalid_resource_state` naming the status endpoint. With `videoUrl` the download and byte transfer still happen inside the request; only Meta's transcode is skipped.
Create custom audience
Creates a custom audience from a customer list, website visitors, a lookalike, or people who engaged with your content. ### Audience types by platform - `customer_list`: Meta, Google, X, LinkedIn, TikTok, Pinterest, and Reddit. - `website` (pixel/tag visitors): Meta, TikTok, Pinterest, Google, and Reddit. - `lookalike`: Meta, TikTok, Pinterest and Google (Reddit's API cannot create one). - `meta_engagement`: Meta-only. - `tiktok_engagement`: TikTok-only. - `pinterest_engagement`: Pinterest-only. - `company_list`, `engagement` and `website_retargeting`: LinkedIn-only. A type sent to a platform that does not support it is a 422 `FEATURE_NOT_AVAILABLE`. Reddit audience names need at least 3 characters. ### Per-platform rules for `website` - Meta: `pixelId` required, `retentionDays` 1-180, optional `urlContains` or raw `rule`. `event` is not accepted. - TikTok: `pixelId` required, `retentionDays` one of 7, 14, 30, 60, 90, 180. `event` is a TikTok pixel event (see below), optional `urlContains`. - Pinterest: `pixelId` is the Pinterest tag id, `retentionDays` 1-540, optional `event` (e.g. `checkout`, `addtocart`). Pinterest matches URLs exactly, so `urlContains` is a 400 there. - Google: no `pixelId` (the account's Google tag is used), `retentionDays` 1-540, `urlContains` defaults to `/` (all visitors). Built as a rule-based user list with prepopulation requested. - Reddit: `pixelId` is the Reddit pixel id, `retentionDays` 1-90. `event` is a Reddit conversion event (see below); any other value is sent as a custom event name. `urlContains` and `rule` are a 400. TikTok pixel events: `PAGE BROWSE` (default), `CLICK BUTTON`, `PIXEL SUBMIT FORM`, `CONTACT`, `DOWNLOAD`, `PIXEL ADD PAYMENT INFO`, `COMPLETE PAYMENT`, `INITIATE CHECKOUT`, `COMPLETE REGISTRATION`, `PRODUCT DETAIL PAGE BROWSE`, `PIXEL SEARCH`, `PIXEL ADD TO CART`, `PLACE AN ORDER`, `PIXEL ADD TO WISHLIST`, `PIXEL SUBSCRIBE`. Reddit conversion events: `PAGE_VISIT` (default), `VIEW_CONTENT`, `SEARCH`, `ADD_TO_CART`, `ADD_TO_WISHLIST`, `PURCHASE`, `LEAD`, `SIGN_UP`. ### Per-platform rules for `lookalike` - Meta: `ratio` (0.01-0.20). - Pinterest: `ratio` in whole percents (0.01-0.10) and `country` US, CA or GB. - TikTok and Google: `size` (narrow, balanced, broad) instead of `ratio`. TikTok needs a seed with at least 1,000 matched people. ### Saved targeting `saved_targeting` stores a reusable TargetingSpec (no member upload, no adAccountId) that you reference later via `savedTargetingId` on `POST /v1/ads/create`. ### How the audience gets filled - `customer_list` is created empty. Add members with `POST /v1/ads/audiences/{audienceId}/users`. On TikTok and Pinterest the audience is provisioned lazily on that first upload (until then its status is `pending`). - `company_list` is filled AT CREATION from the `companies` array below, which is required. To change the list afterwards, send the new full list to `POST /v1/ads/audiences/{audienceId}/companies` (a replace, not a merge). The `/users` endpoint rejects these audiences with a 422. - `website`, `website_retargeting`, `engagement`, `meta_engagement`, `tiktok_engagement`, `pinterest_engagement` and `lookalike` fill themselves from the pixel, engagement source or seed audience you point them at. They take no member upload at all. Create is not idempotent, never auto-retry.