查询ISV的打标投放任务
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
query_type | Number | 必须 | 1 | 1:查询投放活动 2:查询投放单元 | |
task_query | TaskQuery | 可选 | 查询参数 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | Result | 接口返回model | |
|
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); PicassoPictagTaskQueryRequest req = new PicassoPictagTaskQueryRequest(); req.setQueryType(1L); PicassoPictagTaskQueryRequest.TaskQuery obj1 = new PicassoPictagTaskQueryRequest.TaskQuery(); obj1.setPageNo(1L); obj1.setIsvTaskId("123"); obj1.setItemIds(new Long[] { 1,2 }; ); obj1.setActivityStatus("0,1"); obj1.setPageSize(20L); obj1.setStartTime("2020-06-01 00:00:00"); obj1.setTaskName("任务1"); obj1.setEndTime("2020-06-02 00:00:00"); obj1.setUnitStatus("0,1"); req.setTaskQuery(obj1); PicassoPictagTaskQueryResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody());
<picasso_pictag_task_query_response> <result> <success>false</success> <model> <page_unit_list> <isv_unit_dto_list> <isv_unit_dto> <item_id>524678768042</item_id> <pic_url>https://img.alicdn.com/imgextra/i1/263662065/O1CN011R7oYUjznv8pWZO_!!263662065-2-picasso.png</pic_url> <status_desc>xxx</status_desc> <item_title>气味图书馆清泉味男女士香水15ml淡香水中性香水测试宝贝请不要拍</item_title> <isv_task_id>1237</isv_task_id> <status>13</status> <price_rule> <make_up_num>1</make_up_num> <make_up_type>1</make_up_type> <sell_profit_string2>兜底文案2</sell_profit_string2> <sell_profit_string1>兜底文案1</sell_profit_string1> <use_price_rule>true</use_price_rule> <price_express_type>3</price_express_type> <sku_id>0</sku_id> </price_rule> <gmt_modified>2021-06-01 00:00:00</gmt_modified> <gmt_create>2021-06-01 00:00:00</gmt_create> <recover_msg>失败原因</recover_msg> <deliver_msg>失败原因</deliver_msg> <merge_msg>合图失败原因</merge_msg> <current_pic_url>http://xxx.jpg</current_pic_url> <src_pic_url>http://xxx.jpg</src_pic_url> <activity_name>测试活动</activity_name> <fail_msg>xxxxxx</fail_msg> </isv_unit_dto> </isv_unit_dto_list> <total_count>1</total_count> <current_page_no>1</current_page_no> </page_unit_list> <page_activity_list> <activity_dto_list> <isv_activity_dto> <template_preview_pic>https://img.alicdn.com/imgextra/i4/263662065/O1CN011R7oYKbkoRoatrf_!!263662065-2-picasso.png</template_preview_pic> <status_desc>xxx</status_desc> <isv_task_id>1237</isv_task_id> <activity_name>isv测试双11打标任务1</activity_name> <start_time>2021-06-01 00:00:00</start_time> <end_time>2021-06-20 00:00:00</end_time> <status>13</status> <price_rule> <make_up_num>1</make_up_num> <make_up_type>1</make_up_type> <sell_profit_string2>兜底文案2</sell_profit_string2> <sell_profit_string1>兜底文案1</sell_profit_string1> <use_price_rule>true</use_price_rule> <price_express_type>3</price_express_type> <sku_id>0</sku_id> </price_rule> <gmt_modified>2021-06-01 00:00:00</gmt_modified> <gmt_create>2021-06-01 00:00:00</gmt_create> <out_id>1234</out_id> <template_tag_id>123</template_tag_id> <isv_template_id>12345</isv_template_id> </isv_activity_dto> </activity_dto_list> <total_count>1</total_count> <current_page_no>1</current_page_no> </page_activity_list> <statis_result> <total_count></total_count> <status_counts> <status_count> <count></count> <status_desc></status_desc> <status></status> </status_count> </status_counts> </statis_result> </model> <msg_info>1</msg_info> <msg_code>1</msg_code> </result> </picasso_pictag_task_query_response>
<error_response> <code>50</code> <msg>Remote service error</msg> <sub_code>isv.invalid-parameter</sub_code> <sub_msg>非法参数</sub_msg> </error_response>
错误码 | 错误描述 | 解决方案 |
---|---|---|
SYSTEM_EXCEPTION | 系统异常 | 稍后重试 |
isp.service-unavailable | 服务不可用 | 稍后重试 |
isp.call-limited | 服务限流 | 降低服务调用的频率 |