Hi,
I am getting the keyword performance report only for keywords which are enabled and I want to get the keywords which are paused also ,I am trying but I am not getting these values
can any one please help me in how to write the predicate for keywords which are paused ?
And I am trying these code but I am only getting keywords which are enabled only
Code :
$selector = new Selector();
$selector->fields = array('KeywordText','Id','Status','Clicks','AverageCpc','Conversions','Ctr','Impressions','AveragePosition','Cost');
// Filter out deleted criteria.
$selector->predicates[] = new Predicate('Status', 'IN', array('ENABLED', 'PAUSED','REMOVED'));
$selector->predicates[] = new Predicate('AdGroupId', 'IN', array($adGroupId));
// Create report definition.
$reportDefinition = new ReportDefinition();
$reportDefinition->selector = $selector;
$reportDefinition->reportName = 'Criteria performance report #' . uniqid();
$reportDefinition->dateRangeType = 'LAST_7_DAYS';
$reportDefinition->reportType = 'KEYWORDS_PERFORMANCE_REPORT';
$reportDefinition->downloadFormat = 'CSV';
Thank you,