API Reference
Ads

Update ads

POST/open_api/v1.3/ad/update/
Base URL: https://tiktok-ads.mimicr.dev · provider: https://business-api.tiktok.com

Use this endpoint to update ads. With patch_update: true only ad_name, identity_id, identity_type, video_id, image_ids, ad_text and ad_texts may be sent, and they are merged; otherwise each creative is fully replaced and ad_name, identity_id and ad_format are required.

Changing the reviewable content (video_id, image_ids, ad_text, landing_page_url, call_to_action, display_name) of an approved ad sends it back to review (AD_STATUS_REAUDIT); in Mimicr it keeps delivering the last approved version meanwhile.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Headers

Access-Tokenstringrequired

Authorized access token, sent in this header (not Authorization: Bearer). Marketing API tokens never expire.

Body

application/json
advertiser_idstringrequired

Advertiser ID.

adgroup_idstringrequired

Ad group ID.

patch_updateboolean

Whether to use incremental update mode.

creativesobject[]required

Advertising creatives.

Show child attributes
ad_idstringrequired

Ad ID.

ad_namestring

Required only when patch_update is not set to true. Ad name.

identity_idstring

Required only when patch_update is not set to true. Identity ID.

identity_typestring

Required only when patch_update is not set to trueand you use Spark Ads. Identity type.

CUSTOMIZED_USERAUTH_CODETT_USERBC_AUTH_TT
ad_formatstring

Required only when patch_update is not set to true. The ad format.

SINGLE_IMAGESINGLE_VIDEOLIVE_CONTENTCAROUSEL_ADSCATALOG_CAROUSEL
video_idstring
image_idsstring[]

A list of image IDs (images used in an ad or as a video cover).

ad_textstring
ad_textsstring[]
call_to_actionstring

Call-to-action text.

landing_page_urlstring

Landing page URL.

page_idnumber

Page ID.

display_namestring

The display name of landing page or pure exposure ad, length limit: 1-40 English characters, or 1-20 Chinese/Japanese/Korean characters, required when the promotion type is landing page or pure exposure.

Responses

200Response envelope {code, message, request_id, data}. code 0 (message "OK") is success. Validation and business errors also come with HTTP 200 and a non-zero code: check code, not the HTTP status.
codenumber

Return code. 0 means success; see the return codes appendix for the others.

messagestring

Return message: OK on success, otherwise the error description.

request_idstring

The log ID of the request, which uniquely identifies it (also sent in the X-Tt-Logid header).

dataobject

Returned data.

Show child attributes
ad_idsstring[]

Ad IDs.

creativesobject[]

A List of Ads. The returned fields are generated based on the fields specified in the request parameters. If not specified, all fields are returned by default.

Show child attributes
advertiser_idstring

Advertiser ID.

campaign_idstring

Campaign ID.

campaign_namestring

Campaign name.

adgroup_idstring

Ad group ID.

adgroup_namestring

Ad group name.

ad_idstring

Ad ID.

ad_namestring

Ad name.

create_timestring

Time at which the ad was created.

modify_timestring

Time at which the ad was modified.

identity_idstring

Identity ID.

identity_typestring

Identity type. Enum values: CUSTOMIZED_USER, AUTH_CODE, TT_USER, BC_AUTH_TT.

CUSTOMIZED_USERAUTH_CODETT_USERBC_AUTH_TT
identity_authorized_bc_idstring

Returned when identity_type is BC_AUTH_TT. ID of the Business Center that a TikTok Account User in Business Center identity is associated with.

ad_formatstring

The ad format. Enum values: SINGLE_IMAGE, SINGLE_VIDEO, LIVE_CONTENT, CAROUSEL_ADS (non-VSA Carousel Ads), CATALOG_CAROUSEL(VSA Carousel Ads).

SINGLE_IMAGESINGLE_VIDEOLIVE_CONTENTCAROUSEL_ADSCATALOG_CAROUSEL
video_idstring

The video ID.

image_idsstring[]

A list of image IDs.

music_idstring

The ID of the piece of music that is used in the TikTok Carousel Ad.

tiktok_item_idstring

The ID of the TikTok post that is used as Spark Ad.

ad_textstring

The ad text. It is shown to your audience as part of your ad creative, to deliver the message you intend to communicate to them.

ad_textsstring

A list of ad texts.

call_to_actionstring

For call-to-action text, see Enumeration - Call-to-action

call_to_action_idstring

The ID of the CTA portfolio that you want to use in your ads. A CTA portfolio is a group of auto-optimized CTAs. If both this field and call_to_action are specified, this field will be used, and call_to_action will be ignored.

landing_page_urlstring

Landing page URL.

page_idnumber

Page ID.

operation_statusstring

Operation status.

ENABLEDISABLEFROZEN
secondary_statusstring

Ad status(Secondary status,See Enumeration - Secondary Status

creative_typestring

Creative type for Live Shopping Ads, Product Shopping Ads, App Pre-Registration, Automotive Ads for Inventory, or Automotive Ads for Models scenarios.

SHOP_PDPSHOP_PLPSHORT_VIDEO_LIVEDIRECT_LIVEPSACUSTOM_INSTANT_PAGEAPP_PREREGISTRATIONTIKTOK_NATIVE_PAGEAUTO_INVENTORY_INSTANT_PAGELEAD_GENERATION
display_namestring

The display name of landing page or pure exposure ad.

creative_authorizedboolean

Whether you grant displaying some of your ads in our TikTok For Business Creative Center. Only valid for non-US advertisers, the default value is false.

is_acoboolean

Whether the ad is an automated ad. Set to true for automated ad and false for non-automated ad.

is_new_structureboolean

Whether the campaign is a new structure (for the same campaign, the structure of campaign, adgroups and ads are the same).

optimization_eventstring

Conversion event for the ad group. See Conversion events for more.

page_infoobject

Pagination information.

Show child attributes
pagenumber

Current page number. Default value: 1. Value range: ≥ 1.

page_sizenumber

Paging size.

total_numbernumber

Total number of results.

total_pagenumber

Total pages of results.

501The route or feature is documented by TikTok but outside Mimicr's integration core: code 40014 with HTTP 501.
codeinteger

Return code. 0 means success; see the return codes appendix for the others.

messagestring

Return message: OK on success, otherwise the error description.

request_idstring

The log ID of the request, which uniquely identifies it (also sent in the X-Tt-Logid header).