Skip to content

How to create ImageAd? #147

@heramerom

Description

@heramerom

I use the example upload_image.py
catch error:

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte 

if, I change open(image_filename, 'r') to open(image_filename, 'rb')
I got error:

suds.WebFault: Server raised fault: 'Unmarshalling Error: cvc-datatype-valid.1.2.1: 'b'/9j/4AAQSkZJRgABA... 

so what is the right way to upload image or create ImageAd

My python version is python 3.5.2 and system is ubuntu 16.04 and image is download from http://goo.gl/9JmyKk

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions