I have a Python program that running Adword reports using AWQL similar to the example here:
https://github.com/googleads/googleads-python-lib/blob/57fe3710c6ff95554415640a82f645d894eb1f96/examples/adwords/v201506/reporting/download_criteria_report_as_stream_with_awql.py What I've found is that the program fails with non-ascii characters in the data - for example, if this were a search term: "blockspring 翻译" (quotes added) Here's the error message generated: 'ascii' codec can't encode characters in position 6-7: ordinal not in range(128) I think this is the culprit: report_data = StringIO.StringIO() However, I can't use BytesIO() per suggestion on Stack Overflow or another error results: TypeError: 'unicode' does not have the buffer interface Do you have any suggestions? I find it hard to believe that the sample code wouldn't work for non-ascii characters in the underlying text data but I clearly can't figure it out myself :) Even trying to inject these characters into my data is pretty painful so it's hard to test... so suggestions there would be quite desirable as well. This may be similar to this issue: https://github.com/googleads/googleads-python-lib/issues/86 -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 https://groups.google.com/group/adwords-api. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/e95d807b-5d79-4a4b-b38a-69c2f02c7854%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.