TikTok Ads connector for Claude Code

Use Porter’s TikTok Ads connector for Claude Code to pull spend, video and conversion data into your terminal, then turn it into files, scripts and scheduled reports in your own project.

  • Save TikTok Ads data as CSV in your repo
  • Rank creatives by hook rate and CPA
  • Run a weekly TikTok Ads report from a script
  • Compare TikTok with Meta Ads in one file
G2★★★★★Rated 4.6/5 from 288 G2 reviews (October 2026) · Used by 1,600+ marketing teams and agencies

By · Last updated November 26, 2026

Claude Codeporter connected
Rank last week’s TikTok ads by Complete Payment Roas and save it to reports/tiktok-weekly.csv
porter / TikTok Ads / Trailgear Demo✓ 4 rows
Saved reports/tiktok-weekly.csv with 4 ads. UGC – Trail Test leads at 4.2; Promo – Sale Banner is lowest.
Ad NameSpendComplete Payment Roas
UGC – Trail Test$1,1204.2
Creator – Unboxing$1,4803.1
Demo – Tent Setup$8602.4
Promo – Sale Banner$7401.2
Demo data, Trailgear Demo account
628 TikTok Ads fields
01Setup

How to connect TikTok Ads to Claude Code

Connecting TikTok Ads to Claude Code takes 3 steps and no API keys: connect your TikTok ad accounts in Porter with TikTok For Business, add Porter’s MCP server to Claude Code with one command, then sign in from /mcp and ask. The same server also works in Cursor, VS Code and Codex, as Porter’s TikTok Ads MCP server page shows. Using the Claude app instead? See the TikTok Ads connector for Claude.

Before you start

  • You need Claude Code installed (Anthropic’s Claude Code overview), a free Porter account and a TikTok For Business user with access to the ad account.
  • Works with any Claude model in Claude Code, from Opus to Sonnet and Haiku.
  1. Step 1: Connect TikTok Ads in Porter

    Sign up free at Porter, pick TikTok Ads as the source and sign in with TikTok For Business. Tick every TikTok ad account you want Claude Code to read.

  2. Step 2: Add Porter to Claude Code

    In your terminal, run this command. It adds Porter for every project on your machine; drop --scope user to add it to the current project only.

    Terminal
    claude mcp add --transport http --scope user porter https://mcp.portermetrics.com/mcp

    Or, inside Claude Code, install Porter’s plugin, which adds the server and Porter’s skill together: /plugin marketplace add portermetrics/porter, then /plugin install porter-metrics@portermetrics.

  3. Step 3: Sign in and ask

    Start claude, type /mcp, pick porter and sign in with the Google account you use in Porter. When porter shows as connected, paste this prompt:

    Prompt
    Which TikTok ad accounts can you see? For the last 7 full days, rank my campaigns by Complete Payment Roas and save the table to reports/tiktok-roas.csv.

Guides and videos

app.portermetrics.com / create
Porter's Select accounts window for TikTok Ads with a demo account and the Connect button
First, in Porter, open TikTok Ads and select Connect.
TikTok screen listing the permissions Porter requests for your ad account
Then, approve the permissions Porter asks for in TikTok.
$ claude mcp add --transport http --scope user porter https://mcp.portermetrics.com/mcp

$ claude mcp list
porter: https://mcp.portermetrics.com/mcp (HTTP)
Then, add Porter's MCP server from your terminal.
> /mcp
porter · needs authentication → Authenticate

> Which TikTok Ads accounts can you see?
● porter - list_accounts (MCP)
Trailgear Demo
After you sign in from /mcp, Claude Code lists your TikTok Ads accounts.
02Use cases and prompts

What you can do in Claude Code

Claude Code works inside your project, so TikTok Ads answers can become files, scripts and dashboards instead of chat replies. Each use case has a prompt to copy and uses the TikTok Ads fields Porter reads.

Can Claude Code export TikTok Ads data?

The problemYou download the same TikTok Ads Manager report every week and clean the columns by hand.

What Claude Code doesClaude Code pulls Spend, Impressions, Clicks, Conversion and Complete Payment Roas by campaign and ad group through Porter and writes them to a CSV.

