{"action":"created","issue":{"url":"https://api.github.com/repos/googleads/googleads-python-lib/issues/55","labels_url":"https://api.github.com/repos/googleads/googleads-python-lib/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/googleads/googleads-python-lib/issues/55/comments","events_url":"https://api.github.com/repos/googleads/googleads-python-lib/issues/55/events","html_url":"https://github.com/googleads/googleads-python-lib/issues/55","id":73661510,"number":55,"title":"Library picking incorrect encoder?","user":{"login":"odnapetlya","id":5380486,"avatar_url":"https://avatars.githubusercontent.com/u/5380486?v=3","gravatar_id":"","url":"https://api.github.com/users/odnapetlya","html_url":"https://github.com/odnapetlya","followers_url":"https://api.github.com/users/odnapetlya/followers","following_url":"https://api.github.com/users/odnapetlya/following{/other_user}","gists_url":"https://api.github.com/users/odnapetlya/gists{/gist_id}","starred_url":"https://api.github.com/users/odnapetlya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odnapetlya/subscriptions","organizations_url":"https://api.github.com/users/odnapetlya/orgs","repos_url":"https://api.github.com/users/odnapetlya/repos","events_url":"https://api.github.com/users/odnapetlya/events{/privacy}","received_events_url":"https://api.github.com/users/odnapetlya/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-06T15:48:12Z","updated_at":"2015-11-11T15:58:19Z","closed_at":"2015-05-22T19:02:47Z","body":"I have the code:\r\n\r\n    report_downloader = client.GetReportDownloader(version='v201409')\r\n    report_query = ('SELECT Impressions,QualityScore,KeywordText ' +\r\n                    'FROM KEYWORDS_PERFORMANCE_REPORT ' +\r\n                    'WHERE Impressions > 0 ' +\r\n                    'DURING YESTERDAY ')\r\n    r = report_downloader.DownloadReportAsStringWithAwql(report_query, 'CSV').splitlines()\r\n\r\nAnd I get the exception:\r\n\r\n    Traceback (most recent call last):\r\n      File \"qs_tracking.py\", line 100, in <module>\r\n        qs_report(list_of_customer_ids, tracking_config)\r\n      File \"qs_tracking.py\", line 68, in qs_report\r\n        r = qs_report_one_acc(client)\r\n      File \"qs_tracking.py\", line 34, in qs_report_one_acc\r\n        r = report_downloader.DownloadReportAsStringWithAwql(report_query, 'CSV').splitlines()\r\n      File \"/usr/local/lib/python2.7/dist-packages/googleads/adwords.py\", line 635, in DownloadReportAsStringWithAwql\r\n        return response.read().decode()\r\n    UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 55408: ordinal not in range(128)\r\n\r\nThis only happens in one of my accounts. In the others this code runs fine.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/googleads/googleads-python-lib/issues/comments/155825797","html_url":"https://github.com/googleads/googleads-python-lib/issues/55#issuecomment-155825797","issue_url":"https://api.github.com/repos/googleads/googleads-python-lib/issues/55","id":155825797,"user":{"login":"msaniscalchi","id":6739520,"avatar_url":"https://avatars.githubusercontent.com/u/6739520?v=3","gravatar_id":"","url":"https://api.github.com/users/msaniscalchi","html_url":"https://github.com/msaniscalchi","followers_url":"https://api.github.com/users/msaniscalchi/followers","following_url":"https://api.github.com/users/msaniscalchi/following{/other_user}","gists_url":"https://api.github.com/users/msaniscalchi/gists{/gist_id}","starred_url":"https://api.github.com/users/msaniscalchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msaniscalchi/subscriptions","organizations_url":"https://api.github.com/users/msaniscalchi/orgs","repos_url":"https://api.github.com/users/msaniscalchi/repos","events_url":"https://api.github.com/users/msaniscalchi/events{/privacy}","received_events_url":"https://api.github.com/users/msaniscalchi/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T15:58:19Z","updated_at":"2015-11-11T15:58:19Z","body":"Hello,\r\n\r\nThis actually doesn't appear to be related. It looks like the same issue detailed in [issue #32 in the suds-jurko library](https://bitbucket.org/jurko/suds/issues/32/logdebug-unicode-encoding-problem-in). A pull request was submitted there that has a fix; otherwise, it was reported that setting the suds.transport to the INFO logging level at least allows you to avoid the issue.\r\n\r\nI suggest adding your voice to that bug and watching it to draw more attention to it."}}