Hi
I'm using the Google Ads .NET API.
I have set (user.Config as AdWordsAppConfig).UseRawEnumValues = true for the user.
This works ok when I use ReportQueryBuilder to query the KEYWORDS_PERFORMANCE_REPORT. I.e. the KeywordMatchType column returns the enum formatted value e.g. 'EXACT'. If I remove UseRawEnumValues it returns the display formatted value e.g. 'exact'.
But when I call the AD_PERFORMANCE_REPORT with UseRawEnumValues set to true, it is returning the display formatted value for the CombinedApprovalStatus value. I.e. it returns 'under review' instead of 'UNDER_REVIEW'.
I need the enum value as the returned values are mapping to the google AdPerformanceReportReportRow object which has the corresponding property as the enum type.
Here are snippets of the relevant code:
var user = new AdWordsUser();
...
(user.Config as AdWordsAppConfig).UseRawEnumValues = true;
return user;
........
var retriever = new AdPerformanceReportRetriever();
//CriteriaPerformanceReportRetriever retriever = new CriteriaPerformanceReportRetriever();
var rows = retriever.Run(user);
.......
ReportQuery query = new ReportQueryBuilder()
.Select("AccountDescriptiveName", "CampaignName","AdGroupName","Headline", "CampaignName", "CombinedApprovalStatus","Description","Description1","DisplayUrl")
.From(ReportDefinitionReportType.AD_PERFORMANCE_REPORT)
.Where("Status").In("ENABLED", "PAUSED")
ReportUtilities reportUtilities = new ReportUtilities(user, "v201809", query,
DownloadFormat.GZIPPED_XML.ToString());
Not sure why it works for keyword report but not ad performance report.
Advice appreciated.
John