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.

Reply via email to