What you getA clean data file in your repo, ready for a notebook or a teammate.

Prompt
For the last 30 days, by Campaign Name and Adgroup Name, pull Spend, Impressions, Clicks, Conversion and Complete Payment Roas from TikTok Ads and save it as data/tiktok-30d.csv.

Can Claude Code tell which TikTok videos hook viewers?

The problemTikTok Ads Manager shows views, not whether the first seconds held anyone.

What Claude Code doesClaude Code calculates hook rate (Video Watched 2S ÷ Video Play Actions) and hold rate (Video Watched 6S ÷ Video Play Actions) per ad and writes a ranked list.

What you getA creative ranking you can hand to your editor.

Prompt
For the last 14 days, by Ad Name, show Spend, Video Play Actions, Video Watched 2S, Video Watched 6S and Average Video Play. Calculate hook rate and hold rate, then save the ads ranked by hook rate to reports/tiktok-hooks.csv.
Then ask
Prompt
Pause the ads in the bottom quarter by hook rate that spent more than $100. Ask me before each change.

Can I schedule a TikTok Ads report with Claude Code?

The problemIn TikTok Ads Manager, comparing two weeks means setting two date ranges and noting ROAS by hand.

What Claude Code doesclaude -p runs on a schedule and compares Spend, Conversion and Complete Payment Roas per campaign across the two weeks.

What you getreports/tiktok-weekly.md showing which campaigns kept their ROAS and which slipped.

Prompt
claude -p "Compare last week with the week before for every TikTok Ads campaign: Spend, Conversion and Complete Payment Roas. Write a short summary to reports/tiktok-weekly.md" --allowedTools "mcp__porter" "Write"

Can Claude Code compare TikTok Ads and Meta Ads?

The problemEach platform reports in its own columns, so comparing them means two exports and a spreadsheet.

What Claude Code doesClaude Code pulls spend and results from both through the same porter server and writes one table.

What you getOne file with both platforms side by side.

Prompt
For the last 30 days, pull daily Spend from TikTok Ads and daily Amount spent from Meta Ads, with conversions from each, and save one table by date to reports/tiktok-vs-meta.csv.

Can Claude Code combine TikTok Ads with my sales data?

The problemYour real revenue sits in a CSV or database export that TikTok never sees.

What Claude Code doesClaude Code reads the file in your project, pulls TikTok Spend for the same days and joins them by date.

What you getROAS on your own revenue numbers, without uploading your sales data anywhere.

Prompt
Read data/orders.csv, sum revenue by day, then pull daily TikTok Ads Spend for the same dates and write daily blended ROAS to reports/tiktok-blended.csv.
03Why Porter

Why Porter for TikTok Ads in Claude Code

Porter reads every TikTok ad account your user can reach, with no developer app or access token to manage, and puts TikTok next to 30+ other marketing sources behind the same server.

✓

One server for all your sources

The same porter server answers about TikTok Ads, Meta Ads, Google Ads, GA4 and Shopify, so one script can pull every channel.

⊞

Changes only after you approve

Claude Code can pause ads and change budgets through Porter, and each change waits for your yes.

⚙

No developer app or token

You sign in with TikTok For Business in Porter and with Google in Claude Code. There is no TikTok developer app or token refresh to maintain.

↻

Hosted dashboards when a file isn’t enough

Ask for a Porter AI dashboard and it is published at its own link, synced automatically and ready to share with a client.

04Dashboard

Dashboard template

Porter’s hosted TikTok Ads dashboard gives Claude a starting layout. It shows Spend, video views, 2-second views, likes, follows, CPM and cost per 1,000 reached, by campaign and over time. Then ask Claude to rebuild or extend it from your own account, or browse Porter’s free TikTok Ads dashboard templates.

AI dashboards

Build a live TikTok Ads dashboard from your terminal

Describe the dashboard in one sentence and Porter builds it. A client-ready dashboard in minutes, with no chart dragging and no BI tool to learn. Ask Claude Code:

