How to get all account only with company!!!

53 views
Skip to first unread message

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

unread,
Oct 22, 2014, 8:05:30 AM10/22/14
to adwor...@googlegroups.com
many my account has not company, I want filtered it. I tried add more than one predicates, but it is not help.

            report = {
                'reportName': 'Last 7 days CAMPAIGN_PERFORMANCE_REPORT',
                'dateRangeType': 'LAST_7_DAYS',
                'reportType': 'CAMPAIGN_PERFORMANCE_REPORT',
                'downloadFormat': 'CSV',
                'selector': {
                    'fields': [
                        'CampaignId',
                        'Date',
                        'CampaignName',
                        'Impressions',
                        'Clicks',
                        'Ctr',
                        'Amount',
                    ],
                    'predicates': {
                        'field': 'CampaignId',
                        'operator': 'NOT_EQUALS',
                        'values': ' ',
                    },
                },
                'includeZeroImpressions': 'false'
            }

Josh Radcliff (AdWords API Team)

unread,
Oct 22, 2014, 10:15:14 AM10/22/14
to adwor...@googlegroups.com
Hi,

If an account does not have any campaigns then a CAMPAIGN_PERFORMANCE_REPORT for that account will be empty. What's more likely is that those accounts have campaigns but the campaigns are in the REMOVED state. You can exclude those by filtering for Status NOT_EQUALS 'REMOVED'.

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