filtering keywords from Keywords Performance Report

47 views
Skip to first unread message

Arnab Ganguly

unread,
Jul 10, 2016, 6:43:53 AM7/10/16
to AdWords API Forum
Hi,
Is there any param I can pass in python api DownloadReport.So that when I dump the content to a file.I get only particular keyword in the report.Basically filtering the content of the Keywords Performance Report based on keyword.
Thanks in advance,
-A

Arnab Ganguly

unread,
Jul 10, 2016, 4:22:07 PM7/10/16
to AdWords API Forum
For reference to all .Got my answer through sample programs.I was looking for something like this .

report = {

      'reportName': 'Last 7 days KEYWORDS_PERFORMANCE_REPORT',

      'dateRangeType': 'LAST_7_DAYS',

      'reportType': 'KEYWORDS_PERFORMANCE_REPORT',

      'downloadFormat': 'CSV',

      'selector': {

      'predicates': [

          {

              'field': 'Criteria',

              'operator': 'CONTAINS_IGNORE_CASE',

              'values': [KEYWORD] #Keyword is the value on which I wanted to filter.....

          }

      ],

      }

  }


List of valid predicate operators


[EQUALS, NOT_EQUALS, IN, NOT_IN, GREATER_THAN, GREATER_THAN_EQUALS, LESS_THAN, LESS_THAN_EQUALS, STARTS_WITH, STARTS_WITH_IGNORE_CASE, CONTAINS, CONTAINS_IGNORE_CASE, DOES_NOT_CONTAIN, DOES_NOT_CONTAIN_IGNORE_CASE, CONTAINS_ANY, CONTAINS_ALL, CONTAINS_NONE, UNKNOWN]

Joyce Lava

unread,
Jul 10, 2016, 10:36:12 PM7/10/16
to AdWords API Forum
Hi Arnab,

Glad to hear that you found the answer to your concern.

Best Regards,
Joyce, AdWords API Team
Reply all
Reply to author
Forward
0 new messages