Max CPC Bid in Adwords API

132 views
Skip to first unread message

ppcdev...@mineeds.com

unread,
Nov 17, 2014, 12:05:18 PM11/17/14
to adwor...@googlegroups.com
Hi Guys,

I'm trying to add the max cpc bid in keyword creating level to prevent adwords use the default cpc of adgroup but unfortunately I can't find away to do that :

Please check the below code : (where I can add the max cpc bid ?)

 // Create the keyword.
                    Keyword keyword = new Keyword();
                    keyword.text = KW;
                    keyword.matchType = KeywordMatchType.BROAD;

                    // Create the biddable ad group criterion.
                    BiddableAdGroupCriterion keywordCriterion = new BiddableAdGroupCriterion();
                    keywordCriterion.adGroupId = AG_ID;
                    keywordCriterion.criterion = keyword;

                   

                    // Optional: Set the user status.
                    keywordCriterion.userStatus = UserStatus.ENABLED;

               

                    // Create the operations.
                    AdGroupCriterionOperation operation = new AdGroupCriterionOperation();
                    operation.@operator = Operator.ADD;
                    operation.operand = keywordCriterion;

                    operations.Add(operation);

 

Josh Radcliff (AdWords API Team)

unread,
Nov 17, 2014, 1:11:31 PM11/17/14
to adwor...@googlegroups.com
Hi,

Please check out the UpdateKeyword.cs example -- it shows how to set the CpcBid at the criterion (keyword) level.

Thanks,
Josh, AdWords API Team

ppcdev...@mineeds.com

unread,
Nov 17, 2014, 3:29:51 PM11/17/14
to adwor...@googlegroups.com
It works, thx :)
Reply all
Reply to author
Forward
0 new messages