Hello Santosh,
Please start a new thread with your question as this is a separate issue. We don't want to spam people on this thread with irrelevant details. -Danial, AdWords API Team. On Friday, June 20, 2014 9:51:20 AM UTC+4, [email protected] wrote: > > > hey danial, > > > I wanted to update bid(max cpc) on keywords > level(criterian) using below code but I am getting trouble that where to > set my keywords id so that I could update that cpc. > > AdGroupServiceInterface adGroupService = > adWordsServices.get(session, > AdGroupServiceInterface.class); > > BiddingStrategyConfiguration biddingStrategyConfiguration = > new BiddingStrategyConfiguration(); > CpcBid bid = new CpcBid(); > bid.setBid(new Money(null, 10000000L)); > // You can optionally provide this field. > bid.setContentBid(new Money(null, 20000000L)); > bid.setCpcBidSource(BidSource.CRITERION); > AdGroup adGroup = new AdGroup(); > biddingStrategyConfiguration.setBids(new Bids[] {bid}); > > adGroup.setBiddingStrategyConfiguration(biddingStrategyConfiguration); > > // Create operation. > AdGroupOperation operation = new AdGroupOperation(); > operation.setOperand(adGroup); > operation.setOperator(Operator.SET); > AdGroupOperation[] operations = new AdGroupOperation[] > {operation}; > > // Update ad group. > AdGroupReturnValue result = adGroupService.mutate(operations); > > > please send me updation at my mail [email protected] if possible. > > regards, > > santosh > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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]. For more options, visit https://groups.google.com/d/optout.
