v2

latestOpenAPI 3.1.02026-08-075421692.0 MB
Ad Campaigns

Get daily account metrics

Returns daily aggregate metrics across all ads in a SocialAccount as a single time series — one row per calendar day in the requested range. Use this for dashboards that draw a daily-spend or daily-conversions chart, instead of calling /v1/ads/tree once per day.

accountId is required. The lookup is sibling-expanded so passing the metaads ID also includes ads under the linked facebook / instagram posting account (and vice-versa) — same convention as /v1/ads/tree and /v1/ads.

Date range defaults to the last 90 days. Capped at 730 days. Ranges older than the ingested history return a 202 immediately with the covered part and backfillPending: true while the rest is backfilled in the background; repeat the request shortly until it returns 200 with full data.

get/v1/ads/timeline

Query parameters

accountIdstring required

Social account ID. Sibling-expanded to its linked posting↔ads pair.

adAccountIdstring

Optional platform-native ad account ID (e.g. Meta act_…, TikTok advertiser ID). Use when the connection wraps multiple platform ad accounts and the chart should show one only. Note: rows ingested before 2026-05-13 don't carry this column; the recurring 7-day re-sync repopulates them naturally.

fromDatestring date

Inclusive start of metrics range (YYYY-MM-DD). Defaults to 90 days ago.

toDatestring date

Inclusive end of metrics range (YYYY-MM-DD). Defaults to today. Max 730-day range.

platform'facebook' | 'instagram' | 'tiktok' | 'linkedin' | 'pinterest' | 'google' | 'twitter' | 'openai'

Restrict to one platform.

Response

Daily time series of aggregate metrics. Empty rows means the account has no ad activity in the range.

backfillPendingboolean

Present and true only on 202 responses: part of the requested date range is still being backfilled from the platform in the background. Retry the same request shortly; it returns 200 once the range is fully ingested.