Monday, 28 November 2016

Re: How I clear CPC for Keyword in AdWords API (Java/v201609)?

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, you need to update its bid field to a Money object with microAmount set to 0. When you use the example provided here to clear the bid this way, you'll encounter NullPointerException as the criterionCpcBid 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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@googlegroups.com
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 adwords-api+unsubscribe@googlegroups.com.
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.

No comments:

Post a Comment