Suggested bid and budget bounds (LinkedIn)
LinkedIn-only. Returns the suggested bid and bid limits for a targeting
spec, plus the daily-budget bounds LinkedIn will accept. Use it before
creating a campaign to pick a bid inside the allowed range and warn the
user if their daily budget is below the minimum. Wraps LinkedIn's
adBudgetPricing finder.
Non-LinkedIn accounts return available: false so clients can hide the
pricing UI without treating it as a failure.
API key authentication - use your Zernio API key as a Bearer token
In: header
Zernio social account ID (LinkedIn).
LinkedIn ad account ID (numeric).
Defaults to SPONSORED_UPDATES.
"TEXT_AD" | "SPONSORED_UPDATES" | "SPONSORED_INMAILS"Defaults to CPM.
"CPM" | "CPC" | "CPV"Defaults to EXACT.
"EXACT" | "AUDIENCE_EXPANDED"ISO 4217, defaults to USD.
3 <= length <= 3LinkedIn objectiveType, e.g. WEBSITE_VISIT, LEAD_GENERATION, VIDEO_VIEW.
LinkedIn optimizationTargetType, e.g. MAX_CLICK, MAX_IMPRESSION.
Optional daily budget in whole account-currency units. LinkedIn refines the suggested bid to this budget.
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.getLinkedInBidPricing({ body: { accountId: 'account_abc123', adAccountId: 'adaccount_abc123', spec: { countries: [ 'string', ], regions: [ { key: 'tok_abc123', }, ], cities: [ { key: 'tok_abc123', }, ], }, },});console.log(data);{
"available": true,
"pricing": {
"bidLimits": {
"min": {
"amount": "string",
"currencyCode": "string"
},
"max": {
"amount": "string",
"currencyCode": "string"
}
},
"suggestedBid": {
"min": {
"amount": "string",
"currencyCode": "string"
},
"default": {
"amount": "string",
"currencyCode": "string"
},
"max": {
"amount": "string",
"currencyCode": "string"
}
},
"dailyBudgetLimits": {
"min": {
"amount": "string",
"currencyCode": "string"
},
"default": {
"amount": "string",
"currencyCode": "string"
},
"max": {
"amount": "string",
"currencyCode": "string"
}
}
}
}{
"error": "Unauthorized"
}{
"error": "Not found"
}List DSA beneficiary/payor suggestions GET
Returns Meta's suggested beneficiary/payor names for an ad account, derived by Meta from the account's recent activity. Useful for prefilling `dsaBeneficiary`/`dsaPayor` inputs, or the defaults sent to `PATCH /v1/ads/accounts`, in your own UI. Meta returns a single flat list. Entries are not labeled as beneficiary or payor, and since these are legal disclosures Zernio never applies them automatically: let your user pick the right entity. The list may be empty for accounts with little activity. Meta accounts only.
Impressions, clicks and spend forecast (LinkedIn) POST
LinkedIn-only. Forecasted impressions, clicks, spend and ~20 other metrics for a targeting spec over a time range. Wraps LinkedIn's `adSupplyForecasts` finder. Each returned series carries a `metricType` (IMPRESSION, CLICK, SPENDING, MAX_POTENTIAL_BUDGET, COST_PER_MILLION_IMPRESSIONS, ...) and a `granularity` (DAILY, SEVEN_DAY, THIRTY_DAY, CUSTOM). LinkedIn caps the daily spending forecast at 1.2x the daily budget and returns 0 once the total budget is exhausted. Non-LinkedIn accounts return `available: false`.