On the Google Ads API documentation 
<https://developers.google.com/google-ads/api/docs/fields/campaign> it says 
that for the field campaign.advertising_channel_type, the return value is 
an ENUM. How can I manipulate this object of the ENUM class to get the 
value that I want ?

My problem is that when I print the response I can see in the traceback 
call the string value:

campaign { resource_name: "customers/<customer_id>/campaigns/<campaign_id>" id 
{ value: 397083380 } name { value: "Lanzamiento SIKU" } 
advertising_channel_type: SEARCH 

but when I extract the value like this: 
info['type'] = row.campaign.advertising_channel_type


and then print info, this is how it gets returned: 

"campanas": [ { "id": <campaign_id>, "name": "Lanzamiento SIKU", "type": 2 }]


There is NO information on Google's documentation on how to manipulate this 
class in order to get the string value, and there is also NO information on the 
mapping of what index corresponds to what string. 


Please help !

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/24d9aa53-359c-42a1-bba3-2c4ed630e664%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... camila
    • ... 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API and Google Ads API Forum
    • ... 'Teja Makani' via AdWords API and Google Ads API Forum

Reply via email to