修改指定计划、单元上的人群的出价
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
top_service_context | TopServiceContext | 必须 | topServiceContext | ||||||||
|
|||||||||||
data_list | CrowdRefCommandVo | 必须 | list | ||||||||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | 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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); UniversalbpCrowdHorizontalModifybidpriceRequest req = new UniversalbpCrowdHorizontalModifybidpriceRequest(); UniversalbpCrowdHorizontalModifybidpriceRequest.TopServiceContext obj1 = new UniversalbpCrowdHorizontalModifybidpriceRequest.TopServiceContext(); obj1.setBizCode( "xxxxx" ); req.setTopServiceContext(obj1); UniversalbpCrowdHorizontalModifybidpriceRequest.CrowdRefCommandVo obj2 = new UniversalbpCrowdHorizontalModifybidpriceRequest.CrowdRefCommandVo(); obj2.setCampaignId(68799007001L); obj2.setAdgroupId(68796878061L); obj2.setCrowdId(5526396502L); obj2.setOnlineStatus(1L); UniversalbpCrowdHorizontalModifybidpriceRequest.CrowdCommandVo obj3 = new UniversalbpCrowdHorizontalModifybidpriceRequest.CrowdCommandVo(); obj3.setCrowdId(5526396502L); obj3.setCrowdName( "目标人群扩展" ); obj3.setCrowdValue( "2191820003" ); obj3.setTargetType(130L); UniversalbpCrowdHorizontalModifybidpriceRequest.LabelCommandVo obj4 = new UniversalbpCrowdHorizontalModifybidpriceRequest.LabelCommandVo(); obj4.setTargetType(131L); obj4.setLabelId(3000494L); obj4.setLabelName( "关键词" ); obj4.setLabelDesc( "关键词" ); obj4.setLabelValue( "2000112" ); List<UniversalbpCrowdHorizontalModifybidpriceRequest.OptionCommandVo> list6 = new ArrayList<UniversalbpCrowdHorizontalModifybidpriceRequest.OptionCommandVo>(); UniversalbpCrowdHorizontalModifybidpriceRequest.OptionCommandVo obj7 = new UniversalbpCrowdHorizontalModifybidpriceRequest.OptionCommandVo(); list6.add(obj7); obj7.setOptionName( "人群特征继承" ); obj7.setOptionValue( "2000123" ); obj7.setTagId(100000L); UniversalbpCrowdHorizontalModifybidpriceRequest.LabelOptionProperties obj9 = new UniversalbpCrowdHorizontalModifybidpriceRequest.LabelOptionProperties(); obj9.setDmpOptionGroupId( "1001" ); obj9.setCateName( "714616513841" ); obj9.setCateId( "714616513841" ); list8.setLabelOptionProperties(obj9); obj4.setOptionList(list6); UniversalbpCrowdHorizontalModifybidpriceRequest.LabelOptionProperties obj10 = new UniversalbpCrowdHorizontalModifybidpriceRequest.LabelOptionProperties(); obj10.setDmpOptionGroupId( "1001" ); obj10.setCateName( "714616513841" ); obj10.setCateId( "714616513841" ); obj4.setLabelOptionProperties(obj10); obj3.setLabel(obj4); obj3.setLookalikeMultiple( "1" ); List<UniversalbpCrowdHorizontalModifybidpriceRequest.ExtendSeedCrowdRefCommandVo> list12 = new ArrayList<UniversalbpCrowdHorizontalModifybidpriceRequest.ExtendSeedCrowdRefCommandVo>(); UniversalbpCrowdHorizontalModifybidpriceRequest.ExtendSeedCrowdRefCommandVo obj13 = new UniversalbpCrowdHorizontalModifybidpriceRequest.ExtendSeedCrowdRefCommandVo(); list12.add(obj13); UniversalbpCrowdHorizontalModifybidpriceRequest.ExtendSeedCrowdCommandVo obj15 = new UniversalbpCrowdHorizontalModifybidpriceRequest.ExtendSeedCrowdCommandVo(); obj15.setCrowdId(5536708993L); obj15.setCrowdName( "喜欢店铺新品的访客" ); UniversalbpCrowdHorizontalModifybidpriceRequest.ExtendSeedLabelCommandVo obj16 = new UniversalbpCrowdHorizontalModifybidpriceRequest.ExtendSeedLabelCommandVo(); obj16.setLabelId(3000494L); obj16.setLabelName( "关键词" ); List<UniversalbpCrowdHorizontalModifybidpriceRequest.ExtendSeedOptionCommandVo> list18 = new ArrayList<UniversalbpCrowdHorizontalModifybidpriceRequest.ExtendSeedOptionCommandVo>(); UniversalbpCrowdHorizontalModifybidpriceRequest.ExtendSeedOptionCommandVo obj19 = new UniversalbpCrowdHorizontalModifybidpriceRequest.ExtendSeedOptionCommandVo(); list18.add(obj19); obj19.setOptionName( "人群特征继承" ); obj19.setOptionValue( "2000123" ); obj19.setTagId(100000L); obj16.setOptionList(list18); obj15.setLabel(obj16); list14.setCrowd(obj15); obj3.setExtendSeedCrowdList(list12); obj2.setCrowd(obj3); UniversalbpCrowdHorizontalModifybidpriceRequest.PriceCommandVo obj20 = new UniversalbpCrowdHorizontalModifybidpriceRequest.PriceCommandVo(); obj20.setBidPrice( "30" ); obj20.setDiscount( "30" ); obj2.setPrice(obj20); req.setDataList(obj2); UniversalbpCrowdHorizontalModifybidpriceResponse 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 | < universalbp_crowd_horizontal_modifybidprice_response > < result > < info > < ok >true</ ok > < message >参数错误</ message > < error_code >xxxxx</ error_code > </ info > < crowd_ref_update_result_v_o_top_bulk_data > < crowd_ref_update_result_v_o_list > < crowd_ref_update_result_vo > < campaign_id >68799007001</ campaign_id > < adgroup_id >68796878061</ adgroup_id > < crowd_id >5526396502</ crowd_id > < count >2</ count > </ crowd_ref_update_result_vo > </ crowd_ref_update_result_v_o_list > < count >1</ count > </ crowd_ref_update_result_v_o_top_bulk_data > </ result > </ universalbp_crowd_horizontal_modifybidprice_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 > |
错误码 | 错误描述 | 解决方案 |
---|