Data to AI™ / Gemini/TikTok Ads

Query TikTok Ads from Gemini CLI and Code Assist

Pull TikTok Ads campaign, creative and landing page data into the terminal or your IDE, so notebooks, scripts and pre-release checks run on current paid data.

Better answers, fewer tokens.

  • Lower AI costs for the same work
  • More accurate, reliable answers
  • Read-only
  • Uses the TikTok Ads data you already sync
  • SOC 2 Type II certified
Gemini CLI
Connected to Dataddo

Which TikTok campaigns converted cheapest last month, and where did the budget go?

Gemini Answer · TikTok Ads

Spring Retargeting converted cheapest at $11.40 per conversion on the smallest budget. Creator Launch took the most Spend at $14,200 but cost $19.70 per conversion.

Campaign nameSpendConversionCost per conversion
Spring Retargeting TikTok Insights $4,560400$11.40
Creator Launch TikTok Insights $14,200721$19.70
Prospecting Broad TikTok Insights $9,850612$16.09

Spend and Conversion come from a Basic report at campaign level summed by Stat Time Day; Cost per conversion is the monthly Spend divided by Conversion, not an average of daily values.

source
TikTok Ads · as of Mon 06:40 UTC
covers
1-30 Sep 2026
Example answer · fictional account and figures
TikTok Ads in Gemini

Questions Gemini can answer from your TikTok Ads data

TikTok Ads extracts paid advertising data from TikTok Ads Manager advertiser accounts: spend, impressions, clicks and conversions by campaign, ad group or ad, audience breakdowns by age, gender, country and placement, campaign and ad group settings, ad creatives, Smart+ creative materials and Instant Form leads.

Daily campaign data for a notebook

Ask Gemini

Query Spend, Impressions, Clicks and Conversion by Campaign name and Stat Time Day for the last 90 days and save it as data/tiktok_daily.csv.

A marketing analyst feeds the CSV into a forecasting notebook in the same repository. Gemini CLI asks before each Dataddo call, and the prompt sits in the commit message so the pull can be repeated.

Landing page check before a site release

Ask Gemini

List every Landing Page URL from active TikTok Ads and check each path against the routes in src/pages, flagging any that the release removes.

Before a web deploy, a developer runs the check from the terminal and catches ads that would land on a deleted page, then tells the paid team which ads to update before the release goes out.

Smart+ creative ranking in a script

Ask Gemini

From Smart+ Creatives Metrics by Campaign, compute Clicks per 1,000 Impressions for each Main Material Name and write the top 20 to reports/smart-plus.md.

In Gemini Code Assist agent mode in VS Code, a technical marketer turns the question into a small script, so the Smart+ creative ranking runs the same way every week.

TikTok Ads datasets and the questions they answer in Gemini →
Pricing

Priced per seat.

Data to AI™ is priced per seat, like the AI assistants your team already uses, with ~25% off on annual billing. Need tailored contracts or volume pricing? Talk to us about Enterprise.

Data to AITM

Serve governed business data to Claude, ChatGPT and other AI tools over MCP.

$10.49/month

per seat

3 seats minimum

Enterprise

Flexibly deploy Dataddo in any cloud or hybrid environment.

Custom

We have a payment model that works for you

See all plans and features →
Setup

Connect TikTok Ads to Gemini step by step

  1. 1
    Connect Gemini to Dataddo Add the Dataddo server to settings.json in Gemini CLI, restart it and run /mcp auth dataddo to sign in. Gemini Code Assist in VS Code reads the same file.
  2. 2
    Connect TikTok Ads to Dataddo Sign in with your TikTok Ads account in Dataddo and choose the datasets to sync, such as TikTok Insights: Basic report by campaign and TikTok Insights: Basic report by ad.
  3. 3
    Choose what Gemini can see Select the TikTok Ads data Gemini may query. Access is read-only, and data you don't select stays out of reach.
Gemini setup guide →
With vs. without

TikTok Ads in Gemini, with and without Dataddo

Without Dataddo With Dataddo Outcome for you
Data for scripts An analyst downloads a TikTok Ads Manager CSV, renames columns by hand and commits a file nobody can refresh. Gemini CLI queries TikTok Insights through the dataddo server, so the script can be rerun on fresh data with the same field names. Repeatable data pulls
Release safety Developers ship site changes without knowing which TikTok ads still point at the pages they move or delete. The Ads dataset lists Landing Page URL and Operation Status, so a pre-deploy check compares live ads with the site routes. Fewer broken ad clicks
Access across tools Each script stores its own TikTok API token, and nobody knows which one is still valid. Gemini stores Dataddo credentials in ~/.gemini/mcp-oauth-tokens.json and renews them, while TikTok sign-in stays with the Dataddo authorizer. No API tokens in repos
Token consumption Gemini spends tokens exploring raw TikTok Ads columns, sampling rows and retrying until it understands the data. Field definitions and relations are supplied up front, so the model skips the exploration and goes straight to the answer. Fewer tokens per answer
Answer quality Prone to wrong joins, invented fields and numbers that are hard to check. Answers grounded in defined fields. In the Dataddo benchmark, 78.5% of questions were answered correctly, against 65.5% with plain CSV files. Better answers
Datasets

