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 [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.

Reply via email to