Get details of max delivery or creative boost sessions
GET/campaign/gmv_max/session/get/Via 360: GET https://partner.quantri360.com/v1/tiktok_business/campaign/gmv_max/session/get/
Description
Use this endpoint to retrieve the details of max delivery or creative boost sessions for a list of given session IDs.
Request
Endpoint
GET https://partner.quantri360.com/v1/tiktok_business/campaign/gmv_max/session/get/
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 |
|---|---|---|---|---|---|
| session_ids | query | string[] | Yes | An ID list of the max delivery or creative boost sessions for products in a Product GMV Max Campaign.
Max size: 20.
- To obtain the ID list of active max delivery sessions within a Product GMV Max Campaign, use /campaign/gmv_max/session/list/ and select sessions with bid_type as NO_BID.
- To obtain the ID list of active creative boost sessions within a Product GMV Max Campaign, use /campaign/gmv_max/session/list/ and select sessions with bid_type as CREATIVE_NO_BID. |
Request examples
curl -s "https://partner.quantri360.com/v1/tiktok_business/campaign/gmv_max/session/get/?session_ids=%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/campaign/gmv_max/session/get/",
params={
"session_ids": []
},
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/campaign/gmv_max/session/get/');
for (const [k, v] of Object.entries({"session_ids":[]})) 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/campaign/gmv_max/session/get/' . '?' . http_build_query(['session_ids' => '[]']); $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 Code. | |
| 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. | |
| session_list | object[] | The list of max delivery or creative boost sessions. | |
| campaign_id | string | The ID of the Product GMV Max Campaign. | |
| bid_type | string | Session type. Enum values: - `NO_BID`: max delivery session. - `CREATIVE_NO_BID`: creative boost session. | |
| session_id | string | The ID of the max delivery session for the product or creative boost session for the video in the Product GMV Max Campaign. - When `bid_type` is `NO_BID`, this field represents the ID of a max delivery session. - When `bid_type` is `CREATIVE_NO_BID`, this field represents the ID of a creative boost session. | |
| budget | float | The daily max delivery budget or daily creative boost budget. - Max delivery uses additional budget, separate from target ROI optimization budget, paced for more predictable ad spending. Your target ROI budget won’t be used for products using max delivery while max delivery is active. - Creative Boost is a functionality within Product GMV Max that allows sellers to manually promote specific videos by allocating extra daily budget. | |
| product_list | object[] | Details about the specific products. | |
| spu_id | string | The Product SPU (standard product unit) ID. | |
| schedule_type | string | Schedule type for max delivery or creative boost. Enum values: - `SCHEDULE_FROM_NOW`: To enable the max delivery or creative boost mode for the product continuously after the `schedule_start_time`, until the campaign scheduled end time. - `SCHEDULE_START_END`: To enable the max delivery or creative boost mode for the product between the `schedule_start_time` and `schedule_end_time`. | |
| schedule_start_time | string | The start time for the max delivery or creative boost mode, in the format of `YYYY-MM-DD HH:MM:SS` (UTC+0). | |
| schedule_end_time | string | The end time for the max delivery or creative boost mode, in the format of `YYYY-MM-DD HH:MM:SS` (UTC+0). | |
| item_id | string | Returned only when `bid_type` is `CREATIVE_NO_BID`. The ID of the video for which creative boost is enabled. |
Response sample
HTTPS/1.1 200 OK
{
"code": 0,
"message": "OK",
"request_id": "{{request_id}}",
"data": {
"session_list": [
{
"bid_type": "NO_BID",
"budget": {{budget}},
"campaign_id": "{{campaign_id}}",
"product_list": [
{
"spu_id": "{{spu_id}}"
}
],
"schedule_start_time": "{{schedule_start_time}}",
"schedule_type": "SCHEDULE_FROM_NOW",
"session_id": "{{session_id}}"
}
]
}
}
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