Hello, I am using this function to push offline leads with all correct 
credentials. When there is any error it returns an error like, invalid 
convertion, too recent etc. And when everything is right it returns 
"Uploaded offline conversion value of...." etc, but i have been trying 
since last 3-4 days conversions submitted through this processes isn't 
showing up in adwords. 

Could anyone let me know what I am doing wrong?

function UploadOfflineConversionsExample(AdWordsUser $user, 
$conversionName,$gClId, $conversionTime, $conversionValue) 
{
  // Get the services, which loads the required classes.
 // $conversionTrackerService = 
$user->GetService('ConversionTrackerService', ADWORDS_VERSION);
  $offlineConversionService = 
$user->GetService('OfflineConversionFeedService',  ADWORDS_VERSION);

  // Associate offline conversions with the upload conversion we created.
  $feed = new OfflineConversionFeed();
  $feed->conversionName = $conversionName;
  $feed->conversionTime = $conversionTime;
  $feed->conversionValue = $conversionValue;
  $feed->googleClickId = $gClId;

  $offlineConversionOperation = new OfflineConversionFeedOperation();
  $offlineConversionOperation->operator = 'ADD';
  $offlineConversionOperation->operand = $feed;

  $offlineConversionOperations = array($offlineConversionOperation);
  $result = $offlineConversionService->mutate($offlineConversionOperations);

  $feed = $result->value[0];
  
  return ("Uploaded offline conversion value of ". $feed->conversionValue.
" for Google Click ID = ". $feed->googleClickId." and Conversion Name " . 
$feed->conversionName);

}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 adwords-api+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to