Connect TikTok Ads to BigQuery

Spend, impressions and conversions from TikTok Ads, by ad account, campaign, ad group or ad, in your own BigQuery dataset. Add Day to a report and history builds up.

  • One table per report, named after it: fs_spend_by_campaign, for example.
  • Refreshes every day on Plus, every 6 hours on Pro and every hour on Max.
  • Up to 50,000 rows a report.

30 days of Plus, free from sign-up. No card needed. Paid plans from £15 a month.

fs_spend_by_campaign
datecampaign_nameconversionsspend
2026-10-20Autumn blend launch652447.74
2026-10-20Holiday gift sets642495.84
2026-10-19Single origin drop572278.10
2026-10-19Brew guide562311.63
2026-10-18Welcome back502092.00
Example, with made-up figures

How to connect TikTok Ads to BigQuery

To export TikTok Ads to BigQuery you need a Google Cloud project with a dataset in it, and a TikTok ad account you can sign in to.

  1. On the Sources page, choose Connect TikTok, sign in on TikTok's own page and pick the ad accounts Fresh Sheets can read.
  2. In Fresh Sheets, go to Destinations and choose Add a dataset. Enter the project ID and dataset ID.
  3. In Google Cloud, give the account Fresh Sheets shows you the BigQuery Data Editor role on your dataset, and add the label it shows.
  4. Back in Fresh Sheets, choose Check and add.
  5. Choose New report, pick TikTok Ads and the account, then the level, fields and date range.
  6. Under Destination, pick your dataset and name the table. Under Schedule, pick how often. Then Save and run.

Columns TikTok Ads writes to BigQuery

Each report is one table: the columns you pick, plus _fs_written_at, the time the row landed. Money is in the account's own currency.

ColumnTypeFresh Sheets fieldAvailable at
dateDATEDayEvery level
advertiser_nameSTRINGAd accountEvery level
advertiser_idSTRINGAd account IDEvery level
campaign_nameSTRINGCampaignCampaign, Ad group, Ad
campaign_idSTRINGCampaign IDCampaign, Ad group, Ad
ad_group_nameSTRINGAd groupAd group, Ad
ad_group_idSTRINGAd group IDAd group, Ad
ad_nameSTRINGAdAd
ad_idSTRINGAd IDAd
currencySTRINGCurrencyEvery level
impressionsINT64ImpressionsEvery level
clicksINT64Clicks (destination)Every level
reachINT64ReachEvery level
conversionsFLOAT64ConversionsEvery level
spendNUMERICSpendEvery level
cpcNUMERICCPC (destination)Every level
cpmNUMERICCost per thousand impressionsEvery level
cost_per_conversionNUMERICCost per conversionEvery level

Deleted campaigns, ad groups and ads are included, so past spend doesn't vanish when you tidy up. Days are in your ad account's time zone.

An example

A query for the report saved as Spend by campaign:

SELECT date, campaign_name, SUM(spend) AS spend, SAFE_DIVIDE(SUM(spend), SUM(conversions)) AS cost_per_conversion FROM `your-project.your_dataset.fs_spend_by_campaign` WHERE date >= DATE_SUB(CURRENT_DATE(), INTERVAL 30 DAY) GROUP BY date, campaign_name ORDER BY date DESC, spend DESC;

Scheduling and refresh

Include Day and each run replaces only its own dates, so history builds up. Leave it out and each run replaces the whole table.

Try it with your own TikTok Ads data in BigQuery.

Other ways to do it

Google's BigQuery Data Transfer Service has no TikTok Ads connector of its own. The alternatives are a paid connector from another vendor, or TikTok's reporting API and code you run yourself.

Source: Google Cloud: BigQuery Data Transfer Service supported data sources; TikTok Ads Help: Marketing API

This TikTok Ads BigQuery integration does that part for you.

What this doesn't cover

TikTok organic posts and TikTok Shop aren't included. This reads TikTok Ads reports only.

Questions

How do I connect TikTok Ads to BigQuery?

Connect TikTok on the Sources page, add your dataset under Destinations, then build a report that sends to it on a schedule. No code, and nothing to maintain.

Send your TikTok Ads reports to BigQuery

BigQuery is included in your 30 days of Plus, then on every paid plan.

30 days of Plus, free from sign-up. No card needed. Paid plans from £15 a month.

Paid plans from £15 a month, or £12 a month billed annually.