Problem with authentication using python

151 views
Skip to first unread message

antonio.esca...@gmail.com

unread,
Apr 25, 2016, 8:52:52 AM4/25/16
to AdWords API Forum
Hi, I'm having problems with the authentication of my client, so I can't execute any code.
I filled all the requested information in the .yaml file but I get this error

"expected <block end>, but found %r" % token.id, token.start_mark)
yaml.parser.ParserError: while parsing a block mapping
  in "<string>", line 6, column 3:
      developer_token: MPnIqiJ4FnmnKSV ... 
      ^
expected <block end>, but found '<block mapping start>'
  in "<string>", line 11, column 4:
       client_customer_id: 985-945-2479
       ^



recorte python.PNG

Josh Radcliff (AdWords API Team)

unread,
Apr 25, 2016, 12:03:37 PM4/25/16
to AdWords API Forum
Hi,

That error indicates that your googleads.yaml file is not in the proper format. A few things to check are:
  1. Make sure that indentation mirrors what is shown in the sample googleads.yaml file.
  2. Did you copy the file from a Unix machine to a Windows machine, or vice versa? I ask because it mentions %r in the error. If so, please try opening the file in your platform's text editor and confirm that line breaks are occurring at the expected positions.
Thanks,
Josh, AdWords API Team
Reply all
Reply to author
Forward
0 new messages