ETLMCPData Conveyance Works
Log in Start free
Docs

TikTok connector: what is synced and how

What a TikTok sync pulls per ad per day, which spend it leaves out, how far it re-pulls, and which accounts and campaigns it refuses.

Coming This connector is coming.

When the connector is available, a TikTok sync will read TikTok's synchronous basic report at ad level, one row per ad per day, at most 30 days per request, TikTok's own limit. Each routine sync will pull the last 29 days again. Spend from GMV Max and Branded Mission will not be in the cost column, and a few kinds of account and campaign will be refused with a message that says why, rather than synced with figures missing. TikTok's login gives a token that etlmcp has no way to renew, so when TikTok stops accepting it you reconnect TikTok.

The fields each row carries, and which TikTok metric fills each one, are listed on the TikTok connector page.

The report etlmcp asks for

Each request will go to TikTok's /report/integrated/get/ endpoint with the report type BASIC, the data level AUCTION_AD, and the dimensions ad_id and stat_time_day. TikTok's reference for that endpoint limits a request grouped by day to 30 days, so a longer range will be split into windows of that length. Dates are in the ad account's own time zone, as TikTok's reporting FAQ says, not in UTC.

By default TikTok's synchronous report leaves deleted ads out. etlmcp will set the ad_status filter to STATUS_ALL, so spend from an ad you have since deleted still shows on the days it ran. TikTok's filter reference also says that a synchronous report covers only campaigns made in Ads Manager or through the API unless campaign_system_origins names Promote campaigns, the ones created in the TikTok mobile app. etlmcp will name both origins, so Promote spend will be in your table too.

TikTok's reporting FAQ says that for an ad and day with no data, the report sometimes returns figures of zero and sometimes leaves the row out. etlmcp will store neither kind: a row whose figures are all zero or empty is dropped.

Reach and video views

Two figures beyond the common fields will be kept as extra columns: extra.reach, from TikTok's reach, and extra.video_views, from video_play_actions. TikTok's metrics reference defines reach as unique users who saw the ads at least once, and video views as the number of times a video started to play, replays not counted.

Reach is a count of people for one ad on one day. The same person can appear on many days and under many ads, so adding reach up gives a number larger than the real audience. When a transform groups rows, etlmcp combines the other numeric extra columns with the group's aggregate but leaves reach out. Video views can be added up like clicks.

Spend that is not included

cost will be TikTok's spend, in the ad account's currency. TikTok's filter reference says basic reports cover auction ads and the reservation ads Reach & Frequency and TopView. Two kinds of spend will be left out:

  • GMV Max. TikTok's filter reference says synchronous basic reports leave out the figures of Product GMV Max and LIVE GMV Max ads that were set up in TikTok Shop. Their figures come from a separate GMV Max report that etlmcp does not read.
  • Branded Mission. etlmcp's field list marks Branded Mission spend as not included, because it is not reported per ad.

If your account spends on either, your cost total will be lower than the account total in Ads Manager. Compare at campaign level and leave those campaigns out of the comparison.

Accounts and campaigns that are refused

When the connector is available, etlmcp will stop the run and say why in cases that would otherwise leave figures silently missing from your table.

Reservation ad accounts. etlmcp asks for auction figures, and TikTok's FAQ says that when the report's service type does not match the account, as with an auction report on a reservation account, the answer is a success with an empty list. When a whole range comes back empty, etlmcp will ask TikTok what kind of account it is. If it is a reservation account, the run fails with this is a TikTok reservation ad account, whose figures this connection cannot read.

Older TopView ads. TikTok's filter reference says ad-level cost for TopView ads only covers ads delivered after January 18, 2024. Before a run whose range reaches back that far, etlmcp will check whether the account had TopView activity then, and if so the run fails with TikTok has no cost per ad for the TopView ads this account may have run up to {…}: start after that day, naming the date. Start your backfill after that day.

More than 20,000 ads. TikTok's endpoint reference says one answer covers at most 20,000 ads, and its FAQ says the X-Tt-Ads-Throttle header marks an answer that was cut to the newest ones. When etlmcp sees that header, it will ask again campaign by campaign, splitting each batch of campaigns until every answer is whole. Only when a single campaign is over the cap does the run fail, with a TikTok campaign has more than 20,000 ads, more than TikTok returns. If the campaign list itself is cut, it fails with this TikTok ad account has more campaigns than TikTok returns.

In the account picker, an ad account that TikTok will not let the connection read will be listed with a note but cannot be ticked.

Re-pulls and history

TikTok's reporting FAQ says a script that fixes the previous day's data runs every day at 08:00 UTC, so a day's figures can change after you first read them. A routine sync will therefore re-pull the last 29 days, longer than the default of 7, and the newer figures replace the stored rows for those days. See the trailing window.

TikTok's FAQ says report data is kept with no lookback limit. How far back you can load is set by your plan instead: Free keeps 30 days of history, and a routine sync never reaches back past the plan's history. See the plans.

The token and reconnecting

TikTok's long-term access token page says the token does not expire. When the connector is available, etlmcp will store that one token and ask for no refresh token, so it keeps working until access is withdrawn or TikTok stops accepting it.

When TikTok refuses the token, the connector reports tiktok refused this connection's access (code {…}), filled in with TikTok's return code, and the run ends with {…} needs reconnecting, filled in with TikTok. The connection and its sources are marked as needing a reconnect, the owners are emailed once, and scheduled syncs skip those sources until you reconnect TikTok. Because the stored token has no end date, there is no advance email about expiry, unlike the platforms covered in expiring connections.

Related

Sources

  1. Run a synchronous report — business-api.tiktok.com, checked
  2. Basic report supported filters — business-api.tiktok.com, checked
  3. Basic report supported metrics — business-api.tiktok.com, checked
  4. FAQs — business-api.tiktok.com, checked
  5. Obtain a long-term access token — business-api.tiktok.com, checked