Hi Vijayan

If you do not pass a *file path*, then *DownloadReport* will return the 
contents of the response as a string. Check out the function description on 
github 
<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fgoogleads%2Fgoogleads-php-lib%2Fblob%2Fmaster%2Fsrc%2FGoogle%2FApi%2FAds%2FAdWords%2FUtil%2FReportUtils.php%23L77&sa=D&sntz=1&usg=AFQjCNG4GkWq5YFZxlSE3TeicbEc3iYyhQ>
 for 
more details. I hope it solves your problem.

Cheers,
Raghavendra, AdWords API Team.

On Wednesday, May 6, 2015 at 10:49:52 AM UTC-4, sijo vijayan wrote:
>
> 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/c26d7edb-986e-4c8c-8307-8bd9320466f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to