Sorry,I got wrong idea earlier. I delete criterionCpcBid.getBid().getMicroAmount() from my code. Then, it works as my wish!
Thank you for your help! Kanek3 :-) On Tuesday, November 29, 2016 at 2:03:22 AM UTC+9, Shwetha Vastrad (AdWords API Team) wrote: > > Hi, > > To remove a bid from a BiddingStrategyConfiguration > <https://developers.google.com/adwords/api/docs/reference/v201609/AdGroupCriterionService.BiddingStrategyConfiguration#bids>, > > you need to update its bid field to a Money > <https://developers.google.com/adwords/api/docs/reference/latest/CampaignService.Money> > object > with microAmount set to 0. When you use the example provided here > <https://developers.google.com/adwords/api/docs/samples/java/basic-operations#update-a-keyword> > to > clear the bid this way, you'll encounter NullPointerException as the > criterionCpcBid > <https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201609/basicoperations/UpdateKeyword.java#L102> > is > assigned a value when the CpcBidSource is "CRITERION" and is otherwise > null. When the operation to clear the bid is successful, the CpcBidSource > is "ADGROUP" so criterionCpcBid will not be assigned a value. You need to > modify the example to account for this when the response is processed. > > Let me know if this works. > > Regards, > Shwetha, AdWords API Team. > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/06184fb7-e7d9-44ad-bc86-3c8f57fa6f1f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
