TikTok

This page will help you learn about how Daasity replicates data from TikTok, limitations to the data we can extract and where the data is stored in the TikTok schema.

Overview

TikTok is a popular social media app that allows users to create, watch, and share videos. With its personalized feeds of short videos set to music and sound effects, the app is notable for its high levels of engagement.

This document provides context on what kind of data is being gathered through this extractor, which endpoints that data is coming from, and how the extracted tables relate to each other.

Integration Availability

This integration is available for:

  • Enterprise

  • Growth

API Endpoints

The Daasity TikTok extractor is built based on this TikTok API Documentation. The following endpoints are used by Daasity to replicate data from TikTok:

Entity Relationship Diagram (ERD)

Click here to view the ERD for the Daasity TikTok integration illustrating the different tables and keys to join across tables.

TikTok Schema

The Daasity TikTok extractor creates these tables using the endpoints and replication methods listed. The data is mapped from the source API endpoint to the table based on the mapping logic outlined in each table.

Ad Groups

  • Endpoint: Ad Group

  • Update Method: UPSERT

  • Table Name: [tiktok.ad_groups]

Ad Group Audience

  • Endpoint: Ad Group

  • Update Method: UPSERT

  • Table Name: [tiktok.adgroup_audience]

Ad Group Device Model

  • Endpoint: Ad Group

  • Update Method: UPSERT

  • Table Name: [tiktok.adgroup_device_model]

Ad Group Placement

  • Endpoint: Ad Group

  • Update Method: UPSERT

  • Table Name: [tiktok.adgroup_placement]

Ads

  • Endpoint: Ad

  • Update Method: UPSERT

  • Table Name: [tiktok.ads]

Ad Spend Auction Metrics

  • API Endpoint: Reports

  • Update Method: UPSERT

  • Table Names: tiktok.adspend_auction_ad, tiktok.adspend_auction_adgroup, tiktok.adspend_auction_campaign

The following metrics are extracted from the Reports API Endpoint and can be queried at the ad, ad group, and campaign level for all Ad Spend Auction tables. The metrics included are:

Ad Spend Auction Ad

  • Endpoint: Reports

  • Update Method: UPSERT

  • Table Name: [tiktok.adspend_auction_ad]

NOTE: There are two extractions being made for this report, due to dimension limits within an extraction. The primary table will contain the full set of columns while their stage tables (tables ending in _stg) will have a subset of metrics. Stage tables are stitched together to complete the primary table, updating rows with matching sync keys.

Ad Spend Auction Ad Group

  • Endpoint: Reports

  • Update Method: UPSERT

  • Table Name: [tiktok.adspend_auction_adgroup]

NOTE: There are two extractions being made for this report, due to dimension limits within an extraction. The primary table will contain the full set of columns while their stage tables (tables ending in _stg) will have a subset of metrics. Stage tables are stitched together to complete the primary table, updating rows with matching sync keys.

Ad Spend Auction Campaign

  • Endpoint: Reports

  • Update Method: UPSERT

  • Table Name: [tiktok.adspend_auction_campaign]

NOTE: There are two extractions being made for this report, due to dimension limits within an extraction. The primary table will contain the full set of columns while their stage tables (tables ending in _stg) will have a subset of metrics. Stage tables are stitched together to complete the primary table, updating rows with matching sync keys.

Ad Spend Reservation Metrics

  • Endpoint: Reports

  • Update Method: UPSERT

  • Table Name: [tiktok.adspend_reservation_ad], [tiktok.adspend_reservation_adgroup], [tiktok.adspend_reservation_campaign]

The following metrics are extracted from the Reports API Endpoint and can be queried at the ad, ad group, and campaign level for all Ad Spend Auction tables. The metrics included are:

NOTE: Daasity has currently disabled the endpoint for reservation reports. Please contact Support@Daasity.com to enable the endpoint.

Ad Spend Reservation Ad

  • Endpoint: Reports

  • Update Method: UPSERT

  • Table Name: [tiktok.adspend_reservation_ad]

NOTE: Two extractions are being made for this report, due to dimension limits within an extraction. The primary table will contain the full set of columns while their stage tables (tables ending in _stg) will have a subset of metrics. Stage tables are stitched together to complete the primary table, updating rows with matching sync keys.

NOTE: Daasity has currently disabled the endpoint for reservation reports. Please contact Support@Daasity.com to enable the endpoint.

Ad Spend Reservation Ad Group

  • Endpoint: Reports

  • Update Method: UPSERT

  • Table Name: [tiktok.adspend_reservation_adgroup]

NOTE: Two extractions are being made for this report, due to dimension limits within an extraction. The primary table will contain the full set of columns while their stage tables (tables ending in _stg) will have a subset of metrics. Stage tables are stitched together to complete the primary table, updating rows with matching sync keys.

NOTE: Daasity has currently disabled the endpoint for reservation reports. Please contact Support@Daasity.com to enable the endpoint.

Ad Spend Reservation Campaign

  • Endpoint: Reports

  • Update Method: UPSERT

  • Table Name: [tiktok.adspend_reservation_campaign]

NOTE: Two extractions are being made for this report, due to dimension limits within an extraction. The primary table will contain the full set of columns while their stage tables (tables ending in _stg) will have a subset of metrics. Stage tables are stitched together to complete the primary table, updating rows with matching sync keys.

NOTE: Daasity has currently disabled the endpoint for reservation reports. Please contact Support@Daasity.com to enable the endpoint.

Advertisers

  • Endpoint: Advertisers

  • Update Method: UPSERT

  • Table Name: [tiktok.advertisers]

Campaigns

  • Endpoint: Campaigns

  • Update Method: UPSERT

  • Table Name: [tiktok.campaigns]

Last updated