API Reference
Ads

Get ads

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

Use 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

Access-Tokenstringrequired

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

Query parameters

advertiser_idstringrequired

Advertiser ID.

fieldsstring[]

Fields to return, as a JSON array (["ad_id","secondary_status"]). If not set, all fields are returned.

exclude_field_types_in_responsestring[]

Types of fields to remove from the response, as a JSON array. Allowed value: NULL_FIELD (fields with null values).

filteringobject

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.

pagenumber

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

page_sizenumber

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.
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
listobject[]

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.

campaign_automation_typestring

Campaign automation type.

MANUALSMART_PLUSUPGRADED_SMART_PLUSUPGRADED_SMART_PLUS_CREATIVE
adgroup_idstring

Ad group ID.

adgroup_namestring

Ad group name.

ad_idstring

Ad ID.

ad_id_v2string

A v2 ad ID.

ad_namestring

Ad name.

create_timestring

Time at which the ad was created, in the format of YYYY-MM-DD HH:MM:SS (UTC time zone).

modify_timestring

Time at which the ad was last modified, in the format of YYYY-MM-DD HH:MM:SS (UTC time zone).

identity_idstring

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_typestring

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

CUSTOMIZED_USERAUTH_CODETT_USERBC_AUTH_TT
identity_authorized_bc_idstring

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

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, 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). For enum values, see Enumeration-Ad Status - 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 or Smart Creative ad. Set to True for an automated ad or Smart Creative 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).