推词
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
top_context | TopContextDto | 必须 | 用户信息 | ||||||||
|
|||||||||||
recommend_query | RecommendKeywordQueryDTO | 必须 | 推词请求实体类 | ||||||||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result_list | AdRecommendWordDTO [] | 推词返回实体类 | |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaScbpAdKeywordRecommendWordRequest req = new AlibabaScbpAdKeywordRecommendWordRequest(); AlibabaScbpAdKeywordRecommendWordRequest.TopContextDto obj1 = new AlibabaScbpAdKeywordRecommendWordRequest.TopContextDto(); obj1.setProductLineId(110101L); obj1.setProductId(110101010L); req.setTopContext(obj1); AlibabaScbpAdKeywordRecommendWordRequest.RecommendKeywordQueryDTO obj2 = new AlibabaScbpAdKeywordRecommendWordRequest.RecommendKeywordQueryDTO(); obj2.setSearchType(1L); obj2.setCampaignId(15488545L); obj2.setExactMatch( false ); obj2.setKeyword( "test" ); obj2.setOrderBy( "keyword" ); obj2.setOrder( "asc" ); obj2.setGroupId(154878L); req.setRecommendQuery(obj2); AlibabaScbpAdKeywordRecommendWordResponse 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 | < alibaba_scbp_ad_keyword_recommend_word_response > < result_list > < ad_recommend_word_d_t_o > < keyword >test</ keyword > < normal_word >TEST</ normal_word > < search_index >59</ search_index > < buy_index >89</ buy_index > < star >5</ star > < best_product_id >1548787</ best_product_id > < suggest_price >12.3</ suggest_price > < avg_price >12.0</ avg_price > < base_price >11.5</ base_price > </ ad_recommend_word_d_t_o > </ result_list > </ alibaba_scbp_ad_keyword_recommend_word_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 > |
错误码 | 错误描述 | 解决方案 |
---|