Run an Upgraded Smart+ Creative Breakdown Report
GET/smart_plus/material_report/breakdown/Via 360: GET https://partner.quantri360.com/v1/tiktok_business/smart_plus/material_report/breakdown/
Description
Use this endpoint to retrieve an Upgraded Smart+ Creative Breakdown Report, a breakdown of the reporting data on creatives within Upgraded Smart+ Ads.
Upgraded Smart+ Creative Breakdown Reports support breakdown by time range (hour, day, week, or month).
Request
Endpoint
GET https://partner.quantri360.com/v1/tiktok_business/smart_plus/material_report/breakdown/
Authentication & shop
| Name | In | Type | Sample | Description |
|---|---|---|---|---|
| Authorization | header | header | Bearer q360_live_ab12cd34_… | Khóa API của brand (tạo ở mục API key). Bắt buộc với mọi request. Brand suy từ key — không truyền mã brand. |
| platform_shop_id | query | string | 7000000000000000001 | Tài sản TikTok Business đã kết nối — "Mã tài sản" ở trang Nền tảng hoặc GET /v1/platforms (tài khoản quảng cáo cho Marketing API, tài khoản TikTok cho Organic / Messaging). Có thể bỏ khi chỉ kết nối một tài sản. |
Request parameters
| Name | In | Type | Required | Sample | Description |
|---|---|---|---|---|---|
| dimensions | query | string[] | Yes | Dimension grouping conditions.
For example, ["main_material_id","stat_time_day"] indicates that both main_material_id and stat_time_day are grouped.
To learn about available dimensions and supported dimension groupings, see Supported dimensions. | |
| metrics | query | string[] | No | Metrics to query.
Default value: ["spend", "impressions"].
Note that the amount of currency metrics is based on the currency of the ad account (advertiser_id).
To learn about the supported metrics at the ad level, see Supported ad-level metrics for Upgraded Smart+ Creative Reports. | |
| filtering | query | object | No | Filtering conditions. | |
| start_date | query | string | Yes | Query start date (closed interval) in the format of YYYY-MM-DD.
The date is based on the ad account time zone. | |
| end_date | query | string | Yes | Query end date (closed interval) in the format of YYYY-MM-DD.
The date is based on the ad account time zone.
Note:
- The time difference between start_date and end_date must be equal to or less than 365 days.
- If dimensions contains stat_time_hour, the time difference between start_date and end_date must be equal to or less than 7 days | |
| sort_field | query | string | No | Sorting field.
Default sorting field: spend.
All supported metrics (excluding attribute metrics) support sorting. | |
| sort_type | query | string | No | Sorting order.
Enum values: ASC (ascending), DESC(descending).
Default value: DESC. | |
| page | query | number | No | Current page number. Value range: ≥1. Default value: 1. | |
| page_size | query | number | No | Page size. Value range: 1-100. Default value: 10. |
Request examples
curl -s "https://partner.quantri360.com/v1/tiktok_business/smart_plus/material_report/breakdown/?dimensions=%5B%5D&start_date=&end_date=" \ -H "Authorization: Bearer $KEY"
Python
import requests
KEY = "q360_live_..." # khóa API của brand
r = requests.get(
"https://partner.quantri360.com/v1/tiktok_business/smart_plus/material_report/breakdown/",
params={
"dimensions": [],
"start_date": "",
"end_date": ""
},
headers={"Authorization": f"Bearer {KEY}"},
timeout=60,
)
print(r.status_code)
print(r.json())Node.js
const KEY = 'q360_live_...'; // khóa API của brand
const url = new URL('https://partner.quantri360.com/v1/tiktok_business/smart_plus/material_report/breakdown/');
for (const [k, v] of Object.entries({"dimensions":[],"start_date":"","end_date":""})) url.searchParams.set(k, typeof v === 'object' ? JSON.stringify(v) : String(v));
const r = await fetch(url, {
method: 'GET',
headers: { Authorization: `Bearer ${KEY}` },
});
console.log(r.status, await r.json());PHP
<?php $key = 'q360_live_...'; // khóa API của brand $url = 'https://partner.quantri360.com/v1/tiktok_business/smart_plus/material_report/breakdown/' . '?' . http_build_query(['dimensions' => '[]', 'start_date' => '', 'end_date' => '']); $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Bearer ' . $key]); $res = curl_exec($ch); $status = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); echo $status, "\n", $res;
Response
Response fields (as returned by TikTok Business)
| Name | Type | Sample | Description |
|---|---|---|---|
| code | number | Response code. For the complete list of response codes and descriptions, see Appendix - Return Codes. | |
| message | string | Response message. For details, see Appendix - Return Codes. | |
| request_id | string | The log ID of a request, which uniquely identifies the request. | |
| data | object | Returned data. | |
| list | object[] | Data list. | |
| dimensions | object | Dimension data. | |
| main_material_id | string | Returned when the parameter `dimensions` contains `main_material_id` in the request. Material ID. - When `main_material_type` is `VIDEO_NON_SPARK_ADS`, `CATALOG_VIDEO`, or `SINGLE_IMAGE_NON_SPARK_ADS`, this field represents the ID of a main creative. - When `main_material_type` is `VIDEO_SPARK_ADS` or `CAROUSEL_SPARK_ADS`, this field represents the ID of TikTok post. - When `main_material_type` is `CATALOG_VIDEO_TEMPLATE`, `CATALOG_CAROUSEL`, or `CATALOG_MULTI_SHOW`, this field represents the ID of a catalog. - When `main_material_type` is `CAROUSEL_NON_SPARK_ADS`, this field represents the ID of a carousel. | |
| main_material_type | string | Main creative type. Enum values: - `VIDEO_NON_SPARK_ADS`: Video (non-Spark Ads). - `VIDEO_SPARK_ADS`: Video (Spark Ads). - `CAROUSEL_NON_SPARK_ADS`: Carousel (non-Spark Ads). - `CAROUSEL_SPARK_ADS`: Carousel (Spark Ads). - `SINGLE_IMAGE_NON_SPARK_ADS`: Single image (non-Spark Ads). - `CATALOG_VIDEO`: Catalog video. - `CATALOG_VIDEO_TEMPLATE`: Catalog video template. - `CATALOG_CAROUSEL`: Catalog carousel. - `CATALOG_MULTI_SHOW`: Catalog Multi Show. | |
| ad_text_entity_id | string | Ad text entity ID. The ID is a system-generated unique identifier for an ad text. | |
| ad_text_entity_type | string | Ad text entity type. Enum value: - `text`: ad text. | |
| call_to_action_entity_id | string | Call-to-action entity ID. The ID is a system-generated unique identifier for a call-to-action. | |
| call_to_action_entity_type | string | Call-to-action entity type. Enum values: - `manual_call_to_action`: standard call to action. - `dynamic_call_to_action`: dynamic call to action. | |
| interactive_add_on_entity_id | string | Interactive add-on entity ID. The ID is a system-generated unique identifier for an interactive add-on. | |
| interactive_add_on_entity_type | string | Interactive add-on entity type. Enum value: - `add_on`: interactive add-on. | |
| metrics | object | Metric data. | |
| multi_name | string | A combination of setting names based on the setting dimensions (`ad_text_entity_ids`, `call_to_action_entity_ids`, and `interactive_add_on_entity_ids`) specified in the request. For instance, if you specify the dimensions `ad_text_entity_ids` and `call_to_action_entity_ids` in the request, the `multi_name` will be `{ad_text_name}_{call_to_action_name}`. Example: `Video1_Adtext1_CTA1`. | |
| main_material_name | string | Main creative name. | |
| ad_text | string | Ad text. | |
| call_to_action | string | Call-to-action. | |
| interactive_add_on_name | string | Interactive add-on name. | |
| interactive_add_on_id | string | Interactive add-on ID. This ID is generated when you create the interactive add-on in the Creative Library and is different from `interactive_add_on_entity_id`. | |
| page_info | object | Pagination information. | |
| page | number | Current page number. | |
| page_size | number | Page size. | |
| total_number | number | Total number of results. | |
| total_page | number | Total pages of results. |
Response sample
{
"code": 0,
"message": "OK",
"request_id": "{{request_id}}",
"data": {
"list": [
{
"dimensions": {
"ad_text_entity_id": "{{ad_text_entity_id}}",
"ad_text_entity_type": "text",
"main_material_id": "{{main_material_id}}",
"main_material_type": "CAROUSEL_SPARK_ADS"
},
"metrics": {
"ad_text": "{{ad_text}}",
"clicks": "{{clicks}}",
"main_material_name": "{{main_material_name}}",
"multi_name": "{{multi_name}}",
"spend": "{{spend}}"
}
}
],
"page_info": {
"page": 1,
"page_size": 100,
"total_number": 1,
"total_page": 1
}
}
}
Get started
- Sign up for Partner
- Enable a data type of the Ads (Marketing API) group on the platform page
- Create an API key (tick the TikTok Business channel)
- Call it as in the examples above