TikTok Ads: rules and errors
TikTok's rules
These come from TikTok. Upload-Post checks the ones it can before anything is created, so a mistake costs nothing.
Minimum budget. TikTok refuses an ad group with less than about 20 EUR a day (or the same in your account currency). The error comes from TikTok as tiktok_ads_error.
A button needs a landing page. call_to_action only works with landing_page_url; without a landing page the ad has no button. VIEW_PROFILE also needs the followers goal.
The ad text of a post is its caption. An ad that promotes an existing TikTok post shows the post's caption, and it cannot be changed from Upload-Post.
Reach ad groups have a frequency cap. By default at most 3 impressions per person every 7 days. Change it with frequency and frequency_schedule.
Adults by default. Without age_min, age_max or age_groups, ads only reach people aged 18 and over.
Campaign budgets. A campaign created without budget (and every boost campaign) has no limit: its budget lives in its ad groups, so change it there. A new ad group budget must be at least 105% of what it already spent.
Boost starts paused. By default only the campaign is paused, so resuming it starts delivery. With pause_all_levels all three are paused. See Boost a post.
Deleting is final. Deleting a campaign, ad group, ad or audience needs {"confirm": true}.
Review. TikTok reviews every ad before it runs (need_audit: true).
Spend. TikTok charges the ad spend to your ad account. Upload-Post never charges it.
Error format
{
"success": false,
"code": "tiktok_ads_cta_needs_landing_page",
"message": "call_to_action SHOP_NOW needs a landing_page_url",
"details": { "code": "tiktok_ads_cta_needs_landing_page" }
}
Branch on code, not on message. When TikTok itself refused the request, message is TikTok's text and details.tiktok_code its number. Errors without code are input mistakes; message says what to fix.
Error codes
| HTTP | code | What to do |
|---|---|---|
| 400 | tiktok_ads_error | TikTok refused it. Read message (TikTok's reason, e.g. a budget too low). |
| 400 | tiktok_ads_location_unavailable | TikTok cannot deliver the goal to the countries in details.countries. Check GET /locations. |
| 400 | tiktok_ads_cta_needs_landing_page | Add landing_page_url, or remove call_to_action. |
| 400 | tiktok_ads_cta_unavailable | VIEW_PROFILE only works with the followers goal. |
| 400 | campaign_without_budget | The campaign has no budget of its own. Change the budget of its ad groups. |
| 400 | tiktok_ads_spark_text_fixed | The ad promotes an existing post: its text is the post's caption. |
| 400 | confirmation_required | Send {"confirm": true} to delete. |
| 401 | tiktok_ads_reauth_required | TikTok no longer accepts the authorization. Connect the ad account again. |
| 403 | tiktok_ads_permission_denied | TikTok refused the operation for this ad account. Check the account's permissions in TikTok Ads Manager. |
| 404 | (none) | No ad account connected, the profile has no ad account linked, or the campaign, ad group, ad or post does not exist in that account. |
| 409 | duplicate_request | This idempotency_key was used in the last 10 minutes. The first request already created it: list before retrying. |
| 429 | tiktok_ads_rate_limited | Daily TikTok Ads limit of Upload-Post, or TikTok's own rate limit. Retry later. |
| 502 | write_outcome_unknown | The change was sent to TikTok but no answer came back. Check TikTok Ads Manager (or list) before retrying. |
| 502, 504 | (none) | TikTok is unreachable or slow. Retry. |
| 503 | tiktok_ads_not_configured | TikTok Ads is not available on this server. Contact support. |
| 503 | idempotency_unavailable | Idempotency keys are unavailable right now. Retry later, or without idempotency_key. |
When a boost fails after creating something, the error also carries details.created with the ids that already exist (paused). The full catalog of codes is in Error codes.