(To-be-deprecated) Get recommended bids
GET/delivery/bid/recommend/Via 360: GET https://partner.quantri360.com/v1/tiktok_business/delivery/bid/recommend/
Description
> Important
> This endpoint will be deprecated in the next API version. We recommend that you migrate to /tool/diagnosis/get/ and obtain the bid estimated delivery results through the response parameter bid_edr_info.
Use this endpoint to get 9 sets of recommended bids and the corresponding estimated cost data for each bid on the same day when the bid is adopted.
If you want to get a suggested bid value for your ad group based on basic campaign and ad group settings, see Get suggested bid.
Request
Endpoint
GET https://partner.quantri360.com/v1/tiktok_business/delivery/bid/recommend/
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 |
|---|---|---|---|---|---|
| adgroup_ids | query | string[] | Yes | Ad group IDs. The number of IDs cannot exceed 20. |
Request examples
curl -s "https://partner.quantri360.com/v1/tiktok_business/delivery/bid/recommend/?adgroup_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/delivery/bid/recommend/",
params={
"adgroup_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/delivery/bid/recommend/');
for (const [k, v] of Object.entries({"adgroup_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/delivery/bid/recommend/' . '?' . http_build_query(['adgroup_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 codes. | |
| 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. | |
| results | object[] | List of ad group IDs and corresponding bid recommendation results. | |
| adgroup_id | string | Ad group ID. | |
| recommendations | object[] | 9 sets of data for recommended bid raise ratios from -10% to 30% with a step of 5% and corresponding estimated results. | |
| recommended_bid | float | Recommended bid. Please adopt one suitable bid using /adgroup/update/ and pass the adopted bid price to `conversion_bid_price` within the same day (advertiser account time zone). | |
| bid_increase_ratio | float | Estimated bid raise ratio. | |
| estimated_cost | float | Estimated cost. | |
| cost_uplift | float | Estimated cost uplift. | |
| cost_uplift_ratio | float | Estimated cost uplift ratio. |
Response sample
HTTPS/1.1 200 OK
{
"code": 0,
"message": "OK",
"request_id": "{{request_id}}",
"data": {
"results": [
{
"recommendations": [
{
"cost_uplift_ratio": 0.83,
"estimated_cost": 553.43,
"recommended_bid": 0.63,
"bid_increase_ratio": 0.25,
"cost_uplift": 251.4
},
{
"cost_uplift_ratio": 0.47,
"estimated_cost": 444.8,
"recommended_bid": 0.57,
"bid_increase_ratio": 0.15,
"cost_uplift": 142.36
},
{
"cost_uplift_ratio": -0.14,
"estimated_cost": 261.17,
"recommended_bid": 0.48,
"bid_increase_ratio": -0.05,
"cost_uplift": -42.4
},
{
"cost_uplift_ratio": -0.27,
"estimated_cost": 222.25,
"recommended_bid": 0.45,
"bid_increase_ratio": -0.1,
"cost_uplift": -81.78
},
{
"cost_uplift_ratio": 0.0,
"estimated_cost": 302.89,
"recommended_bid": 0.5,
"bid_increase_ratio": 0.0,
"cost_uplift": 0
},
{
"cost_uplift_ratio": 0.15,
"estimated_cost": 347.4,
"recommended_bid": 0.53,
"bid_increase_ratio": 0.05,
"cost_uplift": 45.43
},
{
"cost_uplift_ratio": 1.02,
"estimated_cost": 611.93,
"recommended_bid": 0.65,
"bid_increase_ratio": 0.3,
"cost_uplift": 308.95
},
{
"cost_uplift_ratio": 0.64,
"estimated_cost": 497.73,
"recommended_bid": 0.6,
"bid_increase_ratio": 0.2,
"cost_uplift": 193.85
},
{
"cost_uplift_ratio": 0.3,
"estimated_cost": 394.72,
"recommended_bid": 0.55,
"bid_increase_ratio": 0.1,
"cost_uplift": 90.87
}
],
"adgroup_id": "adgroup_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