Skip to main content
POST
Promote a TikTok video as a Spark Ad. The ad runs the video as it is, under its creator’s account, and the video keeps its likes, comments and follows. Ayrshare creates a campaign, an ad group and an ad in your TikTok ad account.
  • Link TikTok, then connect a TikTok ad account from the dashboard. The ad runs from that ad account.
  • For a video from your linked TikTok account, you do not need a code. If that TikTok account is linked to your ad account in TikTok, the ad runs as it. Otherwise Ayrshare creates the Spark Ads code for you.
  • For another creator’s video, the creator generates a Spark Ads code in the TikTok app and gives it to you. Send it in platformOptions.tiktok.sparkAuthCode. The code must be for the video you boost, or the answer is code: 101.
  • The budget is set on the ad group, in your ad account’s currency. Do not send budget.currency or budget.level: "campaign".
  • The smallest budget is 20 a day in your ad account’s currency. A lifetime budget is at least 20 for each scheduled day.
  • The video stays on the creator’s profile while the ad runs. Send platformOptions.tiktok.adsOnly: true to show it as an ad only.
  • If you send requests faster than TikTok allows, the answer is code: 364 with HTTP 429 and TikTok’s message in details. Wait a minute and retry with a new idempotencyKey.
  • Ads are included with Premium, Business and Enterprise plans, as on the Ads overview. On another plan the answer is code: 169.
  • If TikTok removes Ayrshare’s access to your ad account, the answer is code: 420 with HTTP 401 and the ads webhook sends accountRevoked. Connect the TikTok ad account again from the dashboard.
  • TikTok ads are turned on per account. Contact us to enable them.

What TikTok Supports

Ad Goals

  • brand_awareness: show the video to as many people as possible.
  • video_views: get more views of the video.
  • traffic: send people to your website. Needs callToAction with a link.

Header Parameters

Body Parameters

string
required
Your TikTok ad account (advertiser) ID, for example 7100000000000000001. It must be an ad account you connected.
string
The Ayrshare post ID to boost. Send postId or socialPostId.
string
The TikTok video ID to boost.
string
required
One of the ad goals.
object
required
object
object
required
object
Required for the traffic goal.
string
default:"active"
active or paused.
string
A unique, non-empty key for this boost request. Retry the same payload with the same key to avoid creating a duplicate ad: the first answer is replayed, including an error. Reusing the key with a different payload returns HTTP 409. The key applies to this platform only: the same key on another platform starts a separate boost. A request still in progress also returns 409; an unavailable reservation returns 503 without creating an ad.
object