素材更新
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
biz_type | Number | 必须 | 1 | 淘宝频道 | |
scenario_type | Number | 必须 | 1 | 标的类型 | |
outer_creative_id | String | 必须 | 1234 | 渠道-创意id | |
title | String | 可选 | 长文案 | 长文案 | |
img_url | String | 可选 | https://xx.taobao.com/image.jpg | 图片url | |
h5_url | String | 可选 | https://m.taobao.com/tbopen/index.html?action=ali.open.nav&bc_fl_src=&idfa=__IDFA__&imei=__IMEI__&oaid=__OAID__&oaidMd5=__OAID_MD5__&rtaId=__REQUEST_ID__&clickId=__CLICK_ID__ | H5落地页链接 | |
ad_type | Number | 必须 | 1 | 广告类型 | |
video_url | String | 可选 | https://xx.taobao.com/video.mp4 | 视频url | |
sub_title | String | 可选 | 短文案 | 短文案 | |
creative_type | Number | 可选 | 1 | 创意类型 | |
dp_url | String | 可选 | tbopen://m.taobao.com/tbopen/index.html?action=ali.open.nav&bc_fl_src=&idfa=__IDFA__&imei=__IMEI__&oaid=__OAID__&oaidMd5=__OAID_MD5__&rtaId=__REQUEST_ID__&clickId=__CLICK_ID__ | dp链接 | |
app_id | Number | 必须 | 1 | 应用id | |
channel_id | Number | 必须 | 1234 | 渠道id | |
id | Number | 必须 | 1234 | 创意id | |
hot_event | Number | 必须 | 0 | 热点事件 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
trace_id | String | 12353324 | 鹰眼id |
response_code | Number | 6 | 参数错误 |
data | String | 1234 | 更新创意的id |
message | String | 参数错误 | 错误信息 |
successful | Boolean | true | 请求结果 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); UsergrowthAdMaterialUpdateRequest req = new UsergrowthAdMaterialUpdateRequest(); req.setBizType(1L); req.setScenarioType(1L); req.setOuterCreativeId( "1234" ); req.setTitle( "长文案" ); req.setAdType(1L); req.setSubTitle( "短文案" ); req.setCreativeType(1L); req.setAppId(1L); req.setChannelId(1234L); req.setId(1234L); req.setHotEvent(0L); UsergrowthAdMaterialUpdateResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 | < usergrowth_ad_material_update_response > < trace_id >12353324</ trace_id > < response_code >6</ response_code > < data >1234</ data > < message >参数错误</ message > < successful >true</ successful > </ usergrowth_ad_material_update_response > |
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 > |
错误码 | 错误描述 | 解决方案 |
---|