Hi,

You need to catch a DatabaseError and check for error code as
CONCURRENT_MODIFICATION. See
http://code.google.com/apis/adwords/v2009/docs/reference/AdGroupCriterionService.DatabaseError.html
for details. As for details on how to catch and handle the exception
itself, you can refer to this code sample:

http://code.google.com/p/google-api-adwords-php/source/browse/trunk/examples/v201003/GetConversionOptimizerEligibility.php#93

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Jul 30, 7:43 pm, phpguy <[email protected]> wrote:
> Here is my try/catch for a concurrent modification error...does anyone
> know the error code or where I can find it?
>
> try {
> retry:
>    // Perform text ad operation
>    $operations = array($textAdGroupAdOperation1,
> $textAdGroupAdOperation2, $textAdGroupAdOperation3,
> $textAdGroupAdOperation4);
>    $result = $adGroupAdService->mutate($operations);
>
> }
>
> catch (Exception $e)
> {
>    sleep(10);
>    goto retry;
>
>
>
> }

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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

Reply via email to