产品报告
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
top_context | TopContextDto | 必须 | 用户信息 | ||||||||
|
|||||||||||
product_report_operation | ProductReportOperationDto | 必须 | 请求参数 | ||||||||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | ProductReportDto | {} | 返回数据 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaScbpAdReportGetProductReportRequest req = new AlibabaScbpAdReportGetProductReportRequest(); AlibabaScbpAdReportGetProductReportRequest.TopContextDto obj1 = new AlibabaScbpAdReportGetProductReportRequest.TopContextDto(); obj1.setProductLineId(110101L); obj1.setProductId(110101010L); req.setTopContext(obj1); AlibabaScbpAdReportGetProductReportRequest.ProductReportOperationDto obj2 = new AlibabaScbpAdReportGetProductReportRequest.ProductReportOperationDto(); obj2.setKey( "test" ); obj2.setGetDetailData( "true" ); obj2.setDateBegin( "2021-01-01" ); obj2.setDateEnd( "2021-01-01" ); obj2.setDateRange(1L); obj2.setCampaignType(1L); obj2.setCampaignId(1L); obj2.setOrderField( "ctr" ); obj2.setOrderType( "asc" ); obj2.setPageIndex(1L); obj2.setPageSize(10L); req.setProductReportOperation(obj2); AlibabaScbpAdReportGetProductReportResponse 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 | < alibaba_scbp_ad_report_get_product_report_response > < result > < total_count >10</ total_count > < product_effect_list > < product_effect_dto > < product_id >110101010</ product_id > < product_name >test</ product_name > < img_url >test</ img_url > < stat_date >2021-01-01</ stat_date > < impr >1</ impr > < click >1</ click > < cost >1</ cost > < online_min >1</ online_min > </ product_effect_dto > </ product_effect_list > </ result > </ alibaba_scbp_ad_report_get_product_report_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 > |
错误码 | 错误描述 | 解决方案 |
---|