Read one ad account’s daily insights with GET /api/v1/ads/accounts/{accountId}/insights. Requires an API key with the read scope or a signed-in workspace member.
Request
Returns stored daily rows, a summary in the account currency, and syncedAt. Values are provider observations, never local intent.
| Parameter | In | Type | Required |
|---|---|---|---|
accountId |
path | UUID | Yes |
workspaceId |
query | UUID | Yes |
campaignId |
query | UUID | No |
adGroupId |
query | UUID | No |
adId |
query | UUID | No |
from |
query | string | No |
to |
query | string | No |
level |
query | "campaign", "ad_group", "ad" |
No |
metrics |
query | array of string | No |
cursor |
query | string | No |
limit |
query | string | No |
Response
- HTTP 200:
AdInsightListwithdata,summary,hasMore,nextCursor,freshness.
The OpenAPI document has each field’s type.
Examples
const insights = await workspace.ads.accountInsights(accountId, {
level: "campaign",
from: "2026-11-01",
to: "2026-11-30",
});insights = workspace.ads.list_insights(account_id)curl "https://pubnio.com/api/v1/ads/accounts/$ACCOUNT_ID/insights?workspaceId=$WORKSPACE_ID" \
-H "Authorization: Bearer $PUBNIO_API_KEY"pnio ads list-insights "$ACCOUNT_ID" --level campaign --from 2026-11-01 --to 2026-11-30async () => {
const accountId = "<accountId>";
const response = await codemode.request({
method: "GET",
path: `/api/v1/ads/accounts/${accountId}/insights`,
query: { workspaceId: codemode.workspaceId },
});
return response.data;
};Errors
It declares no problem of its own.
It declares the problems every Ads operation and most operations declare.
Idempotency
None needed: a read is safe to retry.
Limits
- Up to 100 items a page; pass
nextCursorback ascursor. See Pagination.