素材报表
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
top_service_context | TopServiceContext | 必须 | topServiceContext | ||||||||
|
|||||||||||
material_report_query_v_o | MaterialReportQueryVO | 必须 | materialReportQueryVO | ||||||||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
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 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); UniversalbpNewCreativeReportMaterialRequest req = new UniversalbpNewCreativeReportMaterialRequest(); UniversalbpNewCreativeReportMaterialRequest.TopServiceContext obj1 = new UniversalbpNewCreativeReportMaterialRequest.TopServiceContext(); obj1.setBizCode( "xxxxx" ); obj1.setLoginType(1L); obj1.setMemberId(12345L); obj1.setExt( "{}" ); req.setTopServiceContext(obj1); UniversalbpNewCreativeReportMaterialRequest.MaterialReportQueryVO obj2 = new UniversalbpNewCreativeReportMaterialRequest.MaterialReportQueryVO(); obj2.setCreativeId(6843262308L); obj2.setCreativeIdList( new Long[] { 6843262308 }; ); obj2.setMaterialType( "title" ); obj2.setCampaignIdInList( new Long[] { 7843262308 }; ); obj2.setAdgroupIdInList( new Long[] { 6943262308 }; ); UniversalbpNewCreativeReportMaterialRequest.RptQueryVO obj3 = new UniversalbpNewCreativeReportMaterialRequest.RptQueryVO(); obj3.setFields( "adPv,click,charge,ctr,ecpc,ecpm" ); List<UniversalbpNewCreativeReportMaterialRequest.RptQueryConditionVO> list5 = new ArrayList<UniversalbpNewCreativeReportMaterialRequest.RptQueryConditionVO>(); UniversalbpNewCreativeReportMaterialRequest.RptQueryConditionVO obj6 = new UniversalbpNewCreativeReportMaterialRequest.RptQueryConditionVO(); list5.add(obj6); obj6.setStartTime( "2023-10-08" ); obj6.setEndTime( "2023-10-08" ); obj6.setAdzonePkgIdList( "" 114790550288 ", " 114790550289 ", " 114793500012 ", " 114786650498 "" ); obj6.setIsRt( true ); obj6.setUnifyType( "zhai" ); obj6.setSourceList( "" campaign_detail "," adgroup_list "" ); obj3.setConditionList(list5); obj2.setRptQuery(obj3); obj2.setEndTime( "2023-06-12" ); obj2.setStartTime( "2023-06-06" ); req.setMaterialReportQueryVO(obj2); UniversalbpNewCreativeReportMaterialResponse 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 | < universalbp_new_creative_report_material_response > < top_result > < info > < ok >true</ ok > < message >参数错误</ message > < error_code >xxxxx</ error_code > </ info > < creative_v_o > < 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 > < media_material_count >5</ media_material_count > </ creative_v_o > </ top_result > </ universalbp_new_creative_report_material_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 > |
错误码 | 错误描述 | 解决方案 |
---|