I have the following code in php: *try {* * * * $user = new AdWordsUser();* * $user->LogAll();* * * * $report_date = date("Y-m-d" ,strtotime('yesterday'));* * * * for ($f=11;$f<=$count;$f++){* * $clientId = $clientes['id'][$f];* * $user->SetClientId($clientId);* * $user->LoadService('ReportDefinitionService', 'v201109');* * $fileName = 'data/'.$clientId.'_'.$report_date.'_url.xls';* * $selector = new Selector();* * $selector->fields = array('CampaignId','CampaignName','CampaignStatus','AdGroupId','AdGroupName','AdGroupStatus','Domain','Url','AdNetworkType1','AdNetworkType2','Clicks','Impressions','Conversions','Cost'); * * * * $reportDefinition = new ReportDefinition();* * $reportDefinition->selector = $selector;* * $reportDefinition->reportName = 'URL Performance Report '.$clientId.'_'.$report_date;* * $reportDefinition->dateRangeType = 'YESTERDAY';* * $reportDefinition->reportType = 'URL_PERFORMANCE_REPORT';* * $reportDefinition->downloadFormat = 'CSVFOREXCEL';* * * * $path = dirname(__FILE__) . '/' . $fileName;* * $options = array('version' => 'v201109', 'returnMoneyInMicros' => TRUE);* * * * ReportUtils::DownloadReport($reportDefinition, $path, $user, $options);* * * * $clientes['report_name'][$count] = $reportDefinition->reportName;* * $clientes['file_name_ad'][$f] = $clientId.'_'.$report_date.'_ad.xls';* * $clientes['file_name_keyword'][$f] = $clientId.'_'.$report_date.'_keyword.xls';* * $clientes['file_name_url'][$f] = $clientId.'_'.$report_date.'_url.xls';* * $clientes['report_date'][$count] = $report_date.' 00:00:00';* * * * }* * * * echo('Se ha realizado el informe');* * * * * *} catch (Exception $e) {* * print $e->getMessage();* *}*
The report comes to me empty. Anyone know what the problem is that I get empty? Thanks -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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