文档中心 > API类目 > 飞猪商业化API

alitrip.bp.ad.group.update (单元信息更新)

单元信息更新

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
update_request FAdGroupUpdateRequest 必须 单元更新请求
  • └ time_premium_max_rate
  • Number
  • 可选
  • 30
  • 特殊时段溢价比例
  • └ biz_code
  • String
  • 必须
  • xx
  • 产品线code
  • └ cia_rate
  • Number
  • 可选
  • 30
  • 普通时段溢价比例
  • └ user_time_premium
  • String
  • 可选
  • 18:00-23:59
  • 特殊溢价时段配置
  • └ business_id
  • String
  • 必须
  • xx
  • 嗲用方code
  • └ ad_group_id
  • Number
  • 必须
  • 127322
  • 单元id
  • └ bid_price
  • Number
  • 可选
  • 120
  • 出价

响应参数

名称 类型 示例值 描述
result AdResult 返回结果
  • └ msg
  • String
  • 参数错误
  • 错误信息
  • └ trace_id
  • String
  • 178237229sssxss
  • 追溯id
  • └ rt
  • Number
  • 20
  • 调用时长
  • └ code
  • String
  • -100
  • code
  • └ success
  • Boolean
  • true
  • 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripBpAdGroupUpdateRequest req = new AlitripBpAdGroupUpdateRequest();
AlitripBpAdGroupUpdateRequest.FAdGroupUpdateRequest obj1 = new AlitripBpAdGroupUpdateRequest.FAdGroupUpdateRequest();
obj1.setTimePremiumMaxRate(30L);
obj1.setBizCode("xx");
obj1.setCiaRate(30L);
obj1.setUserTimePremium("18:00-23:59");
obj1.setBusinessId("xx");
obj1.setAdGroupId(127322L);
obj1.setBidPrice(120L);
req.setUpdateRequest(obj1);
AlitripBpAdGroupUpdateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_bp_ad_group_update_response>
    <result>
        <msg>参数错误</msg>
        <trace_id>178237229sssxss</trace_id>
        <rt>20</rt>
        <code>-100</code>
        <success>true</success>
    </result>
</alitrip_bp_ad_group_update_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部