UnicodeDecodeError with uploadung image

17 views
Skip to first unread message

Dmitry Shvetsov

unread,
May 23, 2019, 6:49:48 AM5/23/19
to AdWords API and Google Ads API Forum
Hi!
I run this code sample https://developers.google.com/adwords/api/docs/samples/python/miscellaneous#upload-an-image and it gives me an error "UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte"

How to fix the issue?

Thank you!

Dmitry Shvetsov

unread,
May 23, 2019, 6:51:45 AM5/23/19
to AdWords API and Google Ads API Forum
I point file name as:
IMAGE_FILENAME = 'test_01.05.01_160х600.jpg'

Google Ads API Forum Advisor Prod

unread,
May 23, 2019, 3:22:47 PM5/23/19
to hunter...@gmail.com, adwor...@googlegroups.com
Hi Dmitry, 

I was not able to replicate the issue with our code sample. Could you please try with the solution provided on the Github issue tracker here where a similar issue has been reported? If you're having an issue, feel free to re-open a new issue on the issue tracker and the library owners will be able to take a look.

Thanks,
Bharani, Google Ads API Team

ref:_00D1U1174p._5001UAqQ3D:ref
Reply all
Reply to author
Forward
0 new messages