List comments on an ad
Returns comments on an ad's underlying creative post. Useful for moderating or analyzing engagement on dark posts (ad creatives that never went live organically), which the regular GET /v1/inbox/comments/{postId} endpoint cannot serve because dark posts are not in Zernio's post database. Resolves the ad's creative effective_object_story_id (Facebook) or effective_instagram_media_id (Instagram) via the Marketing API on each call (cached in-process by the platform client), then fetches comments from the Graph API. Meta-only. Other ad platforms (TikTok, LinkedIn, Pinterest, Google, X) do not expose a public per-ad comments API and return feature_not_available. Requires the Ads add-on. Response shape matches GET /v1/inbox/comments/{postId}.
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
Internal Zernio ad ID (ObjectId).
Query Parameters
251 <= value <= 100Pagination cursor from a previous response.
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.getAdComments({ path: { adId: 'ad_abc123', },});console.log(data);{
"status": "success",
"comments": [
{}
],
"pagination": {
"hasMore": true,
"cursor": "string"
},
"meta": {
"platform": "facebook",
"adId": "string",
"platformAdId": "string",
"effectiveStoryId": "string",
"accountId": "string",
"lastUpdated": "2019-08-24T14:15:22Z"
}
}{
"error": "Unauthorized"
}{
"error": "Not found"
}Get ad analytics GET
Returns detailed performance analytics for an ad. Includes summary metrics, a daily timeline over the requested date range, and optional demographic breakdowns (Meta and TikTok only). If no date range is provided, defaults to the last 90 days. Date range is capped at 90 days max.
Get ad details GET
Returns an ad with its creative, targeting, status, and performance metrics.