API Reference
Update ads
/open_api/v1.3/ad/update/https://tiktok-ads.mimicr.dev · provider: https://business-api.tiktok.comUse 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
Authorized access token, sent in this header (not Authorization: Bearer). Marketing API tokens never expire.
Body
application/jsonAdvertiser ID.
Ad group ID.
Whether to use incremental update mode.
Advertising creatives.
Show child attributes
Ad ID.
Required only when patch_update is not set to true. Ad name.
Required only when patch_update is not set to true. Identity ID.
Required only when patch_update is not set to trueand you use Spark Ads. Identity type.
CUSTOMIZED_USERAUTH_CODETT_USERBC_AUTH_TTRequired only when patch_update is not set to true. The ad format.
SINGLE_IMAGESINGLE_VIDEOLIVE_CONTENTCAROUSEL_ADSCATALOG_CAROUSELA list of image IDs (images used in an ad or as a video cover).
Call-to-action text.
Landing page URL.
Page ID.
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.
Return code. 0 means success; see the return codes appendix for the others.
Return message: OK on success, otherwise the error description.
The log ID of the request, which uniquely identifies it (also sent in the X-Tt-Logid header).
Returned data.
Show child attributes
Ad IDs.
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 ID.
Campaign ID.
Campaign name.
Ad group ID.
Ad group name.
Ad ID.
Ad name.
Time at which the ad was created.
Time at which the ad was modified.
Identity ID.
Identity type. Enum values: CUSTOMIZED_USER, AUTH_CODE, TT_USER, BC_AUTH_TT.
CUSTOMIZED_USERAUTH_CODETT_USERBC_AUTH_TTReturned when identity_type is BC_AUTH_TT. ID of the Business Center that a TikTok Account User in Business Center identity is associated with.
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_CAROUSELThe video ID.
A list of image IDs.
The ID of the piece of music that is used in the TikTok Carousel Ad.
The ID of the TikTok post that is used as Spark Ad.
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.
A list of ad texts.
For call-to-action text, see Enumeration - Call-to-action
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 URL.
Page ID.
Operation status.
ENABLEDISABLEFROZENAd status(Secondary status,See Enumeration - Secondary Status
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_GENERATIONThe display name of landing page or pure exposure ad.
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.
Whether the ad is an automated ad. Set to true for automated ad and false for non-automated ad.
Whether the campaign is a new structure (for the same campaign, the structure of campaign, adgroups and ads are the same).
Conversion event for the ad group. See Conversion events for more.
Pagination information.
Show child attributes
Current page number. Default value: 1. Value range: ≥ 1.
Paging size.
Total number of results.
Total pages of results.
501The route or feature is documented by TikTok but outside Mimicr's integration core: code 40014 with HTTP 501.
Return code. 0 means success; see the return codes appendix for the others.
Return message: OK on success, otherwise the error description.
The log ID of the request, which uniquely identifies it (also sent in the X-Tt-Logid header).