API Reference
Get ads
/open_api/v1.3/ad/get/https://tiktok-ads.mimicr.dev · provider: https://business-api.tiktok.comUse this endpoint to get ads, sorted by ad_id descending. Arrays and objects go in the query as JSON. Deleted ads are hidden unless filtering.primary_status is STATUS_ALL.
In Mimicr secondary_status shows the review above a pause: a paused ad in review reads AD_STATUS_AUDIT, and a rejected one AD_STATUS_AUDIT_DENY (toggle disableOutranksReview to invert). For the reasons, use /ad/review_info/.
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.
Query parameters
Advertiser ID.
Fields to return, as a JSON array (["ad_id","secondary_status"]). If not set, all fields are returned.
Types of fields to remove from the response, as a JSON array. Allowed value: NULL_FIELD (fields with null values).
Filters, as a JSON object. Mimicr applies campaign_ids, adgroup_ids, ad_ids (up to 100 each), primary_status (default STATUS_NOT_DELETE), secondary_status, objective_type, optimization_goal, creative_material_mode, destination, creation_filter_start_time/creation_filter_end_time and modified_after.
Current page number. Default value: 1. Value range: ≥ 1.
Page size.
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
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.
Campaign automation type.
MANUALSMART_PLUSUPGRADED_SMART_PLUSUPGRADED_SMART_PLUS_CREATIVEAd group ID.
Ad group name.
Ad ID.
A v2 ad ID.
Ad name.
Time at which the ad was created, in the format of YYYY-MM-DD HH:MM:SS (UTC time zone).
Time at which the ad was last modified, in the format of YYYY-MM-DD HH:MM:SS (UTC time zone).
Identity ID. If you are not using Spark Ads, identity_id and identity_type (CUSTOMIZED_USER) can be used for better management of ads information.
Identity type. Enum values: CUSTOMIZED_USER, AUTH_CODE, TT_USER, BC_AUTH_TT.
CUSTOMIZED_USERAUTH_CODETT_USERBC_AUTH_TTID of the Business Center that a TikTok Account User in Business Center identity is associated with. Returned when identity_type is BC_AUTH_TT.
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, call_to_action will be ignored.
Landing page URL.
Page ID.
Operation status.
ENABLEDISABLEFROZENAd status (Secondary status). For enum values, see Enumeration-Ad Status - 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 or Smart Creative ad. Set to True for an automated ad or Smart Creative 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).