VI | EN
Message us on Messenger
Developer resources

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

Run an Upgraded Smart+ Creative Overview 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 Overview Report

GET/smart_plus/material_report/overview/Via 360: GET https://partner.quantri360.com/v1/tiktok_business/smart_plus/material_report/overview/
Description

Use this endpoint to retrieve an Upgraded Smart+ Creative Overview Report, an overview of the reporting data on creatives within Upgraded Smart+ Ads.

Upgraded Smart+ Creative Overview Reports doesn't support breakdown by time range (hour, day, week, or month).

Request

Endpoint

GET https://partner.quantri360.com/v1/tiktok_business/smart_plus/material_report/overview/

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, ["campaign_id", "main_material_id"] indicates that both campaign_id and main_material_id 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.
query_lifetimequerybooleanNoWhether to request lifetime metrics. Supported values: true, false. Default value: false. If you set query_lifetime to true, the parameters start_date and end_date will be ignored.
start_datequerystringNoRequired when query_lifetime is false or not specified. Query start date (closed interval) in the format of YYYY-MM-DD. The date is based on the ad account time zone.
end_datequerystringNoRequired when query_lifetime is false or not specified. 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.
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/overview/?dimensions=%5B%5D" \
  -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/overview/",
    params={
        "dimensions": []
    },
    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/overview/');
for (const [k, v] of Object.entries({"dimensions":[]})) 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/overview/' . '?' . http_build_query(['dimensions' => '[]']);
$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.
advertiser_idstringReturned when the parameter `dimensions` contains `advertiser_id` in the request. Advertiser ID.
campaign_idstringReturned when the parameter `dimensions` contains `campaign_id` in the request. Campaign ID.
adgroup_idstringReturned when the parameter `dimensions` contains `adgroup_id` in the request. Ad Group ID.
smart_plus_ad_idstringReturned when the parameter `dimensions` contains `smart_plus_ad_id`in the request. Ad ID.
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_typestringReturned when the parameter `dimensions` contains `main_material_id` in the request. 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. Multi-Show Experience is an auto-play video carousel experience designed to drive user exploration and engagement across a breadth of personally-relevant title offerings within your content library.
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. If the parameter `dimensions` does not contain `smart_plus_ad_id` in the request, the following metrics will return an empty string (`""`) : - `ad_material_id` - `material_primary_status` - `material_second_status` - `operation_status`
ad_material_idstringAn ad-specific material ID generated when a particular creative is used in an ad. This ID differs from the creative ID you receive when uploading the creative to your ad account’s Creative Library.
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`.
material_primary_statusstringReturned when the parameter `dimensions` contains `smart_plus_ad_id` in the request. The primary status of the creative. For enum values, see List of values for `material_primary_status`.
material_second_status_liststring[]The list of secondary statuses of the creative. For enum values, see List of values for `material_second_status_list`. Note: When the parameter `dimensions` doesn't contain `smart_plus_ad_id` in the request, this field will not be returned.
operation_statusstringOperation status. Enum values: - `ENABLE` : enabled (in 'ON' status). - `DISABLE`: disabled (in 'OFF' status). - `FROZEN`: terminated and cannot be enabled.
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": {
                    "main_material_id": "{{main_material_id}}",
                    "main_material_type": "VIDEO_SPARK_ADS",
                    "smart_plus_ad_id": "{{smart_plus_ad_id}}"
                },
                "metrics": {
                    "main_material_name": "{{main_material_name}}",
                    "spend": "0.00"
                }
            },
            {
                "dimensions": {
                    "main_material_id": "{{main_material_id}}",
                    "main_material_type": "CAROUSEL_SPARK_ADS",
                    "smart_plus_ad_id": "{{smart_plus_ad_id}}"
                },
                "metrics": {
                    "main_material_name": "{{main_material_name}}",
                    "spend": "0.00"
                }
            }
        ],
        "page_info": {
            "page": 1,
            "page_size": 100,
            "total_number": 2,
            "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