对已经存在的计划,更新出价
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
top_service_context | TopServiceContext | 必须 | topServiceContext | ||||||||
|
|||||||||||
data_list | CampaignBidCommandVo | 必须 | 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 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); UniversalbpCampaignBidBatchupdateRequest req = new UniversalbpCampaignBidBatchupdateRequest(); UniversalbpCampaignBidBatchupdateRequest.TopServiceContext obj1 = new UniversalbpCampaignBidBatchupdateRequest.TopServiceContext(); obj1.setBizCode( "xxxxx" ); req.setTopServiceContext(obj1); UniversalbpCampaignBidBatchupdateRequest.CampaignBidCommandVo obj2 = new UniversalbpCampaignBidBatchupdateRequest.CampaignBidCommandVo(); obj2.setCampaignId(68796878069L); obj2.setBidType( "max_amount" ); obj2.setColdBoot(1L); obj2.setOptimizeTarget( "conv" ); obj2.setConstraintType( "元/次点击" ); obj2.setConstraintValue( "3" ); UniversalbpCampaignBidBatchupdateRequest.CampaignOcpcCommandVo obj3 = new UniversalbpCampaignBidBatchupdateRequest.CampaignOcpcCommandVo(); obj3.setEnableOcpc( true ); obj3.setOcpcRatio(200L); obj2.setCampaignOcpc(obj3); List<UniversalbpCampaignBidBatchupdateRequest.CrowdRefCommandVo> list5 = new ArrayList<UniversalbpCampaignBidBatchupdateRequest.CrowdRefCommandVo>(); UniversalbpCampaignBidBatchupdateRequest.CrowdRefCommandVo obj6 = new UniversalbpCampaignBidBatchupdateRequest.CrowdRefCommandVo(); list5.add(obj6); obj6.setCampaignId(68799007001L); obj6.setAdgroupId(68796878061L); obj6.setCrowdId(5526396502L); obj6.setOnlineStatus(1L); UniversalbpCampaignBidBatchupdateRequest.CrowdCommandVo obj8 = new UniversalbpCampaignBidBatchupdateRequest.CrowdCommandVo(); obj8.setCrowdId(5526396502L); obj8.setCrowdName( "目标人群扩展" ); obj8.setCrowdValue( "2191820003" ); obj8.setTargetType(130L); UniversalbpCampaignBidBatchupdateRequest.LabelCommandVo obj9 = new UniversalbpCampaignBidBatchupdateRequest.LabelCommandVo(); obj9.setTargetType(131L); obj9.setLabelId(3000494L); obj9.setLabelName( "关键词" ); obj9.setLabelDesc( "关键词" ); obj9.setLabelValue( "2000112" ); List<UniversalbpCampaignBidBatchupdateRequest.OptionCommandVo> list11 = new ArrayList<UniversalbpCampaignBidBatchupdateRequest.OptionCommandVo>(); UniversalbpCampaignBidBatchupdateRequest.OptionCommandVo obj12 = new UniversalbpCampaignBidBatchupdateRequest.OptionCommandVo(); list11.add(obj12); obj12.setOptionName( "人群特征继承" ); obj12.setOptionValue( "2000123" ); obj12.setTagId(100000L); UniversalbpCampaignBidBatchupdateRequest.LabelOptionProperties obj14 = new UniversalbpCampaignBidBatchupdateRequest.LabelOptionProperties(); obj14.setDmpOptionGroupId( "1001" ); obj14.setCateName( "714616513841" ); obj14.setCateId( "714616513841" ); list13.setLabelOptionProperties(obj14); obj9.setOptionList(list11); UniversalbpCampaignBidBatchupdateRequest.LabelOptionProperties obj15 = new UniversalbpCampaignBidBatchupdateRequest.LabelOptionProperties(); obj15.setDmpOptionGroupId( "1001" ); obj15.setCateName( "714616513841" ); obj15.setCateId( "714616513841" ); obj9.setLabelOptionProperties(obj15); obj8.setLabel(obj9); obj8.setLookalikeMultiple( "1" ); List<UniversalbpCampaignBidBatchupdateRequest.ExtendSeedCrowdRefCommandVo> list17 = new ArrayList<UniversalbpCampaignBidBatchupdateRequest.ExtendSeedCrowdRefCommandVo>(); UniversalbpCampaignBidBatchupdateRequest.ExtendSeedCrowdRefCommandVo obj18 = new UniversalbpCampaignBidBatchupdateRequest.ExtendSeedCrowdRefCommandVo(); list17.add(obj18); UniversalbpCampaignBidBatchupdateRequest.ExtendSeedCrowdCommandVo obj20 = new UniversalbpCampaignBidBatchupdateRequest.ExtendSeedCrowdCommandVo(); obj20.setCrowdId(5536708993L); obj20.setCrowdName( "喜欢店铺新品的访客" ); UniversalbpCampaignBidBatchupdateRequest.ExtendSeedLabelCommandVo obj21 = new UniversalbpCampaignBidBatchupdateRequest.ExtendSeedLabelCommandVo(); obj21.setLabelId(3000494L); obj21.setLabelName( "关键词" ); List<UniversalbpCampaignBidBatchupdateRequest.ExtendSeedOptionCommandVo> list23 = new ArrayList<UniversalbpCampaignBidBatchupdateRequest.ExtendSeedOptionCommandVo>(); UniversalbpCampaignBidBatchupdateRequest.ExtendSeedOptionCommandVo obj24 = new UniversalbpCampaignBidBatchupdateRequest.ExtendSeedOptionCommandVo(); list23.add(obj24); obj24.setOptionName( "人群特征继承" ); obj24.setOptionValue( "2000123" ); obj24.setTagId(100000L); obj21.setOptionList(list23); obj20.setLabel(obj21); list19.setCrowd(obj20); obj8.setExtendSeedCrowdList(list17); list7.setCrowd(obj8); UniversalbpCampaignBidBatchupdateRequest.PriceCommandVo obj26 = new UniversalbpCampaignBidBatchupdateRequest.PriceCommandVo(); obj26.setBidPrice( "30" ); obj26.setDiscount( "30" ); list25.setPrice(obj26); obj2.setCrowdList(list5); List<UniversalbpCampaignBidBatchupdateRequest.AdzoneRefCommandVo> list28 = new ArrayList<UniversalbpCampaignBidBatchupdateRequest.AdzoneRefCommandVo>(); UniversalbpCampaignBidBatchupdateRequest.AdzoneRefCommandVo obj29 = new UniversalbpCampaignBidBatchupdateRequest.AdzoneRefCommandVo(); list28.add(obj29); obj29.setAdzoneId(111287850198L); obj29.setCampaignId(68796878069L); obj29.setDiscount(3L); obj29.setStatus( "start" ); obj2.setAdzoneList(list28); obj2.setCrowdDiscount(30L); obj2.setWordPrice( "30" ); req.setDataList(obj2); UniversalbpCampaignBidBatchupdateResponse 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 21 22 23 24 | < universalbp_campaign_bid_batchupdate_response > < result > < info > < ok >true</ ok > < message >参数错误</ message > < error_code >xxxxx</ error_code > </ info > < campaign_bid_update_result_v_o_top_part_data > < count >1</ count > < campaign_bid_update_result_v_o_list > < campaign_bid_update_result_vo > < campaign_id >68796878069</ campaign_id > </ campaign_bid_update_result_vo > </ campaign_bid_update_result_v_o_list > < error_count >1</ error_count > < error_details > < top_fail_result > < code >xxxxx</ code > < msg >xxxxx</ msg > </ top_fail_result > </ error_details > </ campaign_bid_update_result_v_o_top_part_data > </ result > </ universalbp_campaign_bid_batchupdate_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 > |
错误码 | 错误描述 | 解决方案 |
---|