Unmarshalling Error with add_responsive_display_ad.py in release v201708

41 views
Skip to first unread message

James Huang

unread,
Sep 22, 2017, 5:01:05 PM9/22/17
to AdWords API Forum
Dear Adwords API team,

I download the script "add_responsive_display_ad.py" from the latest release v201708, and run the exact same script (without changing the sample image URL) on both Windows and Linux but kept getting this error message

suds.WebFault: Server raised fault: 'Unmarshalling Error: cvc-datatype-valid.1.2.1: 'b'/9j/4AAQSkZJRgABAQAAAQAB...........(a long encoded string)...' is not a valid value for 'base64Binary'.

Could you advise why the sample script doesn't work and what are the possible options to make it work?

many thanks,


Vincent Racaza (AdWords API Team)

unread,
Sep 25, 2017, 1:26:18 AM9/25/17
to AdWords API Forum
Hi James,

Could you confirm if 'b'/9j/4AAQSkZJRgAB...' is the value of your refresh token? If yes, then it seems that this may not be the correct value of a refresh token. Could you confirm if you are able to generate the OAuth2 credentials successfully by following this guide? Also, could you check if you are able to run other example from other services? If you also can't run this, then I believe that there is something wrong in the values of your property file. Kindly ensure that the fields in your property file are correctly set by following the guide that I provided.

If you can run successfully the other example that I provided, then, can you provide your example python file (for add responsive display ad) used so I can check if there are no changes to it and if it is correct? Kindly use the Reply privately to author option when replying.

Thanks,
Vincent
AdWords API Team
Reply all
Reply to author
Forward
0 new messages