TikTok pipelines
API pulls on a schedule with backfills and alerts.
TikTok Ads
TikTok is often the newest channel in the mix and the hardest to compare. We pull TikTok Ads reporting through the TikTok API for Business, land it in Redshift, Snowflake, BigQuery, PostgreSQL or Databricks, and model it for Tableau, Power BI or Looker Studio, lined up with every other channel.
What we pull
Pulled through the platform's API on a schedule, landed in your warehouse, and kept up to date.
Example mapping
The same fields every other platform has, under different names and rules. Here is how we line them up.
| Concept | TikTok Ads field | In your model | What we do |
|---|---|---|---|
| Spend | spend | spend_usd | Kept in the advertiser currency, then converted |
| Date & time zone | stat_time_day | date + account_tz | Reporting day in the advertiser's time zone |
| Currency | currency | currency + spend_usd | Per advertiser account |
| Attribution window | conversion | attributed_sales + attribution_window | The window set in the TikTok account |
What we build
API pulls on a schedule with backfills and alerts.
TikTok mapped into the same model as Google and Meta, with its attribution window labeled.
Rules that pause ad groups below a ROAS floor you set, logged and reversible.
Where the data goes
How TikTok reporting moves from the API into tables your BI tool can read.
We call the TikTok API for Business reporting endpoint for each advertiser ID you authorize, at campaign, ad group and ad level, by day. Backfills are split into date ranges and paced to stay inside TikTok's rate limits.
Each response is kept as returned: a SUPER column in Redshift, VARIANT in Snowflake, JSON in BigQuery or jsonb in PostgreSQL. A replay never needs another API call.
dbt models flatten the metrics, attach campaign and ad group names and statuses, and map spend, clicks and conversions into the shared model with TikTok's attribution settings on each row.
Tableau, Power BI and Looker Studio connect to the modeled tables, not the raw ones, so a renamed TikTok field doesn't break a dashboard.
| Table | Grain | What's in it |
|---|---|---|
tiktok_raw.report_basic | One API response per advertiser, level and day | Raw JSON from the reporting endpoint, kept for replays. |
tiktok_ads.campaigns, ad_groups, ads | One row per object, refreshed daily | Names, status, objective, budget and optimization goal. |
tiktok_ads.ad_daily | Ad x day, in the advertiser's time zone | Spend, impressions, clicks, conversions, video plays, 2-second and 6-second views, and completion at 25, 50, 75 and 100 percent. |
tiktok_ads.ad_group_daily_audience | Ad group x day x age, gender or country | From TikTok's audience reports, for breakdowns the basic report doesn't carry. |
marts.fct_ad_spend_daily | Platform x account x campaign x day | TikTok next to Google, Meta and Amazon in one spend model. |
Warehouses we load: Amazon Redshift, Snowflake, BigQuery, Databricks and PostgreSQL. BI tools on top: Tableau, Power BI and Looker Studio, as dashboards or automated client reports. How we model it: marketing data warehouse.
Results
FAQ
Yes, as long as the attribution settings stay visible. We store TikTok's attribution window with every row, so you can compare like for like or on a blended rule you agree on.
Yes. TikTok Ads reports from the TikTok API for Business are written to S3, loaded into Redshift with COPY and modeled into campaign, ad group and ad tables by day. The raw JSON sits in a SUPER column, so nothing is lost when TikTok adds a field. The same pipeline can target Snowflake, BigQuery, PostgreSQL or Databricks instead.
Point Tableau at the modeled tables in your warehouse, not at the TikTok API. Tableau has native connectors for Redshift, Snowflake, BigQuery, PostgreSQL and Databricks. For most teams a Tableau extract refreshed after the daily pipeline finishes is faster than a live connection.
The dependable route runs through your warehouse. TikTok data lands in Redshift, Snowflake, BigQuery or PostgreSQL, and Power BI reads the modeled tables through its own connector for that warehouse, in Import or DirectQuery mode. That puts TikTok in the same Power BI model as your other channels.
Yes. PostgreSQL suits smaller account sets, with the raw response in a jsonb column next to the modeled tables. The TikTok reporting API returns JSON, and we keep it as returned in staging. If another system needs files rather than tables, the output can also be written to a storage bucket as JSON or CSV.
Tell us which accounts you run and where the numbers stop matching. An engineer will tell you what we'd fix first.