使用Adwords API推送离线线索



我使用下面的函数来推动我的离线导致api,一切看起来都很好,并返回成功,但当我检查adwords,它不显示任何数据说它收到。我试过很多线索,现在也等了大约3-4天。

我做错了什么?

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);
}

在adwords报告中,此转换将显示在转换列中。并将数据范围更改为您推送的日期$ converontime

相关内容

  • 没有找到相关文章

最新更新