Update saved targeting audience
Update a saved_targeting audience's name, description, or spec. Only saved_targeting audiences are
updatable (they exist only on Zernio); uploaded/derived audiences return 422, delete and recreate those
instead. spec replaces the stored spec wholesale (no merge). Ads already created from this audience are
unaffected, they snapshot the targeting at creation.
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
length <= 255Response 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.updateAdAudience({ path: { audienceId: 'audience_abc123', }, body: { name: 'Example', description: 'Hello, world!', spec: { countries: [ 'string', ], regions: [ { key: 'tok_abc123', }, ], cities: [ { key: 'tok_abc123', }, ], }, },});console.log(data);{
"audience": {},
"message": "string"
}{
"error": "Unauthorized"
}{
"error": "Not found"
}Get campaign analytics GET
Returns performance analytics for a whole campaign in one call: summary metrics, a daily timeline over the requested date range (summed across the campaign's ads), and optional demographic breakdowns. Breakdowns are fetched live from Meta at the campaign level (one call per dimension, no per-ad fan-out), so an agency dashboard gets campaign-level age/gender/etc. without summing thousands of per-ad reads. `campaignId` is the platform campaign id; pass `platform` when a campaign id could be ambiguous across platforms. If no date range is provided, defaults to the last 90 days. Date range is capped at 730 days max.
List active Instagram stories GET
Returns the IG Business/Creator account's currently-active stories. Meta keeps stories live for 24h; expired stories are not returned. Limitations propagated from Meta (these are NOT bugs): - 24h window only - Live videos excluded - Reshared stories not returned - `mediaUrl` may be null if Meta flagged the story for copyright - `caption`, `likeCount`, `commentsCount` do not apply to story media