VI | EN
Message us on Messenger
Developer resources

Run an Upgraded Smart+ Creative Breakdown Report — TikTok Business API

Run an Upgraded Smart+ Creative Breakdown Report · call it through Quantri360 with one API key for your own accounts / assets that you connected and authorized — 360 handles request signing and refreshing the authorization you granted.

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

NameInTypeSampleDescription
AuthorizationheaderheaderBearer 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_idquerystring7000000000000000001Tà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

NameInTypeRequiredSampleDescription
dimensionsquerystring[]YesDimension 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.
metricsquerystring[]NoMetrics 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.
filteringqueryobjectNoFiltering conditions.
start_datequerystringYesQuery start date (closed interval) in the format of YYYY-MM-DD. The date is based on the ad account time zone.
end_datequerystringYesQuery 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_fieldquerystringNoSorting field. Default sorting field: spend. All supported metrics (excluding attribute metrics) support sorting.
sort_typequerystringNoSorting order. Enum values: ASC (ascending), DESC(descending). Default value: DESC.
pagequerynumberNoCurrent page number. Value range: ≥1. Default value: 1.
page_sizequerynumberNoPage 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)

NameTypeSampleDescription
codenumberResponse code. For the complete list of response codes and descriptions, see Appendix - Return Codes.
messagestringResponse message. For details, see Appendix - Return Codes.
request_idstringThe log ID of a request, which uniquely identifies the request.
dataobjectReturned data.
listobject[]Data list.
dimensionsobjectDimension data.
main_material_idstringReturned 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_typestringMain 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_idstringAd text entity ID. The ID is a system-generated unique identifier for an ad text.
ad_text_entity_typestringAd text entity type. Enum value: - `text`: ad text.
call_to_action_entity_idstringCall-to-action entity ID. The ID is a system-generated unique identifier for a call-to-action.
call_to_action_entity_typestringCall-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_idstringInteractive add-on entity ID. The ID is a system-generated unique identifier for an interactive add-on.
interactive_add_on_entity_typestringInteractive add-on entity type. Enum value: - `add_on`: interactive add-on.
metricsobjectMetric data.
multi_namestringA 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_namestringMain creative name.
ad_textstringAd text.
call_to_actionstringCall-to-action.
interactive_add_on_namestringInteractive add-on name.
interactive_add_on_idstringInteractive 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_infoobjectPagination information.
pagenumberCurrent page number.
page_sizenumberPage size.
total_numbernumberTotal number of results.
total_pagenumberTotal 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

  1. Sign up for Partner
  2. Enable a data type of the Ads (Marketing API) group on the platform page
  3. Create an API key (tick the TikTok Business channel)
  4. Call it as in the examples above