I have only ever known the GoogleAds API to return ENUM values as numbers 
unless specified otherwise, e.g.

*[**'ad_group_ad.policy_summary.approval_status': 3, 'ad_group_ad.status': 
4}]*

However, if I include "ad_group_ad.policy_summary.approval_status" in my 
request, the returned result has the approval_status as the string value:

*[*
*'ad_group_ad.policy_summary.approval_status': 'APPROVED_LIMITED', 
'ad_group_ad.status': 4, 'ad_group_ad.policy_summary.policy_topic_entries': 
[{'type_': 'LIMITED', 'evidences': [{'text_list': {'texts': ['google']}}], 
'constraints': [{'reseller_constraint': {}}], 'topic': 
'TRADEMARKS_IN_AD_TEXT'}]},*
*]*

This messed with my logic which was always expecting the ENUM integer value.

I'm using google client v10,  and python google-ads==16.0.0.

Is the above behaviour a bug, or should I not always expect Google to 
return ENUM values as integers (unless specified)?

Kind Regards,

Michael


-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/3e3f0b5f-1b76-4dbd-8776-aafa40eb0f8en%40googlegroups.com.

Reply via email to