Re: How to manipulate an object of Google Ads API's Enum class - python

2018-11-28 Thread 'Teja Makani' via AdWords API and Google Ads API Forum
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 
.
 
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 
>  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//campaigns/" 
> 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": , "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.


Re: How to manipulate an object of Google Ads API's Enum class - python

2018-11-26 Thread camila
I am extracting the attribute like this: row.campaign.advertising_channel_type 
 and I am using Python 2.7. the documentation you shared is missing 
information, it just says the value for enums 0,1,2,5. what about enums 3 
and 4 ? also, i am not using the googleads api, I am using the google-ads 
api, would the enum mapping be the same ?

On Thursday, 1 November 2018 16:08:41 UTC-6, Sreelakshmi Sasidharan 
(AdWords API Team) wrote:
>
> Hello, 
>
> As you can see from here 
> ,
>  
> 2 is the vale assigned for SEARCH campaigns. Could you please check that 
> you are printing the right attribute in your code? If you are unable to 
> verify, could you share the code snippet along with the programming 
> language that you are using? 
>
> Thanks,
> Sreelakshmi, AdWords API Team
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/9748c3d8-2602-4cd9-bcb4-71d002cc9366%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to manipulate an object of Google Ads API's Enum class - python

2018-11-01 Thread 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API and Google Ads API Forum
Hello, 

As you can see from here 
,
 
2 is the vale assigned for SEARCH campaigns. Could you please check that 
you are printing the right attribute in your code? If you are unable to 
verify, could you share the code snippet along with the programming 
language that you are using? 

Thanks,
Sreelakshmi, AdWords API Team

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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/ea22f85e-e74d-49ed-81a7-efbc402a20ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.