API Reference
Get campaigns
/open_api/v1.3/campaign/get/https://tiktok-ads.mimicr.dev · provider: https://business-api.tiktok.comUse this endpoint to get campaigns, sorted by campaign_id descending. Arrays and objects go in the query as JSON.
Deleted campaigns are hidden by default (primary_status defaults to STATUS_NOT_DELETE): pass filtering={"primary_status":"STATUS_ALL"} to read them.
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 (up to 100), campaign_name (substring), primary_status (default STATUS_NOT_DELETE; STATUS_ALL includes deleted ones), secondary_status, objective_type, buying_types, is_smart_performance_campaign, campaign_type, optimization_goal and creation_filter_start_time/creation_filter_end_time.
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 campaigns. The returned fields are generated based on the fields specified in the request parameters. All fields are returned by default.
Show child attributes
Advertiser ID.
Campaign ID.
Time at which the campaign was created.
Time at which the campaign was modified.
Advertising objective.
Whether the campaign is a Search Ads Campaign. With Search Ads Campaigns, you can select keywords and serve ads within TikTok's search result page.
Whether the campaign is an automated campaign type.
Campaign Type, indicates the campaign is a regular campaign or iOS 14 campaign.
REGULAR_CAMPAIGNIOS14_CAMPAIGNWhether to use your catalog to automatically advertise relevant products or services to people based on their unique interests, intent and actions.
Campaign name.
Special ad categories.
HOUSINGEMPLOYMENTCREDITReturned only for campaigns with Campaign Budget Optimization (CBO) enabled. Whether CBO is enabled.
Bidding strategy for in-app events.
ROAS goal for Value Optimization.
Budget mode.
BUDGET_MODE_INFINITEBUDGET_MODE_TOTALBUDGET_MODE_DAYBUDGET_MODE_DYNAMIC_DAILY_BUDGETCampaign budget.
Operation status.
ENABLEDISABLECampaign status (Secondary status).
Whether the campaign is a new structure (for the same campaign, the structure of campaign, ad groups and ads are the same).
Campaign type (application or landing page).
APPLANDING_PAGEPO (purchase order) number. PO numbers are useful for invoice tracking and reconciliation.
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).