Why I get empty company?

50 views
Skip to first unread message

g.adwo...@smartweb.com.ua

unread,
Oct 22, 2014, 9:47:51 AM10/22/14
to adwor...@googlegroups.com
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




Josh Radcliff (AdWords API Team)

unread,
Oct 23, 2014, 9:25:18 AM10/23/14
to adwor...@googlegroups.com
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 for more details.

Cheers,
Josh, AdWords API Team

g.adwo...@smartweb.com.ua

unread,
Oct 27, 2014, 3:54:24 AM10/27/14
to adwor...@googlegroups.com
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) написал:

Josh Radcliff (AdWords API Team)

unread,
Oct 27, 2014, 9:58:12 AM10/27/14
to adwor...@googlegroups.com
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 with a value of true.

Cheers,
Josh, AdWords API Team
Reply all
Reply to author
Forward
0 new messages