report_downloader = self.adwords_client.GetReportDownloader(version='v201409')
report = { 'reportName': 'Last 7 days CAMPAIGN_PERFORMANCE_REPORT', 'dateRangeType': 'LAST_7_DAYS', 'reportType': 'CAMPAIGN_PERFORMANCE_REPORT', 'downloadFormat': 'CSV', 'includeZeroImpressions': 'false', 'selector': { 'fields': [ 'CampaignId', 'CampaignName', 'Impressions', 'Clicks', 'Ctr', 'Amount', ], 'predicates': { 'field': 'Impressions', 'operator': 'GREATER_THAN', 'values': '0', }, 'predicates': { 'field': 'CampaignStatus', 'operator': 'IN', 'values': ['ENABLED'] }, }, }
print "RESULT: ", report_downloader.DownloadReport(report, sys.stdout)
RESULT: "Last 7 days CAMPAIGN_PERFORMANCE_REPORT (Oct 15, 2014-Oct 21, 2014)"
Campaign ID,Campaign,Impressions,Clicks,CTR,Budget
Total, --,0,0,0.00%,0
RESULT: "Last 7 days CAMPAIGN_PERFORMANCE_REPORT (Oct 15, 2014-Oct 21, 2014)"
Campaign ID,Campaign,Impressions,Clicks,CTR,Budget
Total, --,0,0,0.00%,0
RESULT: "Last 7 days CAMPAIGN_PERFORMANCE_REPORT (Oct 15, 2014-Oct 21, 2014)"
Campaign ID,Campaign,Impressions,Clicks,CTR,Budget
Total, --,0,0,0.00%,0