VI | EN
Message us on Messenger
Developer resources

Get details of max delivery or creative boost sessions — TikTok Business API

Get details of max delivery or creative boost sessions · 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.

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

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
session_idsquerystring[]YesAn 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)

NameTypeSampleDescription
codenumberResponse code. For the complete list of response codes and descriptions, see Appendix-Return Code.
messagestringResponse message. For details, see Appendix - Return Codes.
request_idstringThe log ID of a request, which uniquely identifies the request.
dataobjectReturned data.
session_listobject[]The list of max delivery or creative boost sessions.
campaign_idstringThe ID of the Product GMV Max Campaign.
bid_typestringSession type. Enum values: - `NO_BID`: max delivery session. - `CREATIVE_NO_BID`: creative boost session.
session_idstringThe 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.
budgetfloatThe 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_listobject[]Details about the specific products.
spu_idstringThe Product SPU (standard product unit) ID.
schedule_typestringSchedule 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_timestringThe start time for the max delivery or creative boost mode, in the format of `YYYY-MM-DD HH:MM:SS` (UTC+0).
schedule_end_timestringThe end time for the max delivery or creative boost mode, in the format of `YYYY-MM-DD HH:MM:SS` (UTC+0).
item_idstringReturned 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

  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