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
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/4641bea7-8658-4a1a-8315-0fb13eaa9d1f%40googlegroups.com.