Skip to main content

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.

What you need

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​

StepWhatWhere
1Connect your TikTok ad account (once)Connect
2Fastest way: promote one of your TikTok posts in one call (campaign + ad group + ad)Boost a post
2bOr build it step by step: campaign → ad group → adCampaigns, ad groups and ads
3Pause, resume, edit or delete what you createdCampaigns, ad groups and ads
4Read spend, impressions, clicks and viewsReports
ExtraCountries, interests, custom and lookalike audiences, video and image uploadsTargeting, audiences and creatives
HelpTikTok's rules and every error codeRules 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.

Everything is created paused

Every create call defaults to "status": "paused", so nothing spends by accident. Turn things on with /resume, or send "status": "active" on purpose.

Goals​

goalTikTok objectiveYou pay for
reachReachImpressions (CPM)
video_viewsVideo viewsEngaged views (CPV)
trafficTraffic to a website (needs landing_page_url)Clicks (CPC)
followersCommunity 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:

  1. advertiser_id in the query string, or
  2. the X-Ads-Account-Id header, or
  3. advertiser_id in 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'