On Thursday, February 13, 2014 6:44:07 PM UTC+5:30, Ranjit Behera wrote:
>
> Hi,
>
> Am using "googleads-php-lib-master" Adwords API.
>
> I want to do *"Keyword/Placement"* segmentation while donwloading the
> AD_PERFORMANCE_REPORT report.
>
> Can anyone pls assist me how could acheive this using PHP.
>
> Below is my related code :
>
> $reportType = 'AD_PERFORMANCE_REPORT';
> $selector->fields = array(
> 'keyword',
> 'Impressions'
> );
>
> $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;
>
> $options = array('version' => 'v201309', 'returnMoneyInMicros' => TRUE);
>
> // Download report.
> ReportUtils::DownloadReport($reportDefinition, $filePath, $user, $options);
>
> Thanks ....
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.