文档中心 > API类目 > 阿里妈妈-UniDesk

alibaba.taobao.ud.smart.monitor.url.create (UD效果外投投放监测链接生成)

UD效果外投投放监测链接生成

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
monitor_url_top_request_dto MonitorUrlTopRequestDTO 可选 请求参数
  • └ item_id
  • Number
  • 必须
  • 123
  • 商品id
  • └ page_type
  • Number
  • 必须
  • 1
  • 落地页类型:1-商品详情页;2-自研页
  • └ cus_h5_url
  • String
  • 可选
  • https://
  • 自研页的H5链接;若落地页类型为“自研页”,该项必填
  • └ cus_deep_link
  • String
  • 可选
  • https://
  • 需要封装成唤端链接的原始https链接;若落地页类型为“自研页”,该项必填
  • └ channel_id
  • Number
  • 必须
  • 1
  • 渠道id:1-巨量2.0,104-腾讯3.0,105-快手,108-B站,109-微博
  • └ monitor_unique_id
  • String
  • 可选
  • xxxx
  • 监测唯一id,首次创建不需要传,通过出参返回。修改监测落地页时必填
  • └ prod_type
  • Number
  • 可选
  • 1
  • 产品类型:1-udsmart 2-流量通Pro,不传默认为udsmart

响应参数

名称 类型 示例值 描述
result MonitorUrlTopDTO 监测链接信息
  • └ pv_monitor_url
  • String
  • https://
  • 曝光监测
  • └ click_monitor_url
  • String
  • https://
  • 点击监测
  • └ click_url
  • String
  • https://
  • 落地页同步点击链接
  • └ deep_link
  • String
  • tbopen://
  • 唤端链接
  • └ universal_link
  • String
  • https://
  • 唤端链接-for ios
  • └ monitor_unique_id
  • String
  • xxxx
  • 监测唯一id

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaTaobaoUdSmartMonitorUrlCreateRequest req = new AlibabaTaobaoUdSmartMonitorUrlCreateRequest();
AlibabaTaobaoUdSmartMonitorUrlCreateRequest.MonitorUrlTopRequestDTO obj1 = new AlibabaTaobaoUdSmartMonitorUrlCreateRequest.MonitorUrlTopRequestDTO();
obj1.setItemId(123L);
obj1.setPageType(1L);
obj1.setCusH5Url("https://");
obj1.setCusDeepLink("https://");
obj1.setChannelId(1L);
obj1.setMonitorUniqueId("xxxx");
obj1.setProdType(1L);
req.setMonitorUrlTopRequestDto(obj1);
AlibabaTaobaoUdSmartMonitorUrlCreateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_taobao_ud_smart_monitor_url_create_response>
    <result>
        <pv_monitor_url>https://</pv_monitor_url>
        <click_monitor_url>https://</click_monitor_url>
        <click_url>https://</click_url>
        <deep_link>tbopen://</deep_link>
        <universal_link>https://</universal_link>
        <monitor_unique_id>xxxx</monitor_unique_id>
    </result>
</alibaba_taobao_ud_smart_monitor_url_create_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

返回
顶部