OverviewProductsPlatformsAPI ReferenceResources

Analytics & insights

Read spend, views and CTR for a TikTok ad with breakdowns, and run live TikTok reports for de-duplicated reach.


Read a TikTok ad's synced metrics with GET /v1/ads/{adId}/analytics, or run a live TikTok report with GET /v1/ads/insights for what the synced metrics cannot answer.

Read ad analytics

Call GET /v1/ads/{adId}/analytics with the ad's _id for spend, impressions, clicks, CTR, CPM and video metrics.

Add breakdowns for a split by gender, age, country_code, platform, ac or language.

TypeScript
const { data: insights } = await zernio.adinsights.getAdAnalytics({
  path: { adId: '66f0a1b2c3d4e5f6a7b8c9d0' },
  query: { fromDate: '2027-01-04', toDate: '2027-01-11', breakdowns: 'age' }
});

console.log(insights.analytics.breakdowns.age);

Response (200), trimmed:

JSON
{
  "ad": { "id": "66f0a1b2c3d4e5f6a7b8c9d0", "name": "Boost viral video", "platform": "tiktok", "status": "active", "currency": "USD" },
  "analytics": {
    "summary": { "spend": 312.4, "impressions": 128400, "clicks": 2110, "ctr": 1.64, "cpc": 0.15, "cpm": 2.43, "videoPlayActions": 96200, "videoP100WatchedActions": 18400 },
    "daily": [ { "date": "2027-01-04", "spend": 44.1, "impressions": 18200, "clicks": 301 } ],
    "breakdowns": { "age": [ { "value": "AGE_18_24", "spend": 140.2, "impressions": 61000, "clicks": 1080 } ] }
  }
}

GET /v1/ads/tree rolls the same metrics up per campaign and ad group (Get campaign tree).

Offline conversions (in-store, CRM, call-center) go to TikTok through POST /v1/events (Send a conversion event).

Live reports and de-duplicated reach

GET /v1/ads/insights runs TikTok's synchronous report live, for questions the synced metrics cannot answer.

The most common one is reach across a set. Adding the reach of two campaigns counts a person who saw both twice, and the synced numbers only hold per-entity reach.

Send these params:

ParamValue
accountIdA tiktok or tiktokads connection
adAccountIdThe advertiser id
dataLevelAUCTION_ADVERTISER, AUCTION_CAMPAIGN, AUCTION_ADGROUP or AUCTION_AD
dimensions1 to 4 TikTok dimensions, comma-separated
metricsTikTok metric names, comma-separated
fromDate/toDateTikTok caps the span at 365 days

reportType is BASIC (the default) or AUDIENCE.

filtering takes the same JSON array as Meta, [{"field", "operator", "value"}]. Use TikTok's field names (campaign_ids, adgroup_ids, ad_ids) and TikTok's filter type as operator, for example IN.

For de-duplicated reach, filter the set and group by country_code instead of the entity id. TikTok then counts each person once across the whole set and date range.

Two campaigns over a month:

TypeScript
const { data: report } = await zernio.adinsights.queryAdInsights({
  query: {
    accountId: '66b2e19d8c3f5a7e9d0b1c2d',
    adAccountId: '7123456789012345678',
    dataLevel: 'AUCTION_CAMPAIGN',
    dimensions: 'country_code',
    metrics: 'reach,impressions,frequency',
    fromDate: '2027-01-01',
    toDate: '2027-01-31',
    filtering: JSON.stringify([{ field: 'campaign_ids', operator: 'IN', value: ['1876574798182050', '1876575504573650'] }])
  }
});

Response (200), trimmed:

JSON
{
  "adAccountId": "7123456789012345678",
  "data": [
    { "dimensions": { "country_code": "US" }, "metrics": { "reach": "17770000", "impressions": "41210000", "frequency": "2.32" } }
  ],
  "paging": { "page": 1, "pageSize": 100, "totalRows": 1, "totalPages": 1 }
}

Rows come back verbatim from TikTok, with metric values as strings. Page with page and pageSize (up to 1,000).

For a set of ads, use dataLevel=AUCTION_AD with ad_ids. For ad groups, use AUCTION_ADGROUP with adgroup_ids.

How it behaves

  • When the account connects, Zernio imports its last 90 days of metrics. The summary and daily of GET /v1/ads/{adId}/analytics hold no data for days before that, because only Meta backfills an older range on request. Breakdowns and live reports read TikTok directly over the requested range, so they cover those days.
  • Reach is per country. When the set delivers in several countries, summing the rows counts a person reached in two countries twice.
  • The filter must match the data level or a coarser one. A finer filter, such as ad_ids at AUCTION_CAMPAIGN, answers 400: TikTok would silently widen it to every campaign containing those ads.
  • AUCTION_ADVERTISER takes no entity filter.
  • Asynchronous report runs (POST /v1/ads/insights/reports) stay Meta only.

If it fails

ErrorCauseFix
400 with TikTok's messageTikTok rejected the report query, such as an unknown metric or a bad dimension combinationFix the field TikTok's message names.
400 on a filterThe filter is finer than dataLevel, such as ad_ids at AUCTION_CAMPAIGNUse a matching or coarser dataLevel.
403The connection cannot read that advertiserCheck adAccountId, or reconnect TikTok Ads.
429TikTok's rate limitBack off and retry.
Was this page helpful?

On this page