Rank ads by performance
Returns an ads account's ads ranked by spend, impressions, clicks, results or ROAS over a date range, each with its creative (type, thumbnail, headline, body, link) and campaign.
Use it to see which creatives perform best. accountId is sibling-expanded like /v1/ads/timeline.
Money is ranked by its raw amount, so pass adAccountId when the connection's ad accounts bill in different currencies.
A Meta range older than the imported history answers 202 with backfillPending: true and the covered part; repeat the request until it returns 200.
Authentication
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
Query parameters
Account ID. Sibling-expanded to its linked posting and ads pair. An id the API key cannot reach answers 404.
Optional platform-native ad account ID (e.g. Meta act_…) to rank one ad account only.
Inclusive start of the range (YYYY-MM-DD).
Inclusive end of the range (YYYY-MM-DD). Max 730-day range.
facebook | instagram | tiktok | linkedin | pinterest | google | twitter | openai | reddit | microsoftRestrict to one platform.
spendOne of spend | impressions | clicks | conversions | roasMetric the ads are ranked by, highest first.
50How many ads to return.
Responses
Success· the request worked
Errors· the request failed
List ads that need attention
Lists what needs attention across your ads, most severe first: - ads created in the last 90 days that were rejected - campaigns the platform reports delivery issues on - Meta ad accounts with a failed or overdue payment, or disabled while holding live ads - campaigns that spent on 3 or more of the last 7 days without a result (conversion, lead, purchase or conversation goals) - budgets spent to their daily cap yesterday - ads connections that need reconnecting while they still hold live ads - ad accounts whose sync has been failing Built from stored data and the last 7 days of synced metrics, so it costs no platform call. Each alert has a stable `id`. Dismiss one with `POST /v1/ads/alerts/{alertId}/dismiss` to hide it for 30 days.
List shared budgets
Lists a Google Ads account's shared budgets and how many campaigns draw from each. Lists the Google Ads customer's shared campaign budgets (`campaign_budget.explicitly_shared` = true, not removed), with how many campaigns use each. Move a campaign onto one with `sharedBudgetId` on PUT /v1/ads/campaigns/{campaignId}. Google only; other platforms return 501.