Change CPC bid for Shopping Product Group

47 views
Skip to first unread message

Mahantesh Patil

unread,
Feb 17, 2015, 7:18:48 AM2/17/15
to adwor...@googlegroups.com
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

Josh Radcliff (AdWords API Team)

unread,
Feb 26, 2015, 4:49:59 PM2/26/15
to adwor...@googlegroups.com
Hi Mahantesh,

Please read through my answer on this post and let me know if you still have any questions.

Thanks,
Josh, AdWords API Team
Reply all
Reply to author
Forward
0 new messages