跳转至

获取RTA策略

获取账户RTA策略配置信息。

请求地址

https://openapi.aiclk.com/openapi/v1/rta/list

所属权限

ads_read

请求方式

GET

请求参数

字段名 类型 是否必须 描述
account_id int 广告主ID(广告投放平台的userID)

请求示例

curl --location 'https://openapi.aiclk.com/openapi/v1/rta/list?account_id=1000002' \
--header 'OGW_ACCESS_TOKEN: your_access_token'

返回字段释义

字段名 类型 描述
code int 返回码
message string 返回信息
data json 返回值,json格式,返回结果是list,包含字段如下
- 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": 122,
      "max_qps": 20000,
      "overtime": 60,
      "refuse_cache_time": 600,
      "status": 0,
      "strategy_id": "test11",
      "allow_conf_strategy": 0
    },
    {
      "api_host": "http://rta.qutoutiao.com/rta/v1/query",
      "cache_time": 500,
      "id": 123,
      "max_qps": 10000,
      "overtime": 50,
      "refuse_cache_time": 600,
      "status": 1,
      "strategy_id": "test22",
      "allow_conf_strategy": 1
    }
  ],
  "message": "success",
  "trace_id": "7092031ef80146fe"
}