API Reference
Create a campaign
/open_api/v1.3/campaign/create/https://tiktok-ads.mimicr.dev · provider: https://business-api.tiktok.comUse this endpoint to create a campaign. Each ad account can have up to 999 campaigns. The response is the full campaign object.
In Mimicr the objectives TRAFFIC, REACH, LEAD_GENERATION, WEB_CONVERSIONS, VIDEO_VIEWS and ENGAGEMENT are simulated; app, shop, catalog, search, R&F and Smart+ campaigns answer 40014 (HTTP 501). A campaign_name already used by a non-deleted campaign of the advertiser is refused unless the requests carry different request_ids (toggle uniqueNames), and the same request_id within 10 seconds returns 40050.
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.
Body
application/jsonAdvertiser ID.
Advertising objective.
Campaign name.
The log ID of the request, which uniquely identifies it (also sent in the X-Tt-Logid header).
Special ad categories.
HOUSINGEMPLOYMENTCREDITWhether to enable Campaign Budget Optimization (CBO).
Required when objective_type is NOT RF_REACH. When objective_type is RF_REACH, budget_mode only supports BUDGET_MODE_INFINITE.
BUDGET_MODE_TOTALBUDGET_MODE_DYNAMIC_DAILY_BUDGETTRAFFICAPP_PROMOTIONWEB_CONVERSIONSLEAD_GENERATIONPRODUCT_SALESREACHVIDEO_VIEWSENGAGEMENTRequired when budget_mode is BUDGET_MODE_DAY or BUDGET_MODE_DYNAMIC_DAILY_BUDGET or BUDGET_MODE_TOTAL. Campaign budget.
ENABLEDISABLEPO (purchase order) number. PO numbers are useful for invoice tracking and reconciliation.
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
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, which 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 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.
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).