v201702 catch error with upload offline conversions

24 views
Skip to first unread message

Cyrille

unread,
Mar 10, 2017, 3:04:05 PM3/10/17
to AdWords API Forum
Hello, i'm trying to update to v201702

I used to use try /catch to upload conversions in php since sometimes i've errors like TOO_RECENT_CLICK or CONVERSION_PRECEDES_CLICK or EXPIRED_CLICK

but now when i try i've always a fatal error

I use this https://developers.google.com/adwords/api/docs/samples/php/remarketing#upload-offline-conversions demo

when i whrite

try{$result = $offlineConversionService->mutate($offlineConversionOperations);}
catch(ApiException $e){echo "ok i've an error";}

Always the same is happening, the error is not caught

4622#0: *152916 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Google\AdsApi\AdWords\v201702\cm\ApiException: [OfflineConversionError.TOO_RECENT_CLICK @ operations[0].operand] in /*********/src/Google/AdsApi/Common/Util/Reflection.php:39
Stack trace:
#0 /*********/src/Google/AdsApi/Common/Util/Reflection.php(39): ReflectionClass->newInstanceArgs(Array)
#1 /*********/src/Google/AdsApi/Common/AdsSoapClient.php(162): Google\AdsApi\Common\Util\Reflection->createInstance('Google\\AdsApi\\A...', Array)
#2 /*********/src/Google/AdsApi/Common/AdsSoapClient.php(126): Google\AdsApi\Common\AdsSoapClient->parseApiExceptionFromSoapFault(Object(SoapFault))
#3 /*********/src/Google/AdsApi/AdWords/v201702/cm/OfflineConversionFeedService.php(92): Google\AdsApi\Common\AdsSoapClient->__soapCall('mutate', Array)
#4 /********" while reading response header from upstream   

*********** = server path

Thanks for your help


Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages