Enum Values do NOT match documentation

214 views
Skip to first unread message

CFJ

unread,
May 9, 2022, 1:44:07 PM5/9/22
to Google Ads API and AdWords API Forum
I've run into this a few times with the Google Ads API.  According to the documentation, the enum values for the WebpageConditionOperand are "UNSPECIFIED", "UNKNOWN", "URL", "CATEGORY", "PAGE_TITLE" , "PAGE_CONTENT", and "CUSTOM_LABEL" in all caps with underscores exactly as they were in the AdWords API.


However, when using those enum values, an error is thrown.  In investigating, I notice that drilling down through the enum in Visual Studio, the actual enum values are "Unspecified", "Unknown", "Url", "Category", "PageTitle", "PageContent", and "CustomLabel" with a mix of upper and lower case and with no underscores.  

I'm finding it really difficult to code for values where the documentation does not match the API.

Capture22.JPG

Google Ads API Forum Advisor

unread,
May 11, 2022, 9:35:52 AM5/11/22
to jmcca...@crutchfield.com, adwor...@googlegroups.com
Hi,

Thank you for posting your concern to the Google Ads API forum and providing detailed information.

Upon checking it, I can see that the issue is more client library related as the enum that your client library is using is not aligned with the enums in the provided documents. With this, could you specify what client library you are using so that I can help find the right channel where you can post your concern and get support to address the issue?

Best regards,
Google Logo
Jinky
Google Ads API Team
 


ref:_00D1U1174p._5004Q2ar8bT:ref

CFJ

unread,
May 11, 2022, 10:17:05 AM5/11/22
to Google Ads API and AdWords API Forum

Google Ads API Forum Advisor

unread,
May 12, 2022, 3:25:18 AM5/12/22
to jmcca...@crutchfield.com, adwor...@googlegroups.com

Hi,

Thanks for getting back to us.

Since your concern is not an aligned enum for .Net client library, you may reach out to the .NET client library owner by filing an issue on the issue tracker on the Issue tab of your client library on github, so that they can provide guidance on it.  

Let us know if you have any additional questions.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2ar8bT:ref
Reply all
Reply to author
Forward
0 new messages