Hi,
I am a newcomer in AdWords API , I need to take AD_PERFORMANCE_REPORT using 
Adwords API, Currently i am able to download the report using the following 
code, But i need to take the data as an array or any other format instead 
of downloading, I have attached the dashboard view also. Please help me.

function DownloadCriteriaReportExample(AdWordsUser $user, $filePath) {

  $user->LoadService('ReportDefinitionService');

  $selector = new Selector();
  
  $selector->fields = 
array('Headline','Description1','Description2','DisplayUrl','AdGroupName','CampaignName','Clicks','ConversionsManyPerClick');

  $selector->predicates[] = new Predicate('Status', 'NOT_IN', 
array('PAUSED'));
  
  $reportDefinition = new ReportDefinition();
  $reportDefinition->selector = $selector;
  $reportDefinition->reportName = 'ad performance report #' . uniqid();
  $reportDefinition->dateRangeType = 'LAST_30_DAYS';
  $reportDefinition->reportType = 'AD_PERFORMANCE_REPORT';
  $reportDefinition->downloadFormat = 'CSV';

  $reportDefinition->includeZeroImpressions = FALSE;

  $options = array('version' => 'v201502');
  
  ReportUtils::DownloadReport($reportDefinition, $filePath, $user, 
$options);

  printf("Report with name '%s' was downloaded to '%s'.\n",
      $reportDefinition->reportName, $filePath);
}

<https://lh3.googleusercontent.com/-b7U4GNUq4oY/VUi9jMwZN5I/AAAAAAAAAjQ/smCGC1vkGJI/s1600/Campaign%2BManagement%2B%E2%80%93%2BGoogle%2BAdWords.png>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6ef86d8f-dc24-4ee7-a1ea-576845a6c910%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to