I have been asked to troubleshoot an issue with a adwords dashboard. The code is failing at the ReportUtils::DownloadReportWithAwql() call and I am having very liitle luck poin pointing the issue. Any thoughts would be greatly appreciated.
$user->LoadService('ReportDefinitionService', API_VERSION);
$reportFormat = "TSV";
$reportQuery = "SELECT
AdNetworkType1,
AdNetworkType2,
CampaignId,
CampaignName,
AccountDescriptiveName,
AverageCpc,
AverageCpm,
AveragePosition,
Clicks,
Cost,
CostPerConversionManyPerClick,
Ctr,
Impressions,
SearchImpressionShare,
TotalCost,
ViewThroughConversions,
NumOfflineImpressions,
NumOfflineInteractions,
ConversionsManyPerClick,EstimatedTotalConversions ";
$options = array(
'version' => API_VERSION
// 'includeZeroImpressions' => true
// ,'returnMoneyInMicros' => true
);
$report = ReportUtils::DownloadReportWithAwql($reportQuery, null, $user, $reportFormat, $options);