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