On the Google Ads API
documentation 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 !