Hi,
  You can't set the contentBid at the AdGroupCriterion level - this is only 
allowed at the AdGroup level.

- Kevin Winter
AdWords API Team

On Wednesday, May 8, 2013 9:53:39 AM UTC-4, Sanju wrote:
>
> Hi,
>
> I am trying to update the existing contectCPC of one of my adgroupCriteria 
> but throws error saying Invalid Error.
>
>
>
> Code Follows below for refrence:
>
>
> Criterion criterion = new Criterion();
>   criterion.setId(*************);
>
> BiddableAdGroupCriterion biddableAdGroupCriterion = new 
> BiddableAdGroupCriterion();
> biddableAdGroupCriterion.setAdGroupId(adGroupId);
> biddableAdGroupCriterion.setCriterion(criterion);
>
> BiddingStrategyConfiguration biddingStrategyConfiguration = new 
> BiddingStrategyConfiguration();
> CpcBid bid = new CpcBid();
> bid.setContentBid(new Money(null, 600000L));
> biddingStrategyConfiguration.setBids(new Bids[]{bid});
>
> biddableAdGroupCriterion.setBiddingStrategyConfiguration(biddingStrategyConfiguration);
>
> // Create operations.
> AdGroupCriterionOperation operation = new AdGroupCriterionOperation();
> operation.setOperand(biddableAdGroupCriterion);
> operation.setOperator(Operator.SET);
>
> AdGroupCriterionOperation[] operations = new AdGroupCriterionOperation[] 
> {operation};
>
> // Update ad group criteria.
> AdGroupCriterionReturnValue result = 
> adGroupCriterionService.mutate(operations);
>
>
> thnx in adv
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to