Get ad details
Returns an ad with its creative, targeting, status, and performance metrics.
The {adId} path segment accepts any identifier dialect Zernio indexes for the ad:
- the Zernio internal _id (24-char hex)
- Meta's numeric platformAdId (the value shipped in comment.received webhooks as comment.ad.id)
- the creative's effective_object_story_id ({pageId}_{postId} shape, Facebook side)
- the creative's effective_instagram_media_id (Instagram side)
Any of the four resolve to the same ad. Caller doesn't need a translation step.
Path parameters
Zernio _id (hex), Meta platformAdId (numeric), or one of the creative's effective story/media IDs. See description for details.
Response
Ad details
Example response
{
"ad": {
"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 3 of the 27 revisions of this API.18
- ●
added the new
page_likesenum value to thead/goalresponse property for the response status200response-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
- ●
- ○
added the optional property
ad/creative/creativeIdto the response with the200statusresponse-optional-property-added
- ○
- ○
added the optional property
ad/metrics/anyOf[AdMetrics]/costPerActionto the response with the200statusresponse-optional-property-added
- ○
added the optional property
ad/metrics/anyOf[AdMetrics]/inlineLinkClickCtrto the response with the200statusresponse-optional-property-added
- ○
added the optional property
ad/metrics/anyOf[AdMetrics]/inlineLinkClicksto the response with the200statusresponse-optional-property-added
- ○
added the optional property
ad/metrics/anyOf[AdMetrics]/outboundClicksto the response with the200statusresponse-optional-property-added
- ○
added the optional property
ad/metrics/anyOf[AdMetrics]/outboundClicksCtrto the response with the200statusresponse-optional-property-added
- ○
added the optional property
ad/metrics/anyOf[AdMetrics]/uniqueClicksto the response with the200statusresponse-optional-property-added
- ○
added the optional property
ad/metrics/anyOf[AdMetrics]/uniqueCtrto the response with the200statusresponse-optional-property-added
- ○