Boost a Post
Turn an existing organic post into a paid ad
Boost a Post
const ad = await zernio.adcampaigns.boostPost({ body: {
postId: 'POST_ID',
accountId: 'ACCOUNT_ID',
adAccountId: 'act_1234567890',
name: 'Spring launch boost',
goal: 'traffic',
budget: { amount: 40, type: 'daily' },
schedule: { startDate: '2026-04-20', endDate: '2026-04-27' },
targeting: {
ageMin: 25,
ageMax: 45,
countries: ['US', 'CA'],
interests: [{ id: '6003139266461', name: 'DevOps' }]
}
}});The targeting object accepts the full geo shape, not just countries: pass cities (with radius), regions, zips, metros, or customLocations for local boosts, with keys from /v1/ads/targeting/search.
Was this page helpful?