Hi Jaison,

Below code snippet will work for keywords under a specific adgroup 
(ADGROUP_NAME)

var adgroup = AdWordsApp.adGroups().withCondition("Name = '" + ADGROUP_NAME 
+ "'").get().next();
var keywordIter = adgroup.keywords().get();
while (keywordIter.hasNext()) {
  var keyword = keywordIter.next();
  var oldBid = startingBids[keyword.getText()];
  if (!oldBid) {
    // If we don't have a starting bid, keyword has been added since we 
started testing.
    oldBid = keyword.getMaxCpc() || keyword.getAdGroup().getKeywordMaxCpc();
    startingBids[keyword.getText()] = oldBid;
  }
  var newBid = oldBid * multiplier;
  keyword.setMaxCpc(newBid);
}

Regards,
Varta



On Monday, December 16, 2013 6:23:48 PM UTC+5:30, jaison....@gmail.com 
wrote:
>
> Hi,
>
> Can someone give me a few pointers on how I can go about modifying a 
> specific keyword bid for a particular AdGroup.
>
> Thanks
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.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 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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to