Hi, Your report already does that. The output you quoted (below) is an empty report -- it contains no campaigns.
"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 Note that if you are using v201409 then you can exclude the "Last 7 days..." row and the "Total..." row (but not the field names row) by specifying the *skipReportHeader* and *skipReportSummary* optional headers <https://developers.google.com/adwords/api/docs/guides/reporting#optional-headers> with a value of *true*. Cheers, Josh, AdWords API Team On Monday, October 27, 2014 3:54:24 AM UTC-4, [email protected] wrote: > > Hello. Thank you for your answer, but I want exclude companies with empty > impressions completely. > > четверг, 23 октября 2014 г., 16:25:18 UTC+3 пользователь Josh Radcliff > (AdWords API Team) написал: >> >> Hi, >> >> Do your campaigns have any impressions for the date range of your report? >> If not, then you'll have to specify '*includeZeroImpressions': 'true'* in >> order to get those campaigns to show up in the report. See our Zero >> Impressions Guide >> <https://developers.google.com/adwords/api/docs/guides/zero-impression-reports> >> for >> more details. >> >> Cheers, >> Josh, AdWords API Team >> >> On Wednesday, October 22, 2014 9:47:51 AM UTC-4, >> [email protected] wrote: >>> >>> Hello. I don't understand, why i get empty company? >>> This is my query: >>> >>> 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) >>> >>> >>> I get a result: >>> >>> 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 >>> >>> >>> >>> >>> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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]. Visit this group at http://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/a0c4361b-c80b-4fbb-98ab-0b71841870ba%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
