aliexpress.social.item.promotion (获取推广链接)

获取商品社交推广链接

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
target_url String 可选 https://xxxx 推广的商品链接
af String 可选 999 子渠道号
cn String 可选 aaa campaign Id
cv String 可选 bbb creative id
dp String 可选 ccc click id

响应参数

名称 类型 示例值 描述
promotion_url String https://s.click.aliexpress.com/e/aaaa 推广链接
is_success Boolean true 是否成功
result_code String 错误码
result_msg String 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
1
2
3
4
5
6
7
8
9
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliexpressSocialItemPromotionRequest req = new AliexpressSocialItemPromotionRequest();
req.setTargetUrl("https://xxxx");
req.setAf("999");
req.setCn("aaa");
req.setCv("bbb");
req.setDp("ccc");
AliexpressSocialItemPromotionResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
1
2
3
4
5
6
<aliexpress_social_item_promotion_response>
    <promotion_url>https://s.click.aliexpress.com/e/aaaa</promotion_url>
    <is_success>true</is_success>
    <result_code></result_code>
    <result_msg></result_msg>
</aliexpress_social_item_promotion_response>

异常示例

  • XML示例
  • JSON示例
1
2
3
4
5
6
<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

返回
顶部