UD落地页创建接口
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
media_landing_page_top_dto | MediaLandingPageTopDTO | 必须 | 入参 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | MediaLandingPageTopDTO | 出参 | |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); UnideskRtaAssetsLandingpageAddRequest req = new UnideskRtaAssetsLandingpageAddRequest(); UnideskRtaAssetsLandingpageAddRequest.MediaLandingPageTopDTO obj1 = new UnideskRtaAssetsLandingpageAddRequest.MediaLandingPageTopDTO(); UnideskRtaAssetsLandingpageAddRequest.NonVerticalWechatLandingPageTopDTO obj2 = new UnideskRtaAssetsLandingpageAddRequest.NonVerticalWechatLandingPageTopDTO(); obj2.setButtonText( "text" ); obj2.setFloatImgId( "1" ); obj2.setImageId( "1" ); obj2.setTitle( "title" ); obj2.setDesc( "desc" ); obj1.setNonVerticalLandingPage(obj2); UnideskRtaAssetsLandingpageAddRequest.LandingPageTopDTO obj3 = new UnideskRtaAssetsLandingpageAddRequest.LandingPageTopDTO(); obj3.setLandingPage( "www.taobao.com" ); obj1.setLandingPage(obj3); UnideskRtaAssetsLandingpageAddRequest.VerticalWechatLandingPageTopDTO obj4 = new UnideskRtaAssetsLandingpageAddRequest.VerticalWechatLandingPageTopDTO(); obj4.setButtonText( "text" ); obj4.setFloatImgId( "1" ); obj4.setTitle( "title" ); obj4.setDesc( "desc" ); obj1.setVerticalLandingPage(obj4); obj1.setType(1L); UnideskRtaAssetsLandingpageAddRequest.WechatChannelsLandingPageTopDTO obj5 = new UnideskRtaAssetsLandingpageAddRequest.WechatChannelsLandingPageTopDTO(); obj5.setButtonText( "text" ); obj5.setTopImgId( "1" ); obj5.setMidImgId( "1" ); obj1.setWechatChannelLandingPage(obj5); obj1.setAdvertiserId(1L); obj1.setShareTitle( "title" ); UnideskRtaAssetsLandingpageAddRequest.KinetographLandingPageTopDTO obj6 = new UnideskRtaAssetsLandingpageAddRequest.KinetographLandingPageTopDTO(); obj6.setBgImgId( "1" ); obj6.setLandingPageTitle( "title" ); obj1.setKinetographLandingPage(obj6); obj1.setName( "name" ); obj1.setShareDescription( "description" ); req.setMediaLandingPageTopDto(obj1); UnideskRtaAssetsLandingpageAddResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 4 5 | < unidesk_rta_assets_landingpage_add_response > < result > < id >1</ id > </ result > </ unidesk_rta_assets_landingpage_add_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 > |
错误码 | 错误描述 | 解决方案 |
---|