Hello Ranjit,

You can add "KeywordId" field. Please check this reference:

  https://developers.google.com/adwords/api/docs/appendix/reports#ad

Please note this will only give you criteria ID. Check out the Criteria / 
Keyword performance reports for more keyword details.


-Danial, AdWords API Team.


On Thursday, February 13, 2014 5:14:07 PM UTC+4, 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 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