How can we write the predicate for Keyword performance report which are paused keywords

28 views
Skip to first unread message

Kiran Kumar

unread,
Jan 19, 2015, 2:44:37 AM1/19/15
to adwor...@googlegroups.com


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,


Danial Klimkin

unread,
Jan 19, 2015, 7:20:24 AM1/19/15
to adwor...@googlegroups.com
Hello Kiran,


The predicate looks correct (you may want to leave out "REMOVED" entry though).

Are you sure there are paused keywords under the given ad group with non-zero impressions?


-Danial, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages