Guides
Campaigns

Edit and pause

Enabling, pausing and deleting in bulk, editing campaigns, the full replacement of /adgroup/update/, ad patches and what disappears after a deletion.

Enable, pause and delete

Each level has its own status route, with up to 20 ids per call and operation_status ENABLE, DISABLE or DELETE:

bash
curl --request POST \
  --url https://tiktok-ads.mimicr.dev/open_api/v1.3/campaign/status/update/ \
  --header 'Access-Token: <token>' \
  --header 'Content-Type: application/json' \
  --data '{ "advertiser_id": "7000000013373458730", "campaign_ids": ["1700013373458745"], "operation_status": "DISABLE" }'
json
{ "code": 0, "message": "OK", "request_id": "…", "data": { "campaign_ids": ["1700013373458745"], "status": "DISABLE", "campaign_list": [{ "campaign_id": "1700013373458745", "status": "DISABLE" }] } }
  • For an ad to deliver, the campaign, the ad group and the ad must be ENABLE. Pausing the campaign makes its ad groups and ads read *_CAMPAIGN_DISABLE.
  • DELETE is final and cascades: ad groups read ADGROUP_STATUS_CAMPAIGN_DELETE and ads AD_STATUS_CAMPAIGN_DELETE.
  • Any id already deleted fails the whole call (40002 The status of deleted campaigns cannot be modified.).
  • /adgroup/status/update/ accepts allow_partial_success: true: invalid ids go to error_list and the response has code 20001 (partially successful, which is a success code).

Deleted objects disappear

Lists and reports hide what was deleted:

  • /campaign/get/, /adgroup/get/ and /ad/get/ use primary_status STATUS_NOT_DELETE by default. To see deleted ones, pass filtering={"primary_status":"STATUS_ALL"}.
  • The synchronous report also leaves them out by default (see Reports).

If your integration "ends" a campaign by deleting it, the next query by campaign_ids comes back with list: [], not with CAMPAIGN_STATUS_DELETE, and its numbers disappear from the report. Use STATUS_ALL in both queries, or pause instead of deleting.

Edit the campaign

/campaign/update/ changes campaign_name, budget, special_industries and po_number. budget_mode and objective_type cannot change (40002 objective_type cannot be updated.). A new budget must be at least 105% of what was already spent (today for a daily budget, in total for a lifetime one). The response is the full campaign.

Edit the ad group: full replacement

TikTok's docs say /adgroup/update/ is "full replacement, not incremental update". Mimicr applies that to the targeting fields: location_ids, zipcode_ids, languages, age_groups, gender, interest_category_ids, interest_keyword_ids, audience_ids, excluded_audience_ids, operating_systems and dayparting go back to their defaults when they are not in the body. The other fields keep their values.

A body with only budget and schedule fails:

json
{ "code": 40002, "message": "Missing required field(s): location_ids.", "request_id": "…", "data": {} }

When the reset breaks no rule, the call works and warns in the header X-Mimicr-Warning: full-replacement reset languages,gender. Send the whole ad group, as on create:

bash
curl --request POST \
  --url https://tiktok-ads.mimicr.dev/open_api/v1.3/adgroup/update/ \
  --header 'Access-Token: <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "advertiser_id": "7000000013373458730",
    "adgroup_id": "1700013373458750",
    "adgroup_name": "Gás em Contagem",
    "location_ids": ["3469034"],
    "budget": 30,
    "schedule_type": "SCHEDULE_FROM_NOW",
    "schedule_start_time": "2026-11-06 12:00:00",
    "dayparting": ""
  }'
  • These cannot change: placement_type, placements, optimization_goal, billing_event, promotion_type, budget_mode and campaign_id. A different value answers 40002 <field> cannot be updated.
  • Once the ad group has started delivering, schedule_start_time can no longer change.
  • With CBO, the ad group has no budget to change.
  • The adgroupUpdateAsPatch toggle makes omitted fields keep their values, for integrations that still send only what changed.

Edit ads

/ad/update/ has two modes:

  • "patch_update": true: only ad_name, identity_id, identity_type, video_id, image_ids, ad_text and ad_texts, merged. Other fields answer 40002 creatives.0: <field> cannot be updated when patch_update is true.
  • Without patch_update: each creative is fully replaced; ad_name, identity_id and ad_format are required.

Changing the reviewable content of an approved ad takes it to AD_STATUS_REAUDIT; in Mimicr it keeps delivering the last approved version meanwhile. An ad whose ad group has ended answers 40002 This ad has finished delivering and can no longer be edited.

To swap the creative of an ad that is delivering, one option is to create the new ad, wait for its approval and only then delete the old one.

Bulk budgets

/adgroup/budget/update/ takes budget: [{adgroup_id, budget}] (applies right away, for lifetime budgets) or scheduled_budget: [{adgroup_id, scheduled_budget}] (daily; in Mimicr it applies at the next midnight of the advertiser time zone), up to 20 ad groups. The response is data: {}.