对已经存在的计划,更新出价(全站推场景,使用前请咨询)
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|
top_service_context | TopServiceContext | 必须 | topServiceContext | ||||||||
|
|||||||||||
campaign_bid_list_v_o | CampaignBidListVO | 必须 | campaignBidListVO | ||||||||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
top_result | TopResult | 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 92 93 94 95 96 97 98 99 100 101 102 103 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); UniversalbpNewCampaignOnebpsiteBatchupdateRequest req = new UniversalbpNewCampaignOnebpsiteBatchupdateRequest(); UniversalbpNewCampaignOnebpsiteBatchupdateRequest.TopServiceContext obj1 = new UniversalbpNewCampaignOnebpsiteBatchupdateRequest.TopServiceContext(); obj1.setBizCode( "xxxxx" ); obj1.setLoginType(1L); obj1.setMemberId(12345L); obj1.setExt( "{}" ); req.setTopServiceContext(obj1); UniversalbpNewCampaignOnebpsiteBatchupdateRequest.CampaignBidListVO obj2 = new UniversalbpNewCampaignOnebpsiteBatchupdateRequest.CampaignBidListVO(); List<UniversalbpNewCampaignOnebpsiteBatchupdateRequest.CampaignBidCommandVO> list4 = new ArrayList<UniversalbpNewCampaignOnebpsiteBatchupdateRequest.CampaignBidCommandVO>(); UniversalbpNewCampaignOnebpsiteBatchupdateRequest.CampaignBidCommandVO obj5 = new UniversalbpNewCampaignOnebpsiteBatchupdateRequest.CampaignBidCommandVO(); list4.add(obj5); obj5.setCampaignId(68796878069L); obj5.setBidType( "max_amount" ); obj5.setColdBoot(1L); obj5.setOptimizeTarget( "conv" ); obj5.setConstraintType( "元/次点击" ); obj5.setConstraintValue( "3" ); UniversalbpNewCampaignOnebpsiteBatchupdateRequest.CampaignOcpcCommandVO obj7 = new UniversalbpNewCampaignOnebpsiteBatchupdateRequest.CampaignOcpcCommandVO(); obj7.setEnableOcpc( true ); obj7.setOcpcRatio(200L); list6.setCampaignOcpc(obj7); List<UniversalbpNewCampaignOnebpsiteBatchupdateRequest.CrowdRefCommandVO> list10 = new ArrayList<UniversalbpNewCampaignOnebpsiteBatchupdateRequest.CrowdRefCommandVO>(); UniversalbpNewCampaignOnebpsiteBatchupdateRequest.CrowdRefCommandVO obj11 = new UniversalbpNewCampaignOnebpsiteBatchupdateRequest.CrowdRefCommandVO(); list10.add(obj11); obj11.setCampaignId(68799007001L); obj11.setAdgroupId(68796878061L); obj11.setCrowdId(5526396502L); obj11.setOnlineStatus(1L); UniversalbpNewCampaignOnebpsiteBatchupdateRequest.CrowdCommandVO obj13 = new UniversalbpNewCampaignOnebpsiteBatchupdateRequest.CrowdCommandVO(); obj13.setCrowdId(5526396502L); obj13.setCrowdName( "目标人群扩展" ); obj13.setCrowdValue( "2191820003" ); obj13.setTargetType(130L); UniversalbpNewCampaignOnebpsiteBatchupdateRequest.LabelCommandVO obj14 = new UniversalbpNewCampaignOnebpsiteBatchupdateRequest.LabelCommandVO(); obj14.setTargetType(131L); obj14.setLabelId(3000494L); obj14.setLabelName( "关键词" ); obj14.setLabelDesc( "关键词" ); obj14.setLabelValue( "2000112" ); List<UniversalbpNewCampaignOnebpsiteBatchupdateRequest.OptionCommandVO> list16 = new ArrayList<UniversalbpNewCampaignOnebpsiteBatchupdateRequest.OptionCommandVO>(); UniversalbpNewCampaignOnebpsiteBatchupdateRequest.OptionCommandVO obj17 = new UniversalbpNewCampaignOnebpsiteBatchupdateRequest.OptionCommandVO(); list16.add(obj17); obj17.setOptionName( "人群特征继承" ); obj17.setOptionValue( "2000123" ); obj17.setTagId(100000L); UniversalbpNewCampaignOnebpsiteBatchupdateRequest.LabelOptionProperties obj19 = new UniversalbpNewCampaignOnebpsiteBatchupdateRequest.LabelOptionProperties(); obj19.setDmpOptionGroupId( "1001" ); obj19.setCateName( "714616513841" ); obj19.setCateId( "714616513841" ); list18.setLabelOptionProperties(obj19); obj17.setSubValueList( "183" ); obj14.setOptionList(list16); UniversalbpNewCampaignOnebpsiteBatchupdateRequest.LabelOptionProperties obj20 = new UniversalbpNewCampaignOnebpsiteBatchupdateRequest.LabelOptionProperties(); obj20.setDmpOptionGroupId( "1001" ); obj20.setCateName( "714616513841" ); obj20.setCateId( "714616513841" ); obj14.setLabelOptionProperties(obj20); obj14.setTargetValue(11111L); obj13.setLabel(obj14); obj13.setLookalikeMultiple( "1" ); List<UniversalbpNewCampaignOnebpsiteBatchupdateRequest.ExtendSeedCrowdRefCommandVO> list22 = new ArrayList<UniversalbpNewCampaignOnebpsiteBatchupdateRequest.ExtendSeedCrowdRefCommandVO>(); UniversalbpNewCampaignOnebpsiteBatchupdateRequest.ExtendSeedCrowdRefCommandVO obj23 = new UniversalbpNewCampaignOnebpsiteBatchupdateRequest.ExtendSeedCrowdRefCommandVO(); list22.add(obj23); UniversalbpNewCampaignOnebpsiteBatchupdateRequest.ExtendSeedCrowdCommandVO obj25 = new UniversalbpNewCampaignOnebpsiteBatchupdateRequest.ExtendSeedCrowdCommandVO(); obj25.setCrowdId(5536708993L); obj25.setCrowdName( "喜欢店铺新品的访客" ); UniversalbpNewCampaignOnebpsiteBatchupdateRequest.ExtendSeedLabelCommandVO obj26 = new UniversalbpNewCampaignOnebpsiteBatchupdateRequest.ExtendSeedLabelCommandVO(); obj26.setLabelId(3000494L); obj26.setLabelName( "关键词" ); List<UniversalbpNewCampaignOnebpsiteBatchupdateRequest.ExtendSeedOptionCommandVO> list28 = new ArrayList<UniversalbpNewCampaignOnebpsiteBatchupdateRequest.ExtendSeedOptionCommandVO>(); UniversalbpNewCampaignOnebpsiteBatchupdateRequest.ExtendSeedOptionCommandVO obj29 = new UniversalbpNewCampaignOnebpsiteBatchupdateRequest.ExtendSeedOptionCommandVO(); list28.add(obj29); obj29.setOptionName( "人群特征继承" ); obj29.setOptionValue( "2000123" ); obj29.setTagId(100000L); obj26.setOptionList(list28); obj25.setLabel(obj26); list24.setCrowd(obj25); obj13.setExtendSeedCrowdList(list22); list12.setCrowd(obj13); UniversalbpNewCampaignOnebpsiteBatchupdateRequest.PriceCommandVO obj31 = new UniversalbpNewCampaignOnebpsiteBatchupdateRequest.PriceCommandVO(); obj31.setBidPrice( "30" ); obj31.setDiscount( "30" ); list30.setPrice(obj31); list8.setCrowdList(list10); List<UniversalbpNewCampaignOnebpsiteBatchupdateRequest.AdzoneRefCommandVO> list34 = new ArrayList<UniversalbpNewCampaignOnebpsiteBatchupdateRequest.AdzoneRefCommandVO>(); UniversalbpNewCampaignOnebpsiteBatchupdateRequest.AdzoneRefCommandVO obj35 = new UniversalbpNewCampaignOnebpsiteBatchupdateRequest.AdzoneRefCommandVO(); list34.add(obj35); obj35.setAdzoneId(111287850198L); obj35.setCampaignId(68796878069L); obj35.setDiscount(3L); obj35.setStatus( "start" ); list32.setAdzoneList(list34); obj5.setCrowdDiscount(30L); obj5.setWordPrice( "30" ); obj5.setBidTypeV2( "smart_bid" ); obj5.setBidTargetV2( "conv" ); obj5.setSetSingleCostV2( true ); obj2.setBidList(list4); req.setCampaignBidListVO(obj2); UniversalbpNewCampaignOnebpsiteBatchupdateResponse 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 25 26 27 | < universalbp_new_campaign_onebpsite_batchupdate_response > < top_result > < info > < ok >true</ ok > < message >参数错误</ message > < error_code >xxxxx</ error_code > </ info > < campaign_bid_update_result_v_o_top_part_data > < count >10</ count > < campaign_bid_update_result_v_o_list > < campaign_bid_update_result_v_o > < campaign_id >68796878069</ campaign_id > </ campaign_bid_update_result_v_o > </ campaign_bid_update_result_v_o_list > < error_count >10</ error_count > < error_details > < top_fail_result > < code >xxxxx</ code > < msg >xxxxx</ msg > < result > < campaign_id >68796878069</ campaign_id > </ result > </ top_fail_result > </ error_details > </ campaign_bid_update_result_v_o_top_part_data > </ top_result > </ universalbp_new_campaign_onebpsite_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 > |
错误码 | 错误描述 | 解决方案 |
---|