Closing as duplicate for 
https://groups.google.com/forum/#!msg/adwords-api/W7p3mCkPaA4/Hg7Cv8r7DwUJ


On Thursday, February 13, 2014 5:51:02 PM UTC+4, Ranjit Behera wrote:
>
> Hi,
>
> Am using *"googleads-php-lib-master" *Adwords API,
>
> I want to do keyword/placement segmentation on AD_PERFORMANCE_REPORT.
>
> Can anyone assist me how can i acheive it in  php.
>
> Below is my Code for AD_PERFORMANCE REPORT DOWNLOAD : 
>
> $reportType = 'AD_PERFORMANCE_REPORT';
>  $selector->fields = array(
> 'keyword','Impressions', 
> AdGroupId','AdGroupName','Description1','Description2','DisplayUrl'
> );
>
> // Create report definition.
> $reportDefinition = new ReportDefinition();
> $reportDefinition->selector = $selector;
> $reportDefinition->reportName = $reportType.'#' . uniqid();
> $reportDefinition->dateRangeType = 'YESTERDAY';
> $reportDefinition->reportType = $reportType;
> $reportDefinition->downloadFormat = 'CSV';
>
> // Exclude criteria that haven't recieved any impressions over the date 
> range.
> $reportDefinition->includeZeroImpressions = FALSE;
>
> // Set additional options.
> $options = array('version' => 'v201309', 'returnMoneyInMicros' => TRUE);
>
> // Download report.
> ReportUtils::DownloadReport($reportDefinition, $filePath, $user, $options);
>
> printf("Report with name '%s' was downloaded to '%s'.\n",
> $reportDefinition->reportName, $filePath);
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to