Hello Camila, Apologies for the inconvenience. I am Sreelakshmi's teammate responding on this thread. I was checking with the team on this issue. Looks like it is the issue related to the python client libraries as calls from other libraries resulted in advertising_channel_type as name as expected. I would recommend you to raise a new issue on the python client library <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fgoogleads%2Fgoogleads-python-lib%2Fissues&sa=D&sntz=1&usg=AFQjCNGNIqhCoIcS1d4nJ5IP0-LDMPY7bA>. The client library specialists there will guide you better. Please let me know if you have any other concerns.
Regards, Sai Teja, AdWords API Team. On Thursday, November 1, 2018 at 2:05:28 PM UTC-4, cam...@dintdigital.com wrote: > > 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/b8da8c6a-bd2d-45dc-ba21-7186f31db3de%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.