编辑创意
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
top_service_context | TopServiceContext | 必须 | topServiceContext | ||||||||
|
|||||||||||
creative_command_list_v_o | CreativeCommandListVO | 必须 | creativeCommandListVO | ||||||||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
top_result | TopResult | topResult | |
|
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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); UniversalbpNewCreativeUpdateRequest req = new UniversalbpNewCreativeUpdateRequest(); UniversalbpNewCreativeUpdateRequest.TopServiceContext obj1 = new UniversalbpNewCreativeUpdateRequest.TopServiceContext(); obj1.setBizCode( "xxxxx" ); obj1.setLoginType(1L); obj1.setMemberId(12345L); obj1.setExt( "{}" ); req.setTopServiceContext(obj1); UniversalbpNewCreativeUpdateRequest.CreativeCommandListVO obj2 = new UniversalbpNewCreativeUpdateRequest.CreativeCommandListVO(); List<UniversalbpNewCreativeUpdateRequest.CreativeCommandVO> list4 = new ArrayList<UniversalbpNewCreativeUpdateRequest.CreativeCommandVO>(); UniversalbpNewCreativeUpdateRequest.CreativeCommandVO obj5 = new UniversalbpNewCreativeUpdateRequest.CreativeCommandVO(); list4.add(obj5); obj5.setCreativeId(6843262308L); obj5.setCreativeType(1L); obj5.setCreativeName( "sss" ); obj5.setSource(1L); obj5.setTpFormat(2L); obj5.setStartTime( "2023-05-29 18:00:00" ); obj5.setEndTime( "2024-05-28 17:59:00" ); obj5.setTitle( "薄荷脑软膏,测试请不要拍" ); obj5.setImagePath( "https://img.alicdn.com/imgextra/i4/2247603103/O1CN011YnDpyANl3b4vZq_!!2247603103-0-alimamacc.jpg" ); obj5.setVideoId(398436114008L); obj5.setCreativeProtection(1L); obj5.setVideoDuration( "10" ); obj5.setVideoPath( "https://a1.alibabausercontent.com/prod/feupload/user/qr/2008b520-b0ee-11ed-a2a7-412df572c89c.mp4_.mp4" ); obj5.setVideoImagePath( "https://img.alicdn.com/imgextra/i2/2247603103/O1CN01torMqR1YnDnyNTsIt_!!2247603103-0-alimamacc.jpg" ); List<UniversalbpNewCreativeUpdateRequest.ItemMaterialVO> list8 = new ArrayList<UniversalbpNewCreativeUpdateRequest.ItemMaterialVO>(); UniversalbpNewCreativeUpdateRequest.ItemMaterialVO obj9 = new UniversalbpNewCreativeUpdateRequest.ItemMaterialVO(); list8.add(obj9); obj9.setMaterialId(714616513841L); obj9.setVideoId(398436114008L); obj9.setSource(1L); obj9.setHaitangId(989898L); obj9.setFormatType(1L); obj9.setUrl( "https://img.alicdn.com/imgextra/i4/2247603103/O1CN011YnDpyANl3b4vZq_!!2247603103-0-alimamacc.jpg" ); list6.setMaterialList(list8); obj5.setCreativeSize( "513x750" ); UniversalbpNewCreativeUpdateRequest.CreativePromotionEntityVO obj11 = new UniversalbpNewCreativeUpdateRequest.CreativePromotionEntityVO(); obj11.setPromotionType( "item" ); obj11.setSubPromotionType( "item" ); obj11.setPromotionEntityId(714616513841L); UniversalbpNewCreativeUpdateRequest.PromotionMaterialInfoVO obj12 = new UniversalbpNewCreativeUpdateRequest.PromotionMaterialInfoVO(); obj12.setMaterialId(714616513841L); obj12.setImgUrl( "//img.alicdn.com/bao/uploaded/i1/3838159498/O1CN013BTEpu2K28f5CkcgG_!!3838159498.jpg" ); obj12.setMaterialName( "yiliantest测试请不要拍22" ); obj12.setTitle( "yiliantest测试请不要拍22" ); obj11.setMaterial(obj12); list10.setCreativePromotionEntity(obj11); obj5.setTemplateData("{ \"_creationType\": { \"selectedOption\": \"video\" }, \"_apng\": \"https: //a1.alicdn.com/assets/%E6%B4%BB%E5%8A%A8%E4%BF%83%E9%94%80%E5%80%BE%E5%90%91/%E6%B5%81%E6%98%9F%E9%9B%A8.png\", \"image\": \"https: //img.alicdn.com/imgextra/i2/2247603103/O1CN01cHB4B71YnDo0G1MBV_!!2247603103-0-alimamacc.jpg\" }"); obj5.setJsInHtml( "https://kb-render.alicdn.com/html/208565/2023/02/20/9976a3a6-fb588e85-225600921.html" ); obj5.setOuterId(225349579L); obj5.setCreativeCenterId( "225349579" ); obj5.setItemIdList( new Long[] { 679056995041 }; ); obj5.setClickurlMediaTypeList( "1" ); obj5.setTabType( "2" ); obj5.setTemplateId(2000000000L); obj5.setCampaignId(68796878069L); obj5.setAdgroupId(68793666608L); obj5.setIsClip( false ); obj5.setMaterialGroupId(1010L); List<UniversalbpNewCreativeUpdateRequest.MediaMaterialInfoVO> list15 = new ArrayList<UniversalbpNewCreativeUpdateRequest.MediaMaterialInfoVO>(); UniversalbpNewCreativeUpdateRequest.MediaMaterialInfoVO obj16 = new UniversalbpNewCreativeUpdateRequest.MediaMaterialInfoVO(); list15.add(obj16); obj16.setCreativeId(6843262308L); obj16.setTpFormat(2L); obj16.setStartTime(StringUtils.parseDateTime( "2024-01-01 00:00:00" )); obj16.setEndTime(StringUtils.parseDateTime( "2024-01-01 00:00:00" )); obj16.setEffectiveTime(StringUtils.parseDateTime( "2024-01-01 00:00:00" )); obj16.setExpireTime(StringUtils.parseDateTime( "2024-01-01 00:00:00" )); obj16.setMaterialName( "宝贝xxx名称" ); obj16.setOuterId(1011L); obj16.setSource(1L); obj16.setTag( "tag名称" ); obj16.setItemId(6843262308L); obj16.setImagePosition(1L); obj16.setVideoId(1012L); obj16.setWidth(200L); obj16.setHeight(400L); obj16.setSyncKey( "xxxxx" ); obj16.setImageId(101L); obj16.setMaterialType( "title" ); obj16.setMaterialId(714894818852L); obj16.setHaitangSource(1L); obj16.setReportInfo( "" ); list13.setMediaMaterialList(list15); List<UniversalbpNewCreativeUpdateRequest.TextMaterialInfoVO> list19 = new ArrayList<UniversalbpNewCreativeUpdateRequest.TextMaterialInfoVO>(); UniversalbpNewCreativeUpdateRequest.TextMaterialInfoVO obj20 = new UniversalbpNewCreativeUpdateRequest.TextMaterialInfoVO(); list19.add(obj20); obj20.setCreativeId(6843262308L); obj20.setMaterialId(714894818852L); obj20.setItemId(6843262308L); obj20.setStartTime(StringUtils.parseDateTime( "2024-01-01 00:00:00" )); obj20.setEndTime(StringUtils.parseDateTime( "2024-01-01 00:00:00" )); obj20.setEffectiveTime(StringUtils.parseDateTime( "2024-01-01 00:00:00" )); obj20.setExpireTime(StringUtils.parseDateTime( "2024-01-01 00:00:00" )); obj20.setContentType( "title" ); obj20.setContent( "xxxxxx" ); obj20.setMaterialType( "title" ); obj20.setSource(2L); obj20.setReportInfo( "" ); list17.setTitleMaterialList(list19); obj2.setCreativeList(list4); req.setCreativeCommandListVO(obj2); UniversalbpNewCreativeUpdateResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 | < universalbp_new_creative_update_response > < top_result > < info > < ok >true</ ok > < message >参数错误</ message > < error_code >xxxxx</ error_code > </ info > < top_creative_v_o > < creative_list > < creative_v_o > < creative_id >6843262308</ creative_id > < creative_name >sss</ creative_name > < adgroup_id >68796878061</ adgroup_id > < creative_type >1</ creative_type > < source >1</ source > < creative_center_id >225349579</ creative_center_id > < format >2</ format > < material_list > < item_material_v_o > < material_id >714616513841</ material_id > < video_id >398436114008</ video_id > < source >1</ source > < haitang_id >989898</ haitang_id > < format_type >1</ format_type > < url >https://img.alicdn.com/imgextra/i4/2247603103/O1CN011YnDpyANl3b4vZq_!!2247603103-0-alimamacc.jpg</ url > </ item_material_v_o > </ material_list > < template_id >2000000000</ template_id > < outer_id >225349579</ outer_id > < js_in_html >https://kb-render.alicdn.com/html/208565/2023/02/20/9976a3a6-fb588e85-225600921.html</ js_in_html > < template_data >{ "_creationType": { "selectedOption": "video" }, "_apng": "https://a1.alicdn.com/assets/%E6%B4%BB%E5%8A%A8%E4%BF%83%E9%94%80%E5%80%BE%E5%90%91/%E6%B5%81%E6%98%9F%E9%9B%A8.png", "image": "https://img.alicdn.com/imgextra/i2/2247603103/O1CN01cHB4B71YnDo0G1MBV_!!2247603103-0-alimamacc.jpg" }</ template_data > < clickurl_media_type_list > < string >[1]</ string > </ clickurl_media_type_list > < audit > < status >W</ status > < audit_status >2</ audit_status > < effective_time >2023-05-29 18:21:40</ effective_time > < expire_time >2999-12-31 23:59:59</ expire_time > < audit_reason >直播已结束,结束后创意自动变为审核拒绝状态</ audit_reason > </ audit > < adzone_audit_result_list > < audit_v_o > < status >W</ status > < audit_status >2</ audit_status > < effective_time >2023-05-29 18:21:40</ effective_time > < expire_time >2999-12-31 23:59:59</ expire_time > < audit_reason >直播已结束,结束后创意自动变为审核拒绝状态</ audit_reason > </ audit_v_o > </ adzone_audit_result_list > < preview_list > < creative_adzone_preview_v_o > < adzone_type >1</ adzone_type > < adzone_name >全屏微详情</ adzone_name > < adzone_id >111287850198</ adzone_id > < preview_data_list > < creative_preview_result_v_o > < preview_format >2</ preview_format > < preview_size >342x530</ preview_size > < preview_scale >0.5</ preview_scale > < preview_video_path >342x530</ preview_video_path > < preview_video_image >342x530</ preview_video_image > </ creative_preview_result_v_o > </ preview_data_list > </ creative_adzone_preview_v_o > </ preview_list > < creative_size >513x750</ creative_size > < item_videos > < item_video_v_o > < poster >https://img.alicdn.com/imgextra/i3/2208746800922/O1CN01kOmOXg1IgJwyU0HAt_!!2208746800922-0-alimamacc.jpg</ poster > < item_id >708275631127</ item_id > < video_url >https://cloud.video.taobao.com/play/u/167873659/p/2/e/6/t/1/412089156502.mp4?sBizCode=alimama_tuijian.mp4</ video_url > < audit_state >1</ audit_state > < audit_desc >xxxxx</ audit_desc > < video_id >415780011227</ video_id > < source >1</ source > < type >1</ type > < width >800</ width > < height >1200</ height > < duration >32</ duration > < haitang_id >989898</ haitang_id > </ item_video_v_o > </ item_videos > < online_status >1</ online_status > < start_time >2023-05-29 18:00:00</ start_time > < end_time >2024-05-28 17:59:00</ end_time > < create_time >2023-05-29 18:21:40</ create_time > < update_time >2023-05-29 18:21:40</ update_time > < creative_promotion_entity > < promotion_type >item</ promotion_type > < sub_promotion_type >item</ sub_promotion_type > < promotion_entity_id >714616513841</ promotion_entity_id > < material > < material_id >714616513841</ material_id > < img_url >//img.alicdn.com/bao/uploaded/i1/3838159498/O1CN013BTEpu2K28f5CkcgG_!!3838159498.jpg</ img_url > < material_name >yiliantest测试请不要拍22</ material_name > < title >yiliantest测试请不要拍22</ title > </ material > </ creative_promotion_entity > < extend_data >https://kb-render.alicdn.com/html/208565/2023/02/20/9976a3a6-fb588e85-225600921.html</ extend_data > < material_image_info > < material_id >714616513841</ material_id > < sync_key >xxxx</ sync_key > < image_position >0</ image_position > < img_url >https://img.alicdn.com/bao/uploaded/i1/3838159498/O1CN013BTEpu2K28f5CkcgG_!!3838159498.jpg</ img_url > < material_name >外投宝贝测试,请不要拍</ material_name > < image_id >101</ image_id > < size >800*800</ size > < width >800</ width > < height >800</ height > < image_properties >xxxxx</ image_properties > </ material_image_info > < title >薄荷脑软膏,测试请不要拍</ title > < image_path >https://img.alicdn.com/imgextra/i4/2247603103/O1CN011YnDpyANl3b4vZq_!!2247603103-0-alimamacc.jpg</ image_path > < video_id >398436114008</ video_id > < video_duration >10</ video_duration > < video_path >https://a1.alibabausercontent.com/prod/feupload/user/qr/2008b520-b0ee-11ed-a2a7-412df572c89c.mp4_.mp4</ video_path > < video_image_path >https://img.alicdn.com/imgextra/i2/2247603103/O1CN01torMqR1YnDnyNTsIt_!!2247603103-0-alimamacc.jpg</ video_image_path > < item_id_list > < number >[679056995041]</ number > </ item_id_list > < children > < creative_children_v_o > < material_list > < item_material_v_o > < material_id >714616513841</ material_id > < video_id >398436114008</ video_id > < source >1</ source > < haitang_id >989898</ haitang_id > < format_type >1</ format_type > < url >https://img.alicdn.com/imgextra/i4/2247603103/O1CN011YnDpyANl3b4vZq_!!2247603103-0-alimamacc.jpg</ url > </ item_material_v_o > </ material_list > </ creative_children_v_o > </ children > < tab_type >103</ tab_type > < tab_type_name >103</ tab_type_name > < type_name >自定义创意</ type_name > < type >1</ type > < main_pic_video >1</ main_pic_video > < media_material_count >5</ media_material_count > < title_material_count >5</ title_material_count > < media_material_list > < media_material_info_v_o > < creative_id >6843262308</ creative_id > < format >2</ format > < start_time >2024-01-01 00:00:00</ start_time > < end_time >2024-01-01 00:00:00</ end_time > < effective_time >2024-01-01 00:00:00</ effective_time > < expire_time >2024-01-01 00:00:00</ expire_time > < material_name >宝贝xxx名称</ material_name > < outer_id >1011</ outer_id > < source >1</ source > < tag >tag名称</ tag > < item_id >6843262308</ item_id > < image_position >1</ image_position > < video_id >1012</ video_id > < width >200</ width > < height >400</ height > < sync_key >xxxxx</ sync_key > < image_id >101</ image_id > < material_type >title</ material_type > < material_id >714894818852</ material_id > < haitang_source >1</ haitang_source > </ media_material_info_v_o > </ media_material_list > < title_material_list > < text_material_info_v_o > < creative_id >6843262308</ creative_id > < material_id >714894818852</ material_id > < item_id >6843262308</ item_id > < start_time >2024-01-01 00:00:00</ start_time > < end_time >2024-01-01 00:00:00</ end_time > < effective_time >2024-01-01 00:00:00</ effective_time > < expire_time >2024-01-01 00:00:00</ expire_time > < content_type >title</ content_type > < content >xxxxxx</ content > < material_type >title</ material_type > < source >2</ source > </ text_material_info_v_o > </ title_material_list > </ creative_v_o > </ creative_list > </ top_creative_v_o > </ top_result > </ universalbp_new_creative_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 > |
错误码 | 错误描述 | 解决方案 |
---|