Hi,
I am trying to process offline conversions. I pull the records from my DB and then loop them...
foreach ($conversions as $conversion) {
$gclid = $conversion["gclid"];
$convDate = date("Ymd", strtotime($conversion["date"])). " 125959 -06:00";
$convValue = isset($conversion["value"]) ? $conversion["value"] : 0;
$offlineConversion = new OfflineConversionFeed($gclid, $conversionName, $convDate, $convValue);
$operations[] = new OfflineConversionFeedOperation($offlineConversion, "ADD");
}
$output = $offlineConversionService->mutate($operations);
return $output;
In case you are wondering, I just have the date (YYYY-MM-DD), so I am faking the time. When I run this I get this:
An uncaught Exception was encountered
Type: SoapFault
Message: [OfflineConversionError.EXPIRED_CLICK @ operations[0].operand, OfflineConversionError.CONVERSION_PRECEDES_CLICK @ operations[1].operand, OfflineConversionError.EXPIRED_CLICK @ operations[4].operand, OfflineConversionError.EXPIRED_CLICK @ operations[6].operand, OfflineConversionError.EXPIRED_CLICK @ operations[5].operand, OfflineConversionError.EXPIRED_CLICK @ operations[3].operand, OfflineConversionError.EXPIRED_CLICK @ operations[2].operand]
I would like to mark these records as processed in my DB, so I am trying to figure out how to get the result of each Conversion ADD so I cam mark it as completed, or log the error. Help!
Thanks in advance for any help.
T