批量查询推广计划


HTTP请求方式

GET

请求地址

https://api.e.360.cn/display/campaign/getInfoById

Headers 请求参数
字段 类型 必须 描述
Content-Type string yes application/x-www-form-urlencoded
apiKey string yes 注册时分配到的api key,该参数作为HTTP HEAD字段传递。
accessToken string yes 访问token
Body 请求参数
字段 类型 必须 描述
campaignIds string yes 推广计划ID,英文逗号分隔,如果输入超过100,全部不处理
status integer yes 计划启用/暂停
枚举值:0-启用,1-暂停,如不填则默认返回所有启用和暂停的计划
请求示例
curl --location --request GET 'http://localhost:8076/display/campaign/Getinfobyid?campaignIds=5013360,5013360' \
--header 'apiKey:APIKEY' \ 
--header 'accessToken:ACCESSTOKEN'
返回结果
{
  "data": [
     {
          "id": 5026379,
          "errno": 2000000,
          "message": "成功",
          "name": "testopenapiOCPM深度",
          "ocpc_flag": "1",
          "asset_id": 289,
          "asset_order_type_id": 1,
          "order_price": "10000",
          "deep_conversion_type": 1,
          "deep_order_type_id": 13,
          "deep_order_price": "30",
          "accelerate_consume_flag": "0",
          "enabled": "0",
          "status": "6",
          "budget": "0",
          "equal_budget_flag": "0",
          "start_date": "2025-05-22",
          "end_date": "2025-05-31",
          "week": {
              "1": "111111111111111111111111111111111111111111111111",
              "2": "000000000000000000000000000000000000000000000000",
              "3": "000000000000000000000000000000000000000000000000",
              "4": "000000000000000000000000000000000000000000000000",
              "5": "000000000000000000000000000000000000000000000000",
              "6": "000000000000000000000000000000000000000000000000",
              "7": "000000000000000000000000000000000000000000000000"
          }
      },
  ],
  "errmsg": "OK",
  "errno": 0
}
返回结果说明
字段 类型 描述
errno int 错误码参见errorCode.md
id integer 推广计划ID
name string 推广计划名称
ocpx_flag string 投放方式枚举值:0-CPM/CPC,1-oCPC,2-oCPM,3-放量投放
asset_id integer 资产ID,仅在投放方式为oCPC、oCPM、放量投放时生效
asset_order_type_id integer 转化目标ID,仅在投放方式为oCPC、oCPM、放量投放时生效
order_price string 目标转化出价,仅在投放方式为oCPC、oCPM、放量投放时生效 单位:元
deep_conversion_type string 深度转化优化
枚举值:0-关闭,1-开启
deep_order_type_id integer 深度转化目标ID,仅在投放方式为oCPC、oCPM、放量投放时生效
deep_order_price string 深度目标转化出价,仅在投放方式为oCPC、oCPM、放量投放时生效 单位:元
accelerate_consume_flag string 一键起量
枚举值:0-关闭,1-开启
enabled string 计划启用/暂停
枚举值:0-启用,1-暂停
status string 计划状态
枚举值:6-预算受限
budget string 每日预算 单位:元
equal_budget_flag string 预算分配控制
枚举值:0-标准,1-尽速
start_date string 开始时间
格式:YYYY-MM-DD
end_date string 结束时间
格式:YYYY-MM-DD
week object 按小时投放日程,key为1-7表示周一至周日,value为48位字符串表示48个半小时段

results matching ""

    No results matching ""