Get bid protection history
GET/report/bid_protection/detail/get/Via 360: GET https://partner.quantri360.com/v1/tiktok_business/report/bid_protection/detail/get/
Description
Use this endpoint to retrieve your bid protection history and ad credits from the past 60 days for a list of Upgraded Smart+ Campaigns or Upgraded Smart+ Ad Groups.
Results are calculated daily and updated every 24 hours.
Request
Endpoint
Method GET
Header
|Field{30%}|Data Type{15%}|Description{55%}|
|---|---|---|
|Access-Token {Required}|string|Authorized access token. For details, see Authentication. |Request
Endpoint
GET https://partner.quantri360.com/v1/tiktok_business/report/bid_protection/detail/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 |
|---|---|---|---|---|---|
| data_level | query | string | Yes | The data level.
Enum values:
- CAMPAIGN: Campaign level.
- ADGROUP: Ad group level. | |
| query_ids | query | string[] | Yes | The list of IDs to query.
The maximum allowed size is 200 divided by the time range you define using start_date and end_date. For example, if you set start_date to 2026-08-01 and end_date to 2026-08-11 (a 10-day range), the maximum number of IDs you can specify in query_ids is 20 (200 divided by 10).
- When data_level is CAMPAIGN, specify a list of Upgraded Smart+ Campaign IDs.
- To retrieve Upgraded Smart+ Campaign IDs, use /smart_plus/campaign/get/.
- When data_level is ADGROUP, specify a list of Upgraded Smart+ Ad Group IDs.
- To retrieve Upgraded Smart+ Ad Group IDs, use /smart_plus/adgroup/get/.
All IDs must belong to the same advertiser. | |
| start_date | query | string | Yes | The start date for your bid protection history query, in the format of YYYY-MM-DD (ad account timezone).
Ensure the start date is within the past 60 days and is earlier than or equal to your end_date. | |
| end_date | query | string | Yes | The end date for your bid protection history query, in the format of YYYY-MM-DD (ad account timezone).
Ensure the end date is within 60 days after your start_date and is later than or equal to the start_date. |
Request examples
curl -s "https://partner.quantri360.com/v1/tiktok_business/report/bid_protection/detail/get/?data_level=&query_ids=%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/report/bid_protection/detail/get/",
params={
"data_level": "",
"query_ids": [],
"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/report/bid_protection/detail/get/');
for (const [k, v] of Object.entries({"data_level":"","query_ids":[],"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/report/bid_protection/detail/get/' . '?' . http_build_query(['data_level' => '', 'query_ids' => '[]', '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)
The response is the raw TikTok Business JSON for this endpoint.
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