Prompt
Build a live TikTok Ads dashboard for my account with the last 30 days, the main KPIs and a weekly trend.
Live URLEach dashboard at its own link: no login, no app, no download
Auto-syncFresh TikTok Ads data, nobody re-exports each period
Scheduled deliveryEmail or PDF sends on a set day
White labelYour logo and branding for clients
Sharing permissionsView or edit access per person
TikTok Ads dashboard template by Porter
Template

The TikTok Ads AI dashboard template

Start from Porter’s official TikTok Ads dashboard template, or run the prompt above in Claude Code and Porter publishes the dashboard at its own link.

05Pricing

Pricing

You can start free, since Porter’s TikTok Ads connector for Claude comes with every plan. Use the calculator for your number of accounts, or see Porter pricing for every plan.

What you get

  • Free plan: never expires, with unlimited connected accounts and the last 15 days of data in Claude (30 days in Data Studio and Sheets)
  • Reporting: from $12.50 per account a month billed annually, or $15 month to month for one account
  • Billing: each TikTok ad account counts as one account, with volume discounts and no per-seat fee
  • Changes: 1 AI credit per completed change, about 5 to launch one ad from scratch; failed tasks are free, and the Free plan includes 100 credits a month
  • Trial: 14 days of full access, no card

Price calculator

$33.33/mo$6.67 per account

An account is one ad account, Stripe account, store, page or GA4 property. The Free plan never expires and has unlimited accounts, with the last 15 days of data in AI chats.

06Data and actions

TikTok Ads data and actions in Claude Code

The TikTok Ads connector gives Claude 628 fields and 40 actions to read, create, change and delete. The fields cover campaigns, ad groups and ads, including delivery, conversions, video, engagement, TikTok Shop, GMV Max, SKAN and audience breakdowns. You'll also find each one named in the TikTok Ads fields list.

The 12 TikTok Ads fields Claude uses most

FieldWhat it's for
Date / Weektiktok_ads_stat_time_day · tiktok_ads_weekDaily and weekly trends
Advertiser nametiktok_ads_advertiser_nameOne row per ad account
Campaign Name / Adgroup Name / Ad Nametiktok_ads_campaign_name · tiktok_ads_adgroup_name · tiktok_ads_ad_nameRows at each level
Campaign objective typetiktok_ads_campaign_objective_typeGroup campaigns by goal
Spend (with Cash Spend)tiktok_ads_spend · tiktok_ads_cash_spendSpend with vouchers; Cash Spend for cash only
Impressionstiktok_ads_impressionsBase for CPM and hook rate
Clickstiktok_ads_clicksBase for CTR and CPC
Conversiontiktok_ads_conversionBase for CPA
Complete Payment Roastiktok_ads_complete_payment_roasReturn on spend from purchases
ROAS (Onsite)tiktok_ads_onsite_shopping_roasReturn on spend from TikTok Shop
Video Watched 2S / 6S and Video Views P25–P100tiktok_ads_video_watched_2s · tiktok_ads_video_watched_6s · tiktok_ads_video_views_p25…Hook, hold and drop-off by quartile
Age (with Gender, Placement, Platform)tiktok_ads_age · tiktok_ads_gender · tiktok_ads_placement · tiktok_ads_platformAudience breakdowns

Can Claude create, pause or change TikTok Ads campaigns?

Yes. Claude creates campaigns, ad groups and ads through Porter, including single video, image, carousel or a Spark post under your identity. It also enables, pauses or deletes them and changes names, budgets, bids, schedules and targeting.

Beyond campaigns, Claude also uploads videos and images and builds customer-file and lookalike audiences. It also exports instant-form leads and hides, shows or replies to ad comments. Instant forms, identities, catalog ads and GMV Max changes stay in TikTok Ads Manager, where you handle them as usual.

How fresh is the data?

Most metrics reach Claude about 30 minutes after they happen, according to TikTok's data latency for reports. Reach, cash spend and audience breakdowns take about 16 hours, while TikTok corrects real-time numbers daily at 12:00 UTC.

Product stats

