API Reference
Ad groups

Update ad group statuses

POST/open_api/v1.3/adgroup/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 ad groups. Deleted ad groups, or ad groups of deleted campaigns, fail the whole call unless allow_partial_success is true: then the bad ids are listed in error_list and code is 20001 (partially successful, a success code).

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_idsstring[]required

The IDs of the ad groups to be operated on.

operation_statusstringrequired

The operation to be performed on the ad groups.

DISABLEENABLEDELETE
allow_partial_successboolean

Whether to allow partial success for the operation.

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

The IDs of ad groups for which the operation was successful.

statusstring

The current status of the ad groups for which the operation was successful.

DISABLEENABLEDELETE
error_listobject[]

Returned only when allow_partial_success is set to true. A list of errors and the corresponding failed ad groups.

Show child attributes
adgroup_idstring

The ID of the ad group for which the operation failed.

error_messagestring

The error message associated with the failed ad group.

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