API Reference
Run a synchronous report
/open_api/v1.3/report/integrated/get/https://tiktok-ads.mimicr.dev · provider: https://business-api.tiktok.comUse this endpoint to run a synchronous report. Mimicr simulates BASIC reports at the AUCTION_ADVERTISER, AUCTION_CAMPAIGN, AUCTION_ADGROUP and AUCTION_AD levels, and AUDIENCE reports by gender and age.
dimensionstakes at most one ID dimension and one time dimension (stat_time_dayorstat_time_hour).- With
stat_time_daythe range is at most 30 days (365 otherwise; one day forstat_time_hour). - Metric values are strings. Days follow the advertiser time zone.
- Deleted objects are left out (
campaign_status,adgroup_statusandad_statusdefault toSTATUS_NOT_DELETE): add{"field_name":"ad_status","filter_type":"IN","filter_value":"[\"STATUS_ALL\"]"}to keep 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
You need to pass in either advertiser_id/advertiser_ids or bc_id.
When report_type is set to BASIC or AUDIENCE, you need to pass in either advertiser_id or advertiser_ids. If you pass in both advertiser_id and advertiser_ids, advertiser_id will be ignored. Valid when report_type is BASIC or AUDIENCE.
Not supported when report_type is BC.
AUCTIONRESERVATIONReport type.
BASICAUDIENCEPLAYABLE_MATERIALCATALOGBCTT_SHOPAUCTIONNot supported when report_type is BC. Required when report_type is BASIC,AUDIENCE or CATALOG.
AUCTION_ADAUCTION_ADGROUPAUCTION_CAMPAIGNAUCTION_ADVERTISERRESERVATION_ADRESERVATION_ADGROUPRESERVATION_CAMPAIGNRESERVATION_ADVERTISERGrouping conditions. For example: ["campaign_id", "stat_time_day"] indicates that both campaign_id and stat_time_day (days) are grouped.
Metrics to query.
Whether to enable the total added-up data for your requested metrics. When enable_total_metrics is enabled, we will provide the aggregate data for all pages as you query different pages. Under this condition, you only need to specify this field when requesting data for the first page.
This field is required when query_lifetime is false or not specified.
This field is required when query_lifetime is false or not specified.
Supported when report_type is BASIC or PLAYABLE_MATERIAL.
Sorting field.
Sorting order.
ASCDESCFilters, as a JSON array of {field_name, filter_type, filter_value}; filter_value is a JSON array string for IN. Mimicr applies campaign_ids, adgroup_ids, ad_ids, campaign_status, adgroup_status, ad_status (default STATUS_NOT_DELETE; STATUS_ALL keeps deleted objects), objective_type, optimization_goal, promotion_type, billing_event and campaign_name (MATCH).
Not supported when report_type is BC.
REGULARCHUNKCurrent page number. Default value: 1. Value range: ≥ 1.
Pagination 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
The total added-up data for your requested metrics. Returned when you enable enable_total_metrics in the request.
Show child attributes
The total added-up data for spend.
The total added-up data for impressions.
Data list.
Show child attributes
All requested dimension data.
Show child attributes
Returned when dimensions contains ad_id. Ad ID.
Returned when dimensions contains stat_time_day. The time (days) when the reporting occurred.
All requested metric data.
Show child attributes
Total spend.
Number of impression.
Pagination information.
Show child attributes
Current page number. Default value: 1. Value range: ≥ 1.
Page 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).