Incorrect enums for CampaignState in Campaign Performance Reports

31 views
Skip to first unread message

suvo...@adnabu.com

unread,
Sep 8, 2018, 1:43:21 AM9/8/18
to AdWords API and Google Ads API Forum
Hi,

I am trying to fetch the campaigns information through the reports and it seems to return incorrect values. When useRawEnumValues  is set to True, it returns values like - Status_Active (should be ENABLED according to documentation) and returns enabled when useRawEnumValues is set to False. Kindly let me if know if this is an expected functionality or a bug.

Luis Xander Talag (AdWords API Team)

unread,
Sep 10, 2018, 1:43:02 AM9/10/18
to AdWords API and Google Ads API Forum
Hi,

The optional HTTP header useRawEnumValues means that if you set this value to true, the returned format will be the actual enum value of that particular field and if you set it to false or omit this header, the returned format would be the display value as you can see on the report documentation. However, to further investigate this, could you provide your clientCustomerId and the complete report definition you used when you encountered the issue? Please reply via Reply privately to author.

Thanks and regards,
Luis
AdWords API Team

suvo...@adnabu.com

unread,
Sep 10, 2018, 2:48:22 AM9/10/18
to AdWords API and Google Ads API Forum
Hi Luis,

I understand the usage of the useRawEnumValues header. My question is that the report documentation states that the values expected will be ENABLED, PAUSED and REMOVED whereas the values received are Status_Active, Status_Suspended and Status_Deleted when the header is set to true. Kindly let me know if I am incorrect in assuming ENABLEDPAUSED and REMOVED  to be the enum entries. Please note this is the case with both CampaignStatus and SharedNegativeStatus, however AdGroupStatus returns proper enum values. Sharing the requests and response in another private mail. 
Reply all
Reply to author
Forward
0 new messages