厂商生态推荐信息查询
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
suggestion_context | SuggestionContextParam | 必须 | 请求参数 | ||
|
|||||
wanted_size | Number | 必须 | 1 |
|
需要的数据量 |
名称 | 类型 | 示例值 | 描述 | ||||
---|---|---|---|---|---|---|---|
suggestions | SuggestionDTO [] | 推荐信息列表 | |||||
|
|||||||
is_offering | Boolean | true | 是否参竞 | ||||
exposure_url | String | https://wcp.taobao.com/adstrack/track.json?action=2&app=1&channel=__CHANNELID__&oaidMd5=__DEVICEID__&advertiserId=__ADVERTISERID__&adid=__ADID__&cid=__CID__&requestId=__REQUESTID__ | 列表维度曝光上报链接 | ||||
extra | ExtraDTO | 更多内容 | |||||
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); GrowthReachingSuggestionQueryRequest req = new GrowthReachingSuggestionQueryRequest(); GrowthReachingSuggestionQueryRequest.SuggestionContextParam obj1 = new GrowthReachingSuggestionQueryRequest.SuggestionContextParam(); GrowthReachingSuggestionQueryRequest.DeviceIdParam obj2 = new GrowthReachingSuggestionQueryRequest.DeviceIdParam(); obj2.setOs( "Android" ); obj2.setIsMd5( false ); obj2.setType( "oaid" ); obj2.setValue( "1fe9a970-efbb-29e0-0bdd-f5dbbf751ab5" ); obj1.setDeviceId(obj2); obj1.setSiteId( "testSite" ); obj1.setWeather( "1" ); obj1.setRegion( "杭州" ); obj1.setSex( "m" ); obj1.setAge(18L); GrowthReachingSuggestionQueryRequest.Temperature obj3 = new GrowthReachingSuggestionQueryRequest.Temperature(); obj3.setHighest( "26" ); obj3.setLowest( "18" ); obj1.setTemperature(obj3); obj1.setExtra( "isStressTest:false" ); req.setSuggestionContext(obj1); req.setWantedSize(1L); GrowthReachingSuggestionQueryResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
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 > |
错误码 | 错误描述 | 解决方案 |
---|