TikTok Ads datasets and the questions they answer in Gemini

The TikTok Ads datasets marketing teams use most, with their real field names. Gemini queries them by name through the Dataddo semantic layer.

Dataset Metrics and attributes Ask Gemini
TikTok Insights: Basic report by campaign
  • Campaign name
  • Impressions
  • CTR
  • Stat Time Day
  • Spend
  • + others
Which Campaign name had a falling CTR over the last 14 days while Impressions kept rising?
TikTok Insights: Basic report by ad
  • Spend
  • CTR
  • Ad name
  • Ad group name
  • Video Views
  • + others
Which ads had CTR above the account average last week, and how much Spend did they take?
TikTok Insights: Audience report Which Age group produced the most Clicks per unit of Spend last month?
Campaigns
  • Objective Type
  • Budget
  • Campaign Name
  • Budget Mode
  • Operation Status
  • + others
How is the total Budget split by Objective Type across our TikTok campaigns?
Ad Groups
  • Ad Group Name
  • Placements
  • Campaign Name
  • Optimization Goal
  • Bid Type
  • + others
Which Ad Group Name entries run on more than one of the Placements available?
Ads
  • Ad Name
  • Ad Text
  • Landing Page URL
  • Ad Format
  • Operation Status
  • + others
Which Ad Name entries share the same Ad Text but send traffic to a different Landing Page URL?
Smart+ Creatives Metrics by Campaign
  • Campaign ID
  • Spend
  • Main Material Name
  • Main Material Type
  • Impressions
  • + others
How is Smart+ Spend spread across creative materials for each Campaign ID?
Lead Generation Leads On which weekdays are most leads created, based on Created Time?
See all TikTok Ads datasets, metrics and attributes on the connector page →
Benchmark

More right answers. Half the confident mistakes.

We asked 43 pre-registered questions of three real datasets - Google Search Console, HubSpot deals and Google Ads - and delivered the same rows to the same model in four ways. Only the data layer changed.

78.5%

of questions answered correctly - the best of the four delivery methods tested

2x

fewer confidently wrong answers - 14.0% of runs against 24.0% and 26.3%

2.8x

more correct answers on messy CRM data - better on 8 questions, worse on none

Answered correctly All 43 questions - higher is better
Wrong, but stated as fact Share of runs - lower is better

Same model, prompts and rows in every condition; 759 graded runs, ground truth frozen before any run. On Google Search Console alone, documented CSV files did as well as Data to AI™ - the advantage comes from messier data such as HubSpot deals.

Read the benchmark →
FAQ

TikTok Ads and Gemini: FAQ

How do I connect TikTok Ads to Gemini?

Create a TikTok Ads source in Dataddo with TikTok Insights, Ads or Smart+ datasets and attach it to a Google Gemini destination or AI Model. Add Dataddo to ~/.gemini/settings.json with httpUrl https://headless.dataddo.com/mcp-data, restart Gemini CLI, run /mcp auth dataddo and sign in.

Does this work in the Gemini app or Gemini on the web?

The documented setup covers Gemini CLI in the terminal and Gemini Code Assist in the IDE. VS Code agent mode reads the same settings.json; in IntelliJ, add the server to the mcp.json of Gemini Code Assist.

Why does Gemini CLI fail to connect to the TikTok Ads data?

Check that settings.json uses the httpUrl key. The url key falls back to SSE, which Dataddo does not support. Leave out headers and any oauth block, restart Gemini CLI and run /mcp auth dataddo.

Which TikTok Ads flows can Gemini reach?

Once signed in, Gemini reaches every flow or Context attached to an AI destination or AI Model in that Dataddo account, not only the Google Gemini ones. Attach only the TikTok Ads data you want queried.

Can a Gemini CLI script change my TikTok campaigns?

No. Gemini queries extracted TikTok Ads data through the semantic layer by entity and field name. Dataddo never accepts SQL from the model, and nothing is written back to TikTok.

How do I add TikTok Ads history older than the date range?

TikTok Insights, Ads and the Smart+ datasets read a relative window that moves forward on each run. Run a full data re-sync with a wider date range once, and Gemini can query the older months.

What happens when my Gemini session with Dataddo expires?

Tokens are renewed automatically. If a session expires or is revoked, run /mcp auth dataddo again and sign in with your Dataddo email and password, with MFA if prompted.

New from Dataddo · Data to AI™

Ask Claude or ChatGPT about your ads, analytics and CRM

“What did a new lead cost us last week, by paid channel?”

Connect 400+ sources once and get the answer right in your AI chat, without building a report. Better answers: your metrics are defined once, so the AI doesn't have to guess.