TikTok Ads
Run ads on TikTok with the same API key you already use for publishing. Upload-Post talks to the TikTok Marketing API for you: you connect your TikTok ad account once, then promote posts, manage campaigns and read the results through api.upload-post.com.
A TikTok Ads Manager ad account (TikTok for Business), and the TikTok account whose posts you want to promote linked to that ad account in TikTok Ads Manager.
Spend runs on your own TikTok ad account. TikTok charges the ads to the payment method of your ad account. Upload-Post never charges for ad spend.
What you can do, in order
| Step | What | Where |
|---|---|---|
| 1 | Connect your TikTok ad account (once) | Connect |
| 2 | Fastest way: promote one of your TikTok posts in one call (campaign + ad group + ad) | Boost a post |
| 2b | Or build it step by step: campaign → ad group → ad | Campaigns, ad groups and ads |
| 3 | Pause, resume, edit or delete what you created | Campaigns, ad groups and ads |
| 4 | Read spend, impressions, clicks and views | Reports |
| Extra | Countries, interests, custom and lookalike audiences, video and image uploads | Targeting, audiences and creatives |
| Help | TikTok's rules and every error code | Rules and errors |
How TikTok ads are structured
Campaign goal (reach, video views, traffic, followers)
└── Ad group budget, schedule, who sees it (countries, age, gender, interests, audiences)
└── Ad the TikTok post it promotes, optional landing page and button
An ad only runs when all three are active and TikTok has approved the ad.
Every create call defaults to "status": "paused", so nothing spends by accident. Turn things on with /resume, or send "status": "active" on purpose.
Goals
goal | TikTok objective | You pay for |
|---|---|---|
reach | Reach | Impressions (CPM) |
video_views | Video views | Engaged views (CPV) |
traffic | Traffic to a website (needs landing_page_url) | Clicks (CPC) |
followers | Community interaction (new followers) | Impressions, optimized for follows (oCPM) |
TikTok's rules in short
- Budget: at least about 20 EUR a day per ad group (or the same in your account currency). TikTok refuses less.
- Button: a call to action needs a
landing_page_url. Without a landing page the ad has no button. - Ad text: an ad that promotes an existing post uses the post's caption. You cannot change it.
- Age: without an age range, the ad targets people aged 18 and over.
All the rules, with the error each one returns, are in Rules and errors.
Choosing the ad account
Most calls work on one ad account. With a single account connected there is nothing to do. With several, pick one per request:
advertiser_idin the query string, or- the
X-Ads-Account-Idheader, or advertiser_idin the JSON body.
Without any of them the default account is used (the first one you connected, or the one you marked default). With several accounts and no default, the call answers 400.
To work for a client, send profile_username instead: only the ad account linked to that profile is used, never the default. A profile without a linked account answers 404.
curl -G https://api.upload-post.com/api/uploadposts/ads/tiktok/campaigns \
-H 'Authorization: Apikey your-api-key-here' \
--data-urlencode 'profile_username=my-profile'
Related
- ChatGPT Ads: ads inside ChatGPT with the same API key
- Get Analytics: organic performance of your published posts
- OpenAPI spec: every TikTok Ads operation, tag
TikTok Ads