UseRawEnumValues ignored when querying AD_PERFORMANCE_REPORT

47 views
Skip to first unread message

john p

unread,
Sep 16, 2019, 1:12:00 AM9/16/19
to AdWords API and Google Ads API Forum

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

Google Ads API Forum Advisor Prod

unread,
Sep 18, 2019, 2:54:38 AM9/18/19
to adwor...@googlegroups.com
Hi John,

Thanks for posting your concern. My apologies also for the delayed response.

I discussed the issue to the team and decided to raise a bug ticket for this. Please keep an eye on this thread as I will let you know here if there are updates regarding this issue.

Regards,
Ejay
Google Ads API Team

ref:_00D1U1174p._5001UHGsjm:ref

john p

unread,
Sep 20, 2019, 6:08:06 AM9/20/19
to AdWords API and Google Ads API Forum
Thanks Ejay

 I will do.
John

john p

unread,
Sep 23, 2019, 3:45:36 AM9/23/19
to AdWords API and Google Ads API Forum
Thanks Ejay

 I will do.
John

On Monday, 16 September 2019 06:12:00 UTC+1, john p wrote:
Reply all
Reply to author
Forward
0 new messages