获取生效中的RTA策略
获取账户生效中的RTA策略配置信息。
请求地址
https://openapi.aiclk.com/openapi/v1/rta/online
所属权限
ads_read
请求方式
GET
请求参数
| 字段名 | 类型 | 是否必须 | 描述 |
|---|---|---|---|
| account_id | int | 是 | 广告主ID(广告投放平台的userID) |
请求示例
curl --location 'https://openapi.aiclk.com/openapi/v1/rta/online?account_id=1000002' \
--header 'OGW_ACCESS_TOKEN: your_access_token'
返回字段释义
| 字段名 | 类型 | 描述 |
|---|---|---|
| code | int | 返回码 |
| message | string | 返回信息 |
| data | json | 返回值,json格式,包含字段如下 |
| - api_host | int | RTA 地址 |
| - cache_time | string | Access缓存(s) |
| - id | int | RTA ID |
| - max_qps | int | QPS上限 |
| - overtime | int | 超时时间 |
| - refuse_cache_time | int | Refuse缓存(s) |
| - status | int | 状态:0-关闭,1-开启 |
| - strategy_id | string | 策略ID |
| - allow_conf_strategy | int | 是否可配置策略ID:0-否,1-是 |
返回示例
{
"code": 200,
"data": {
"api_host": "http://rta.qutoutiao.com/rta/v1/query",
"cache_time": 600,
"id": 3437,
"max_qps": 20000,
"overtime": 60,
"refuse_cache_time": 600,
"status": 1,
"strategy_id": "__",
"allow_conf_strategy": 1
},
"message": "success",
"trace_id": "3c1e4bd96ddbd6ee"
}