List ads
Returns a paginated list of ads with metrics computed over an optional date range. Use source=all to include externally-synced ads from platform ad managers. If no date range is provided, defaults to the last 90 days. Date range is capped at 730 days max.
To find the Zernio ad behind a comment you see in Meta Business Manager, filter by platformAdId (the Meta ad ID), effectiveObjectStoryId (Facebook), or effectiveInstagramMediaId (Instagram) — those are the post/media the ad's engagement lives on, and are also returned on each ad's creative object. Then call GET /v1/ads/{adId}/comments with the returned ad id.
Query parameters
Page number (1-based)
all (default) = Zernio-created + platform-discovered ads. zernio = restrict to Zernio-created only.
Social account ID
Platform ad account ID (e.g. act_123 for Meta). Mirrors the same filter on /v1/ads/campaigns and /v1/ads/tree.
Meta only: Facebook Page ID. Returns only ads whose creative is backed by this Page (a Meta ad account serves ads for every Page in the Business Manager). Matches each ad's creative.pageId; ads with no page signal (rare IG-only creatives) never match. Mirrors the same filter on /v1/ads/campaigns and /v1/ads/tree.
Profile ID
Platform campaign ID (filter ads within a campaign)
Meta ad ID. Returns the ad with this platform-side ad ID.
Facebook {pageId}_{postId} of the post the ad's engagement lives on (Meta effective_object_story_id). Use to map a Business-Manager-visible post back to the Zernio ad.
Instagram media ID of the boosted post (Meta effective_instagram_media_id). Use to map a Business-Manager-visible IG post back to the Zernio ad.
Start of metrics date range (YYYY-MM-DD). Defaults to 90 days ago.
End of metrics date range (YYYY-MM-DD). Defaults to today. Max 730-day range.
Response
Paginated ads
Example response
{
"ads": [
{
"configuredStatus": "ACTIVE",
"creativeType": "video",
"metrics": {
"actions": {
"link_click": 160,
"post_engagement": 300,
"offsite_conversion.fb_pixel_purchase": 42
},
"actionValues": {
"offsite_conversion.fb_pixel_purchase": 2456.78,
"offsite_conversion.fb_pixel_add_to_cart": 980.5
},
"costPerAction": {
"link_click": 0.1052,
"offsite_conversion.fb_pixel_purchase": 4.0114
}
},
"platformObjective": "OUTCOME_SALES",
"optimizationGoal": "OFFSITE_CONVERSIONS",
"costType": "CPC",
"servingStatuses": [
"ACCOUNT_TOTAL_BUDGET_HOLD"
],
"platformAdAccountName": "Zernio - previously Late",
"bidAmount": 5,
"roasAverageFloor": 2,
"promotedObject": {
"custom_event_type": "PURCHASE"
},
"creative": {
"servingHoldReasons": [
"UNDER_REVIEW"
]
}
}
]
}Changes
Changed in 4 of the 26 revisions of this API.1210
- ●
added the new
page_likesenum value to theads/items/goalresponse property for the response status200response-property-enum-value-added
- ●
added the new
page_likesenum value to theallOf[AdsListResponse]/ads/items/goalresponse property for the response status202response-property-enum-value-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ▲
the
backfillPendingresponse property const valuetruewas removed for the status202response-property-const-removed
- ▲
- ○
added the optional property
ads/items/creative/creativeIdto the response with the200statusresponse-optional-property-added
- ○
added the optional property
allOf[AdsListResponse]/ads/items/creative/creativeIdto the response with the202statusresponse-optional-property-added
- ○
- ○
added the media type
application/jsonfor the response with the status202response-media-type-added
- ○
added the optional property
ads/items/metrics/anyOf[AdMetrics]/costPerActionto the response with the200statusresponse-optional-property-added
- ○
added the optional property
ads/items/metrics/anyOf[AdMetrics]/inlineLinkClickCtrto the response with the200statusresponse-optional-property-added
- ○
added the optional property
ads/items/metrics/anyOf[AdMetrics]/inlineLinkClicksto the response with the200statusresponse-optional-property-added
- ○
added the optional property
ads/items/metrics/anyOf[AdMetrics]/outboundClicksto the response with the200statusresponse-optional-property-added
- ○
added the optional property
ads/items/metrics/anyOf[AdMetrics]/outboundClicksCtrto the response with the200statusresponse-optional-property-added
- ○
added the optional property
ads/items/metrics/anyOf[AdMetrics]/uniqueClicksto the response with the200statusresponse-optional-property-added
- ○
added the optional property
ads/items/metrics/anyOf[AdMetrics]/uniqueCtrto the response with the200statusresponse-optional-property-added
- ○