注意:以下文档只适用于TOP接口,请谨慎使用!

alibaba.alihealth.yt.wt.media.rta.bind (RTA策略绑定)

RTA策略绑定

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
isv_rta_bind_request IsvRTABindRequest 必须 绑定参数
  • └ strategy_code
  • String
  • 可选
  • ALIH_001
  • 策略值
  • └ advertiser_id
  • Number
  • 必须
  • 111111
  • 广告主id
  • └ channel_id
  • Number
  • 必须
  • 1
  • 渠道id:1-抖音1.0,2-抖音2.0,3-快手,4-腾讯,5-B站,6-UC,7-百度
  • └ open
  • Boolean
  • 必须
  • true
  • true:绑定,false:解绑

响应参数

名称 类型 示例值 描述
result Result Result
  • └ success
  • Boolean
  • true
  • true表示成功
  • └ model
  • String
  • success
  • 成功
  • └ msg_info
  • String
  • 错误信息
  • 错误信息
  • └ msg_code
  • String
  • 错误码
  • 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthYtWtMediaRtaBindRequest req = new AlibabaAlihealthYtWtMediaRtaBindRequest();
AlibabaAlihealthYtWtMediaRtaBindRequest.IsvRTABindRequest obj1 = new AlibabaAlihealthYtWtMediaRtaBindRequest.IsvRTABindRequest();
obj1.setStrategyCode("ALIH_001");
obj1.setAdvertiserId(111111L);
obj1.setChannelId(1L);
obj1.setOpen(true);
req.setIsvRtaBindRequest(obj1);
AlibabaAlihealthYtWtMediaRtaBindResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_yt_wt_media_rta_bind_response>
    <result>
        <success>true</success>
        <model>success</model>
        <msg_info>错误信息</msg_info>
        <msg_code>错误码</msg_code>
    </result>
</alibaba_alihealth_yt_wt_media_rta_bind_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

返回
顶部