Poll an async insights report run (Meta)
Status and results for a report run created via POST /v1/ads/insights/reports. While the job
runs, returns status and percentCompletion. Once status is "Job Completed" the response
also carries a data page, cursor-paginated via limit / after.
API key authentication - use your Zernio API key as a Bearer token
In: header
Path Parameters
Query Parameters
Zernio SocialAccount id used to resolve the Meta token (must be the same connection that created the run).
251 <= value <= 500Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.ads.getAdInsightsReport({ path: { reportRunId: 'reportrun_abc123', }, query: { accountId: 'account_abc123', },});console.log(data);{
"reportRunId": "string",
"status": "string",
"percentCompletion": 0,
"dateStart": "string",
"dateStop": "string",
"data": [
{}
],
"paging": {
"after": "string"
}
}{
"error": "Unauthorized"
}Submit an async insights report run (Meta) POST
Submits an asynchronous Meta insights report. Same query surface as GET /v1/ads/insights, but in the JSON body; Meta processes the report server-side, which is the right choice for long ranges or large accounts where the sync query is slow or rate-limited. Returns a `reportRunId` to poll via GET /v1/ads/insights/reports/{reportRunId}. Meta only.
Get ad account DSA defaults GET
Returns the default DSA beneficiary and payor currently set on a Meta ad account, whether they were set via `PATCH /v1/ads/accounts` or in Meta Ads Manager. Fields are omitted when no default is configured. Meta accounts only.