Google Ads API: How to identify ENUM data type?

2,407 views
Skip to first unread message

Alexander Belozerov

unread,
Apr 18, 2019, 4:08:09 PM4/18/19
to AdWords API and Google Ads API Forum

Hello there,
What is the best way to identify the data type that is shown as ENUM when getting a response from this method in python library:

search_google_ads_fields

I was assuming that it is always "string" but just run into an example where it is a string for one customer id and an integer for another.

Examples are
 advertising_channel_sub_type, advertising_channel_sub_type

both can be a string as "DISPLAY_GMAIL_AD" and an integer as 7.

I need to save this data in one place for reporting purposes.
My question are:
How can i get the data type for ENUM?
 and why is it different for the same fields in different accounts?

Thanks,
Alex
Message has been deleted

googleadsapi...@google.com

unread,
Apr 19, 2019, 2:28:06 PM4/19/19
to chirag....@gmail.com, AdWords API and Google Ads API Forum
Hello Alex,

As Chirag mentioned you could refer this thread regarding your questions on ENUM retrievals which might help. Also, please keep an eye on this github issue as there is an ongoing issue on ENUM retrievals.

Regards,
Sai Teja, Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Reply all
Reply to author
Forward
0 new messages