Re: Special Char in text ad

2015-11-18 Thread Nadine Sundquist (AdWords API Team)
Hi Jesus,

I talked it over with one of our people who knows Python around here. He 
agrees that this a tough one to solve with Python 2.

His suggestion is, if you're setting the default encoding to utf-8, suds 
should accept Unicode string containing non-ASCII characters. You could 
alternatively encode the Unicode string and send it as a byte string. Suds 
will likely have issues sending the request otherwise, and it doesn't fail 
gracefully (as you've experienced).

What you're experiencing is very difficult to troubleshoot and can 
sometimes be environment dependent.

Hope that helps,
Nadine, AdWords API Team

On Tuesday, November 17, 2015 at 6:11:09 PM UTC-5, Nadine Sundquist 
(AdWords API Team) wrote:

> Hi Jesus,
>
> I'm not a Python expert, so I'm going to ask around to see if one of my 
> colleagues has tried this before. I'll get back to you when I have an 
> answer.
>
> Best,
> Nadine, AdWords API Team
>
> On Tuesday, November 17, 2015 at 10:55:42 AM UTC-5, 
> jesus.rom...@ogilvy.com wrote:
>>
>> Hi, I already try  changing the default encoding but still doesn't works, 
>> can you tell me the encoding that the mutate function is suposed to read? 
>> becausa I have tried with unicode, UTF-8 and iso-8859-15 but with all of 
>> that I keep getting the same error.
>>
>> I don't know what the mutate function does internaly, but based on the 
>> error I'm guessing that at some point it tries to decode the string but I 
>> can't figure out from what encoding is trying to decode.
>>
>> thanks
>>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ad9f0f69-03e4-498f-86e4-8dc1a20d2078%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Special Char in text ad

2015-11-17 Thread Nadine Sundquist (AdWords API Team)
Hi Jesus,

I'm not a Python expert, so I'm going to ask around to see if one of my 
colleagues has tried this before. I'll get back to you when I have an 
answer.

Best,
Nadine, AdWords API Team

On Tuesday, November 17, 2015 at 10:55:42 AM UTC-5, jesus.rom...@ogilvy.com 
wrote:
>
> Hi, I already try  changing the default encoding but still doesn't works, 
> can you tell me the encoding that the mutate function is suposed to read? 
> becausa I have tried with unicode, UTF-8 and iso-8859-15 but with all of 
> that I keep getting the same error.
>
> I don't know what the mutate function does internaly, but based on the 
> error I'm guessing that at some point it tries to decode the string but I 
> can't figure out from what encoding is trying to decode.
>
> thanks
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a5609e37-5bd9-4c6a-8e8f-eb62132341ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Special Char in text ad

2015-11-17 Thread jesus . romero
Hi, I already try  changing the default encoding but still doesn't works, 
can you tell me the encoding that the mutate function is suposed to read? 
becausa I have tried with unicode, UTF-8 and iso-8859-15 but with all of 
that I keep getting the same error.

I don't know what the mutate function does internaly, but based on the 
error I'm guessing that at some point it tries to decode the string but I 
can't figure out from what encoding is trying to decode.

thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/76abd4c9-3c82-4ede-9f7d-084c51f68fab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Special Char in text ad

2015-11-16 Thread Umesh Dengale
Hello,

This appears to be an issue with how suds handles Unicode in Python 2. That 
said, it's pretty easy to work around this--all you have to do is send 
Unicode content in a Unicode string rather than encoding it.

You could change your default encoding as seen in PEP 0263 

 and 
use those characters directly.


Thanks,

Umesh, AdWords API Team.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/d21b594f-2a38-4f8f-a961-b9680c5f9dc8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Special Char in text ad

2015-11-16 Thread jesus . romero
Hi,

I'm using the API with python everythin gis working fine until I try to 
upload a text ad with the word MaƱana in it. 

i'm using the Service: 'AdGroupAdService' and the version='v201509'. But I 
finded imposible to uploaded I kee getting the folloween error:

  UnicodeDecodeError: 'ascii' codec can't decode byte 0xf1 in 
position 2: ordinal not in range(128)

Can anyone tell me how to solve this problem? 

Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords 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 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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/a6881871-abd0-40fd-af97-97230b7bef72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.