Hi,

(Apologies if this is being posted twice.)

We have noticed that we cannot obtain data on Paused campaigns in certain 
types of reports. E.g., for a given date range, we can see data of Paused 
campaigns in a Campaign Performance Report, but not in the Geo Performance 
Report.

As an example, we can run the following query for a Geo Performance Report 
(python dict notation):

geo_q = {
    'reportName': 'Missing Paused Campaigns',
    'dateRangeType': 'CUSTOM_DATE',
    'reportType': 'GEO_PERFORMANCE_REPORT',
    'downloadFormat': 'CSV',
    'selector': {
        'fields': ['Date', 'CountryCriteriaId', 'CampaignName', 
'CampaignStatus'],
        'dateRange': {
            'min': '20171001',
            'max': '20171231',
        },
        'predicates': [
            {
                'field': 'CampaignStatus',
                'operator': 'IN',
                'values': ['PAUSED', 'REMOVED']
            },
        ],
    },
}

This gives data only on Removed campaigns, and not Paused ones. Meanwhile, 
we can run the following query for a Campaign Performance Report with the 
same selector:

camp_q = {
    'reportName': 'Missing Paused Campaigns',
    'dateRangeType': 'CUSTOM_DATE',
    'reportType': 'CAMPAIGN_PERFORMANCE_REPORT',
    'downloadFormat': 'CSV',
    'selector': {
        'fields': ['Date', 'CampaignName', 'CampaignStatus'],
        'dateRange': {
            'min': '20171001',
            'max': '20171231',
        },
        'predicates': [
            {
                'field': 'CampaignStatus',
                'operator': 'IN',
                'values': ['PAUSED', 'REMOVED']
            },
        ],
    },
}

The above query *does* yield data of both our Paused and Removed campaigns.

We are using python to load the data into DataFrames:

geo = pd.read_csv(rd.DownloadReportAsStream(geo_q, skip_report_header=True, 
skip_report_summary=True))
camp = pd.read_csv(rd.DownloadReportAsStream(camp_q, skip_report_header=True
, skip_report_summary=True))
print(set(geo['Campaign state']))
print(set(camp['Campaign state']))

# Output:

{'removed'}
{'removed', 'paused'}


We would just like to know if there is a specific reason why Paused 
campaigns are not in these kinds of reports, while Removed campaigns are, 
or if there is a bug somewhere.

Best,
PI.X


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/614431f5-f67e-4674-a6b0-a62e8637040b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to