Hi VIshal,

I'm tryng to do more or less the same. But in my case, I want not to create 
a new creterion I want to modify the bid adjustment from an existent 
criterion UserList 
<https://developers.google.com/adwords/api/docs/reference/v201605/AdGroupCriterionService.CriterionUserList>
 type. 

BiddableAdGroupCriterion biddableAdGroupCriterion = 
(BiddableAdGroupCriterion) page.getEntries(2); 
///the entry with index 2 comes from for (AdGroupCriterion adGroupCriterion 
: page.getEntries())  and index=2 has the following information
//Ad group criterion with ad group id "XXX91483XXX", criterion id 
"BIDDABLE", criterion use "XXX81892XXX", and type "CriterionUserList" was 
found.

        biddableAdGroupCriterion.setBidModifier(new Double(BID_MODIFIER));
        
        // Create operation.
        AdGroupCriterionOperation operation
                = new AdGroupCriterionOperation();
        operation.setOperand(biddableAdGroupCriterion);
        operation.setOperator(Operator.SET);
        AdGroupCriterionOperation[] operations = new 
AdGroupCriterionOperation[]{operation};

        AdGroupCriterionReturnValue result = 
adGroupCriterionService.mutate(operations);


However I'm getting the next error.
 faultString: 
[AdGroupCriterionError.CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY_CONFIGURATION 
@ operations[0].operand.criterion]

Any help?

On Monday, 27 June 2016 18:13:14 UTC+2, Vishal Vinayak (Adwords API Team) 
wrote:
>
> Hi Tejendra,
>
> The UpdadeKeyword java example 
> <https://github.com/googleads/googleads-java-lib/blob/master/examples/adwords_axis/src/main/java/adwords/axis/v201601/basicoperations/UpdateKeyword.java#L84>
>  describes 
> how to update the keyword bid using the AdGroupCriterionService 
> <https://developers.google.com/adwords/api/docs/reference/v201605/AdGroupCriterionService>.
>  
> Similarly you can use AdGroupService 
> <https://developers.google.com/adwords/api/docs/reference/v201605/AdGroupService>
>  to 
> update the bid 
> <https://developers.google.com/adwords/api/docs/reference/v201605/AdGroupService.AdGroup#biddingstrategyconfiguration>
>  of 
> an AdGroup. Same example is also available in other client libraries 
> <https://developers.google.com/adwords/api/docs/clientlibraries>.
>
> Regards,
> Vishal, 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+unsubscr...@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+unsubscr...@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/35ab7628-c99f-43a7-9859-be44a8412ad8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • How to do bid ad... jhufg.567484
    • Re: How to ... 'Vishal Vinayak (Adwords API Team)' via AdWords API Forum
      • Re: How... jhufg.567484
        • Re:... 'Vishal Vinayak (Adwords API Team)' via AdWords API Forum
          • ... 'David Cabanillas' via AdWords API Forum
            • ... 'Vishal Vinayak (Adwords API Team)' via AdWords API Forum

Reply via email to