Hi Anash!
Thanks for the response and the code example. It was useful.
Following up:
I'm not getting an error. The code is simply not updating the maxCPC of an existing keyword. I'm in the sand box, do you think that could cause the issue? Sandbox Behavior?
Here is a full view of the code I'm using. Perhaps, the order in which I'm executing the objects is causing the issue?
$criterion = new Criterion();
$criterion->id = $ary['criterionId'];
// Create ad group criterion.
$adGroupCriterion = new BiddableAdGroupCriterion();
$adGroupCriterion->adGroupId = $this->adGroupId;
$adGroupCriterion->criterion = new Criterion($ary['criterionId']);
$bids = new ManualCPCAdGroupCriterionBids();
$bids->maxCpc = new Bid(new Money(1000000));
$adGroupCriterion->bids = $bids;
// Create operation.
$operation = new AdGroupCriterionOperation();
$operation->operand = $adGroupCriterion;
$operation->operator = 'SET';
$operations = array($operation);
Thanks again for your assistance. It's much appreciated.
Steve