Skip to main content

TikTok Marketing

This page contains the setup guide and reference information for TikTok Marketing.

Prerequisites

  • A Tiktok Ads Business account with permission to access data from accounts you want to sync

Setup guide

Step 1: Set up TikTok

  1. Create a TikTok For Business account here.

  2. Follow this guide to Register as a TikTok developer.

  3. Follow this guide to Create a TikTok developer app.

    Follow this guide to Create a TikTok Sandbox Ad Account.

Step 2: Obtain the Access token

  1. Inside the app you created in Step 1, you will find the Access token, Secret, and App ID. Copy them and use them to set up the source in Daspire.

Step 3: Set up TikTok Marketing in Daspire

  1. Select TikTok Marketing from the Source list.

  2. Enter a Source Name.

  3. To authenticate your account, select Production Access Token or Sandbox Access Token and enter the Access Token you generated in Step 2.

  4. For Start Date, enter a UTC date and time in the format YYYY-MM-DDTHH:mm:ssZ. The data added on and after this date will be replicated.

  5. Click Save & Test.

Output schema

This Source is capable of syncing the following core Streams:

StreamEnvironmentKeyIncremental
AdvertisersProduction, Sandboxadvertiser_idNo
AdGroupsProduction, Sandboxadgroup_idYes
AdsProduction, Sandboxad_idYes
AdsReportsHourlyProduction, Sandboxad_id, stat_time_hourYes
AdsReportsDailyProduction, Sandboxad_id, stat_time_dayYes
AdsReportsLifetimeProduction, Sandboxad_idNo
AdvertisersReportsHourlyProductionadvertiser_id, stat_time_hourYes
AdvertisersReportsDailyProductionadvertiser_id, stat_time_dayYes
AdvertisersReportsLifetimeProductionadvertiser_idNo
AdGroupsReportsHourlyProduction, Sandboxadgroup_id, stat_time_hourYes
AdGroupsReportsDailyProduction, Sandboxadgroup_id, stat_time_dayYes
AdGroupsReportsLifetimeProduction, Sandboxadgroup_id, stat_time_dayYes
AdGroupsReportsDailyProduction, Sandboxadgroup_idNo
AudiencesProduction, Sandboxaudience_idNo
CampaignsProduction, Sandboxcampaign_idNo
CampaignsReportsHourlyProduction, Sandboxcampaign_id, stat_time_hourYes
CampaignsReportsDailyProduction, Sandboxcampaign_id, stat_time_dayYes
CampaignsReportsLifetimeProduction, Sandboxcampaign_idNo
CreativeAssetsImagesProduction, Sandboximage_idYes
CreativeAssetsMusicProduction, Sandboxmusic_idYes
CreativeAssetsPortfoliosProduction, Sandboxcreative_portfolio_idNo
CreativeAssetsVideosProduction, Sandboxvideo_idYes
AdvertiserIdsProductionadvertiser_idYes
AdvertisersAudienceReportsDailyProductionadvertiser_id, stat_time_day, gender, ageYes
AdvertisersAudienceReportsByCountryDailyProductionadvertiser_id, stat_time_day, country_codeYes
AdvertisersAudienceReportsByPlatformDailyProductionadvertiser_id, stat_time_day, platformYes
AdvertisersAudienceReportsLifetimeProductionadvertiser_id, gender, ageNo
AdGroupAudienceReportsDailyProduction, Sandboxadgroup_id, stat_time_day, gender, ageYes
AdGroupAudienceReportsByCountryDailyProduction, Sandboxadgroup_id, stat_time_day, country_codeYes
AdGroupAudienceReportsByPlatformDailyProduction, Sandboxadgroup_id, stat_time_day, platformYes
AdsAudienceReportsDailyProduction, Sandboxad_id, stat_time_day, gender, ageYes
AdsAudienceReportsByCountryDailyProduction, Sandboxad_id, stat_time_day, country_codeYes
AdsAudienceReportsByPlatformDailyProduction, Sandboxad_id, stat_time_day, platformYes
AdsAudienceReportsByProvinceDailyProduction, Sandboxad_id, stat_time_day, province_idYes
CampaignsAudienceReportsDailyProduction, Sandboxcampaign_id, stat_time_day, gender, ageYes
CampaignsAudienceReportsByCountryDailyProduction, Sandboxcampaign_id, stat_time_day, country_codeYes
CampaignsAudienceReportsByPlatformDailyProduction, Sandboxcampaign_id, stat_time_day, platformYes

Data latency

TikTok Reporting API has some Data Latency, usually of about 11 hours. It is recommended to use higher values of attribution window (used in Incremental Syncs), at least 3 days, to ensure that the integration updates metrics in already presented records.

Report aggregation

Reports synced by this integration can use either hourly, daily, or lifetime granularities for aggregating performance data. For example, if you select the daily-aggregation flavor of a report, the report will contain a row for each day for the duration of the report. Each row will indicate the number of impressions recorded on that day.

Performance considerations & troubleshooting

  1. The integration is restricted by TikTok Marketing API requests limitation. This integration should not run into the limitations under normal usage.

  2. Max number of tables that can be synced at a time is 6,000. We advise you to adjust your settings if it fails to fetch schema due to max number of tables reached.