Estimate audience reach
Returns a normalized pre-flight audience-size estimate for a targeting spec,
before any campaign is created. Backed by each platform's native reach API
(Meta delivery_estimate, LinkedIn audienceCounts, X audience_summary,
Pinterest audience_sizing).
Platforms without a usable pre-flight reach API (Google Search/Display, TikTok)
return available: false with no bounds, so clients can hide or grey out the
estimate rather than treat the absence as an error.
API key authentication - use your Zernio API key as a Bearer token
In: header
Social account ID on the target ad platform.
Optional. The optimization goal the estimate should assume (platform's
own vocabulary, e.g. Meta REACH, LINK_CLICKS, OFFSITE_CONVERSIONS).
Some platforms vary the estimate by goal; omit to use the platform default.
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.ads.estimateAdReach({ body: { accountId: 'account_abc123', spec: { countries: [ 'string', ], regions: [ { key: 'tok_abc123', }, ], cities: [ { key: 'tok_abc123', }, ], }, },});console.log(data);{
"available": true,
"lower": 0,
"upper": 0,
"daily": 0,
"currency": "string",
"estimateReady": true
}{
"error": "Unauthorized"
}{
"error": "Not found"
}Boost post as ad POST
Creates a paid ad campaign from an existing published post. Creates the full platform campaign hierarchy (campaign, ad set, ad).
Remove campaign↔conversion associations DELETE
Remove one or more campaign associations from this conversion rule. Pass `adAccountId` and `campaignIds` as query parameters (`campaignIds` is comma-separated). The route also accepts a JSON body with the same fields for clients that prefer DELETE-with-body, but the documented surface is query-only because some SDK code generators (e.g. Python) collapse query + body parameters with the same name into a single kwarg.