Doubt about CampaignStatus field in Campaign Performance Report

63 views
Skip to first unread message

Pippo

unread,
Jan 11, 2017, 11:07:47 AM1/11/17
to AdWords API Forum
From Campaign Performance Report I download today, 11 Jan 2017, the following data 

    {  
'CampaignStatus': 'enabled',
       'Cost': 0.0,
       'Day': '2016-12-31',
       'Id': 'xxxxxxxxx',
       'Impressions': 0,
       'Name': 'yyyyyyyyy'},
   {   'CampaignStatus': 'enabled',
       'Cost': 0.0,
       'Day': '2017-01-01',
       'Id': 'xxxxxxxxx',
       'Impressions': 0,
       'Name': 'yyyyyyyyy'},
   {   'CampaignStatus': 'enabled',
       'Cost': 186.06,
       'Day': '2017-01-02',
       'Id': 'xxxxxxxxx',
       'Impressions': 3900,
       'Name': 'yyyyyyyyy'},
   {   'CampaignStatus': 'enabled',
       'Cost': 228.55,
       'Day': '2017-01-03',
       'Id': 'xxxxxxxxx',
       'Impressions': 5343,
       'Name': 'yyyyyyyyy'},

for a campaign whose status has been 'paused' until '2017-01-01' and has been renabled on '2017-01-02'. This is confirmed by the google adwords page:

02-Jan-2017 10:48:03                                                     yyyyyyyyy                                       yyyyyyyyy
1 campaign activeHide details

Status changed from paused to active


Impressions and Cost values confirm the status change but I wonder why the in the Campaign Performance Report results, on '2017-01-01' the field CampaignStatus is 'enabled'. Shouldn't it be 'paused'?
I have to catch someway the status changing paused->active. Am I using the right tool? Am I looking at the right field?
Thanks!

Pippo

unread,
Jan 11, 2017, 11:23:12 AM1/11/17
to AdWords API Forum
(of course 'Day' corresponds to 'Date', 'Name' to 'CampaignName' and 'Id' to 'CampaignId')

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Jan 11, 2017, 4:09:00 PM1/11/17
to AdWords API Forum
Hi, 

In reporting, the attributes would always reflect the current status irrespective of the time span. If you wish to capture the history, the best way to do that would be to run the reports at regular intervals and then save it at your end. 

Thanks,
Sreelakshmi, AdWords API Team

Pippo

unread,
Jan 11, 2017, 6:21:48 PM1/11/17
to AdWords API Forum
Thank you for your answer! Just two clarifications:
  1. So, if I haven't saved CampaignStatus 10 days ago for a campaign, today I'm not able at all to know which was its status on that day?
  2. In the web page, since "Status changed from paused to active" is printed at a certain datetime, it means you store status changes somewhere. Is there a way I can access those changes data?
Thanks again!

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Jan 12, 2017, 12:28:16 PM1/12/17
to AdWords API Forum
Hi Pippo, 

Although it is not possible to get the historical data via reporting, you could use CustomerSyncService.CampaignChangeData to get the campaign change history. Please check our sample (Java) for reference. 

Pippo

unread,
Jan 13, 2017, 4:47:33 AM1/13/17
to AdWords API Forum
Ok thanks, it sounds good!
However the possible values of the field campaignChangeStatus are the strings FIELDS_UNCHANGED, FIELDS_CHANGED, NEW, and the latter indicates that something has changed, but not what/how.
Here it's stated:
'This entity was created during the time frame we're looking at. We will not enumerate all of the individual changes to this entity and its children. Instead it should be loaded from the appropriate service.'
I've looked for this 'appropriate service' in the documentation, but I can't find it. Can you give a link to the documentation and/or a code example?
My objective still remains to catch the information 'status: paused ->enabled'.
Thank you again!

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Jan 13, 2017, 2:26:40 PM1/13/17
to AdWords API Forum
Hi Pippo, 

Unfortunately, the CustomerSyncService is the closest API service that we have in comparison to the change history on the UI. If the change status is new, you could use the specific service to get the status. In all other cases, it might not be possible to get that via the API.

Thanks,
Sreelakshmi, AdWords API Team

Reply all
Reply to author
Forward
0 new messages