Hi Mahantesh, Please read through my answer on this post <https://groups.google.com/d/msg/adwords-api/mfjStFEGYJM/xJrgRJFFzpcJ> and let me know if you still have any questions.
Thanks, Josh, AdWords API Team On Tuesday, February 17, 2015 at 7:18:48 AM UTC-5, Mahantesh Patil wrote: > > Hello: > > I have a shopping campaigns with 2 product groups: Product Group 1, > Product Group 2 > > *I want to change the CPC bid for product group 1, example from $0.50 to > $1.00* > > I am able to change the default CPC bid for the adgroup using the > following snippet.* Appreciate any pointers to adjust this snippet to > change CPC bid for product group 1* > > // Get the service, which loads the required classes. > $adGroupService = $user->GetService('AdGroupService', ADWORDS_VERSION); > > // Create ad group using an existing ID. > $adGroup = new AdGroup(); > $adGroup->id = $adGroupId; > > // Update the bid. > $microBidNew = 0.55; > $bid = new CpcBid(); > $bid->bid = new Money($microBidNew); > $biddingStrategyConfiguration = new BiddingStrategyConfiguration(); > $biddingStrategyConfiguration->bids[] = $bid; > $adGroup->biddingStrategyConfiguration = $biddingStrategyConfiguration; > > // Create operation. > $operation = new AdGroupOperation(); > $operation->operand = $adGroup; > $operation->operator = 'SET'; > > $operations = array($operation); > > Mahantesh Patil > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 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. 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/338ae7d0-861c-409e-b260-c2f1ea771d7c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.