API Reference
Ads

Update ad statuses

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

Use this endpoint to enable, disable or delete up to 20 ads. Deleted ads, or ads of deleted ad groups or campaigns, fail the whole call.

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
ad_idsstring[]

A list of ad IDs. Allowed quantity: 1-20. Either ad_ids or aco_ad_ids has to be set.

advertiser_idstringrequired

Advertiser ID.

operation_statusstringrequired

The operation being made. Enum values: DELETE (delete), DISABLE (pause), ENABLE (enable).

DELETEDISABLEENABLE

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.

dataobject

Returned data.

Show child attributes
ad_idsstring[]

List of updated ad IDs.

statusstring

The operation that was executed. Enum values: DELETE,DISABLE, ENABLE

DELETEDISABLEENABLE
request_idstring

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

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).