Hi, The PHP client library contains a few examples that should help.
1. AddAdGroups.php <https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201409/BasicOperations/AddAdGroups.php> shows how to create an ad group and set its max CPC bid to 1,000,000 micros (e.g., $1 if the account uses US currency). 2. AddKeywords.php <https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201409/BasicOperations/AddKeywords.php> shows how to add a keyword with a max CPC bid of 5,000,000 micros (e.g., $5 if the account uses US currency). In both cases, you simply need to set up a BiddingStrategyConfiguration <https://developers.google.com/adwords/api/docs/reference/v201409/AdGroupCriterionService.BiddingStrategyConfiguration> with the appropriate bids <https://developers.google.com/adwords/api/docs/reference/v201409/AdGroupCriterionService.BiddingStrategyConfiguration#bids> collection. If you have existing ad groups or keywords where you want to update the bid, you can pass in the same information with the *SET* operator (see UpdateAdGroup.php <https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201409/BasicOperations/UpdateAdGroup.php> ). Also, you mentioned setting the max *content* CPC. Just to be clear, on a given campaign you won't be able to set up a different bid for *Search* vs. *Display* (content) network. The bidding options for the different campaign types are as follows: - *Search Network only* - Manual and automated bidding on *Search* - *Search Network with Display Select* - Manual and automated bidding on *Search*, only automated bidding on *Display* (see the Help Center <https://support.google.com/adwords/answer/3437721?hl=en>) - *Display Network only* - Manual and automated bidding on *Display* Therefore, when you set the ad group or keyword's bids as described above, you won't specify if the bid is for *Search* or *Display* (content), since that will be implied by the campaign type. Cheers, Josh, AdWords API Team On Wednesday, December 17, 2014 5:42:23 PM UTC-5, marc wrote: > > > How can I set the max content cpc? I am using the PHP library and have > been unable to find anything that will perform this update. > > I'd like to set this on an adgroup, but if this isn't possible then > setting it on a keyword will work too. > > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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]. Visit this group at http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/78f13f70-9947-4e65-8b98-b84dfe942ff9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
