Skip to main content

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​

HTTPcodeWhat to do
400tiktok_ads_errorTikTok refused it. Read message (TikTok's reason, e.g. a budget too low).
400tiktok_ads_location_unavailableTikTok cannot deliver the goal to the countries in details.countries. Check GET /locations.
400tiktok_ads_cta_needs_landing_pageAdd landing_page_url, or remove call_to_action.
400tiktok_ads_cta_unavailableVIEW_PROFILE only works with the followers goal.
400campaign_without_budgetThe campaign has no budget of its own. Change the budget of its ad groups.
400tiktok_ads_spark_text_fixedThe ad promotes an existing post: its text is the post's caption.
400confirmation_requiredSend {"confirm": true} to delete.
401tiktok_ads_reauth_requiredTikTok no longer accepts the authorization. Connect the ad account again.
403tiktok_ads_permission_deniedTikTok 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.
409duplicate_requestThis idempotency_key was used in the last 10 minutes. The first request already created it: list before retrying.
429tiktok_ads_rate_limitedDaily TikTok Ads limit of Upload-Post, or TikTok's own rate limit. Retry later.
502write_outcome_unknownThe 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.
503tiktok_ads_not_configuredTikTok Ads is not available on this server. Contact support.
503idempotency_unavailableIdempotency 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.