Delete custom audience
Removes a custom audience from its ad platform (archiving it where the platform does not delete).
Removes the audience on its ad platform, then deletes the Zernio record. Meta, Google, TikTok,
LinkedIn list and engagement segments, and X are deleted; Pinterest audiences and LinkedIn
website_retargeting segments are archived, which is how those platforms remove them.
saved_targeting audiences exist only on Zernio, so only the local record is removed.
If the platform refuses, the error is returned and the Zernio record is kept, so a retry is
safe. An audience the platform no longer has counts as removed. Google Ads does not allow
removing lookalike lists through its API, so those return 422 FEATURE_NOT_AVAILABLE.
Authorization
bearerAuth API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
In: header
Path Parameters
Response Body
application/json
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.adaudiences.deleteAdAudience({ path: { audienceId: 'audience_abc123', },});console.log(data);{ "message": "string"}Update an audience
Renames or redescribes an audience, or replaces a saved targeting audience's rules; platform audience rules cannot change. `saved_targeting` audiences accept `name`, `description`, and `spec` (full replacement, no merge, Zernio-only, no platform call). Platform audiences (uploaded/website/lookalike) accept `name` and `description` only, updated on the platform first and then mirrored locally; their rules are immutable, so `spec` returns 400 for them. Platform audience updates are Meta-only for now (other platforms return 501). Ads already created from a saved_targeting audience are unaffected, they snapshot the targeting at creation.
Add users to audience
Uploads customer emails (and phone numbers on Meta) to a customer list audience, hashed before they are sent. Data is SHA256-hashed server-side before sending to the platform. Email is used on every platform; phone is used on Meta only (other platforms ignore it). On TikTok and Pinterest, the first upload also provisions the audience (deferred create). LinkedIn uploads are full-replace. Max 10,000 users per request. customer_list only. A LinkedIn `company_list` audience takes company rows, not people: send those to `POST /v1/ads/audiences/{audienceId}/companies`. This endpoint 422s for every other audience type.