WhatTikTok Ads connector
Fields628 across campaigns, ad groups and ads: delivery, conversions, video, engagement, TikTok Shop, GMV Max, SKAN and audience breakdowns
Actions40 to read, create, change and delete, after you approve; new campaigns and ad groups start paused
FreshnessMost metrics in about 30 minutes; reach, cash spend and audience breakdowns in about 16 hours; TikTok corrects real-time numbers daily at 12:00 UTC
HistoryThe last 15 days in Claude on the Free plan (30 days in Data Studio and Sheets)
Speed and rate limitsAd-level questions take 1–2 minutes; 1,000 rows per page within TikTok's API limits for Porter's app (TikTok Marketing API rate limits)
Report rulesGMV Max fields and audience breakdowns run as their own questions, one breakdown at a time
AccessTikTok sign-in on the ad accounts you tick; changes need an Admin or Operator role; access lasts until you revoke it

See all 628 TikTok Ads fields

07Security

Is it safe?

Yes, with approvals: the TikTok Ads connector for Claude Code shows every change before Porter sends it. Also, nothing spends until you enable it. Deletes are permanent, so pause rather than delete. Porter signs in with TikTok's OAuth, then works only with the role you already have on each ad account.

How you approve changes

Porter creates new campaigns and ad groups paused, and Claude asks before every write. Then enable them top-down: campaign, then ad group, then ad. Budgets go in whole currency units and must also clear TikTok's daily minimums.

Deleting a campaign, ad group, ad or audience is permanent, so pause instead when you might want it back. Each completed change also uses one AI credit.

What the connector needs from TikTok Ads

When you sign in, use a TikTok user who has a role on the ad account in TikTok Ads Manager or Business Center. Then tick each ad account on TikTok's consent screen. TikTok's ad account permissions let Admins and Operators create and edit ads, while Analysts view them.

Creating ads also needs an authorized TikTok identity (a TikTok account) or a Spark post, rather than a custom identity. TikTok's access lasts until you or the account admin revoke it, per TikTok's long-term access token docs.

08FAQ

FAQ

Answers on setup, scope, scripts and credits, plus fixes for the most common Claude Code errors with TikTok Ads. Setup questions every source shares, like where Claude Code saves the server and how to share it with your team, are in the Claude Code hub FAQ.

Can I compare TikTok Ads with Meta Ads in one file?

Yes. Connect both in Porter and ask for Spend and purchases from each platform in one prompt. Claude Code reads them through the same server and writes one side-by-side table.

Does it include TikTok Shop GMV Max results?

Yes. Porter reads GMV Max campaigns from TikTok Ads, including GMV Max Cost and orders, so Claude Code can report them next to your other campaigns.

Do Claude Code questions use Porter credits?

Reading TikTok Ads data uses no AI credits. Each completed change, such as pausing an ad, uses 1 credit, and every Porter account gets 100 free credits a month.

Troubleshooting

Why does /mcp show porter as needing authentication?

Claude Code adds the server before you sign in. Pick porter in /mcp, choose Authenticate and sign in with the Google account you use in Porter.

Why does my claude -p script stop and ask for permission?

Scripts can’t answer permission prompts. Pass the tools the script may use, for example --allowedTools "mcp__porter" "Write", so Claude Code can read Porter and save files without stopping.

Why does Claude Code see my ad accounts but return no data?

Usually the TikTok user lost access to that ad account, or the date range had no delivery. Reconnect TikTok Ads in Porter, tick the account again and ask with a range that had spend.

09Next

More Claude connectors

Porter brings more than TikTok Ads into Claude, and also sends TikTok Ads to more than Claude. Browse all Claude connectors to pick another source, or send your data to Data Studio (formerly Looker Studio) for dashboards or to BigQuery for SQL.

Not only Claude. Send TikTok Ads data anywhere

The same Porter account and connection also send TikTok Ads data to these destinations, at no extra cost.

Try the connector in Claude Code

Porter’s TikTok Ads connector for Claude Code takes one command, so your first TikTok Ads file can land in your project today. Start with a CSV, then rank your creatives or schedule a weekly script.

Free plan · 14-day trial · No card needed

Paid social managers: hook rates, CPA and pacing get checked from the terminal, then fixed after your yes.

Agencies: one script builds the Monday report for every client ad account.

E-commerce marketers: TikTok spend meets your own sales data in one file.