I tried and succeeded at create CPC for keyword just that
https://developers.google.com/adwords/api/docs/samples/java/basic-operations#update-a-keyword
When I want to clear this CPC without remove keyword, how I can do that?
I tried
Operator.REMOVE at AdGroupCriterionOperation
result... clear CPC with remove Keyword.
I tried too
Operator.SET at AdGroupCriterionOperation
Keyword keyword = new Keyword();
keyword.setId(*keywordId*);
BiddableAdGroupCriterion biddableAdGroupCriterion = new
BiddableAdGroupCriterion();
biddableAdGroupCriterion.setAdGroupId(*adGroupId*);
biddableAdGroupCriterion.setCriterion(keyword);
BiddingStrategyConfiguration biddingStrategyConfiguration = new
BiddingStrategyConfiguration();
CpcBid bid = new CpcBid();
bid.setBid(new Money(null, *amount*));
biddingStrategyConfiguration.setBids(new Bids[] {bid});
biddableAdGroupCriterion.setBiddingStrategyConfiguration(
biddingStrategyConfiguration);
result... update CPC in new amount
and replace bids
biddingStrategyConfiguration.setBids(new Bids[]{});
result... no change
biddingStrategyConfiguration.setBids(new Bids[]{new CpcBid()});
result... no change
change bid to null
bid.setBid(null);
result... NullPointException
change Money.microAmount
new Money(null, null);
result... NullPointException
new Money(null, 0);
result... NullPointException
new Money(null, -1);
result... BiddingErrors.BID_TOO_SMALL
Let me know how to clear keyword cpc from AdGroupCriterion please
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/a74b0f79-8a5b-4001-90f2-19e428c1b32e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.