useRawEnumValues ignored when downloading reports

33 views
Skip to first unread message

Gary Madden

unread,
Feb 28, 2017, 10:04:42 AM2/28/17
to AdWords API Forum
Hi there,

I think I've hit a bug. The first line of output for the attached class is:
Ad group ID,Ad group

even though I set useRawEnumValues(true) in the ReportingConfiguration. I would have expected the output to be:
AdGroupId, AdGroupName

Is this a bug or have I missed something?

Best regards,

Gary
ReportDownloaderTest.java

Shwetha Vastrad (AdWords API Team)

unread,
Feb 28, 2017, 12:10:45 PM2/28/17
to AdWords API Forum
Hi Gary,

The useRawEnumValues header is applicable to the return format of enum values in the columns and not to the column names themselves. If set to true, the actual enum value is returned instead of the display values. For example, if you include AdGroupStatus in the report definition, the report will contain "ENABLED" instead of "enabled". You need to set this header to false or omit this header if you want the returned format to be the display value. The display name of each field will be the column name in the downloaded report. 

Regards,
Shwetha, AdWords API Team.

Gary Madden

unread,
Mar 1, 2017, 3:02:36 AM3/1/17
to AdWords API Forum
Thanks Shwetha, that's clear to me now!
Reply all
Reply to author
Forward
0 new messages