Hi,
I am using php sdk for change of adgroup bid using AdGroupCriterionService. 
I wanted to know that how can i finds out which adgroup bid change is 
successful and which one are not when i get 
DatabaseError.CONCURRENT_MODIFICATION. I only get SoapFault exception. Here 
is my code i am using to mutate the objects

$adProductService = $user->GetService('AdGroupCriterionService', 
ADWORDS_VERSION);
$oneProductGroup = new \BiddableAdGroupCriterion();

$oneProductGroup->adGroupId = $ad_group_id;
$oneProductGroup->criterion = new \Criterion($oneChangeLog->criterion_id);

$bid = new \CpcBid();

$newCpc = floatval(number_format($oneChangeLog->old_cpc, 2, '.', ''));

$newbidValue = $newCpc * \AdWordsConstants::MICROS_PER_DOLLAR;
//$newbidValue = round( $newbidValue );
$bid->bid = new \Money($newbidValue);

//$biddingStrategyConfiguration = 
$oneProductGroup->biddingStrategyConfiguration;
//p_rr($biddingStrategyConfiguration);
$biddingStrategyConfiguration = new \BiddingStrategyConfiguration();
$biddingStrategyConfiguration->bids[] = $bid;
$oneProductGroup->biddingStrategyConfiguration = 
$biddingStrategyConfiguration;

$operation = new \AdGroupCriterionOperation();
$operation->operand = $oneProductGroup;
$operation->operator = 'SET';
$operations[] = $operation;

$result = $adProductService->mutate($operations);


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/cf5ba3a8-75ab-49aa-aa91-f01b75fce8b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • API v201... mubbashar husain
    • Re:... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
      • ... mubbashar husain
    • Re:... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum

Reply via email to