googleads-python-lib icon indicating copy to clipboard operation
googleads-python-lib copied to clipboard

Decode error in ReportDownloader

Open lociii opened this issue 12 years ago • 2 comments

I'm trying to download a report using the ReportDownloader and get the following trace:

  File "/usr/local/lib/python2.7/dist-packages/googleads/adwords.py", line 348, in DownloadReport
    output, return_money_in_micros)
  File "/usr/local/lib/python2.7/dist-packages/googleads/adwords.py", line 411, in _DownloadReport
    output.write(chunk.decode())
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 147: ordinal not in range(128)

Looks like the ReportDownloader is trying to decode some non-ascii chars.

lociii avatar Mar 13 '14 19:03 lociii

You're right. Looking into this now...

jdilallo avatar Mar 13 '14 19:03 jdilallo

I'm release version 1.0.1 to fix the problem. Thank for reporting it.

jdilallo avatar Mar 13 '14 20:03 jdilallo