I'm trying to connect to adwords api, and my authentication is failing when
attempting with both Python and R.
For Python:
>>> if __name__ == '__main__':
# Initialize client object.
dfp_client = dfp.DfpClient.LoadFromStorage()
main(dfp_client)
Traceback (most recent call last):
File "<pyshell#10>", line 4, in <module>
main(dfp_client)
File "<pyshell#6>", line 15, in main
statement.ToStatement())
File "/Library/Python/2.7/site-packages/googleads/common.py", line 294,
in MakeSoapRequest
self._header_handler.SetHeaders(self.suds_client)
File "/Library/Python/2.7/site-packages/googleads/dfp.py", line 309, in
SetHeaders
headers=self._dfp_client.oauth2_client.CreateHttpHeader())
File "/Library/Python/2.7/site-packages/googleads/oauth2.py", line 150,
in CreateHttpHeader
self.Refresh()
File "/Library/Python/2.7/site-packages/googleads/oauth2.py", line 166,
in Refresh
self.disable_ssl_certificate_validation)))
File
"/Library/Python/2.7/site-packages/oauth2client-1.4.6-py2.7.egg/oauth2client/client.py",
line 573, in refresh
self._refresh(http.request)
File
"/Library/Python/2.7/site-packages/oauth2client-1.4.6-py2.7.egg/oauth2client/client.py",
line 744, in _refresh
self._do_refresh_request(http_request)
File
"/Library/Python/2.7/site-packages/oauth2client-1.4.6-py2.7.egg/oauth2client/client.py",
line 773, in _do_refresh_request
self.token_uri, method='POST', body=body, headers=headers)
File
"/Library/Python/2.7/site-packages/httplib2-0.9-py2.7.egg/httplib2/__init__.py",
line 1593, in request
(response, content) = self._request(conn, authority, uri, request_uri,
method, body, headers, redirections, cachekey)
File
"/Library/Python/2.7/site-packages/httplib2-0.9-py2.7.egg/httplib2/__init__.py",
line 1335, in _request
(response, content) = self._conn_request(conn, request_uri, method,
body, headers)
File
"/Library/Python/2.7/site-packages/httplib2-0.9-py2.7.egg/httplib2/__init__.py",
line 1257, in _conn_request
conn.connect()
File
"/Library/Python/2.7/site-packages/httplib2-0.9-py2.7.egg/httplib2/__init__.py",
line 1021, in connect
self.disable_ssl_certificate_validation, self.ca_certs)
File
"/Library/Python/2.7/site-packages/httplib2-0.9-py2.7.egg/httplib2/__init__.py",
line 80, in _ssl_wrap_socket
cert_reqs=cert_reqs, ca_certs=ca_certs)
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py",
line 891, in wrap_socket
ciphers=ciphers)
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py",
line 507, in __init__
self._context.load_verify_locations(ca_certs)
IOError: [Errno 13] Permission denied
>>> if __name__ == '__main__':
# Initialize client object.
dfp_client = dfp.DfpClient.LoadFromStorage()
main(dfp_client)
For R with RAdwords, a browser opens after I enter in my client_id,
client_secret, and developer token and says Error 400 (OAuth2Error)!!1 and
that I should email MYSELF for help
library(RAdwords)
google_auth <- doAuth()
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/e7d9f245-feda-4d55-b9fc-d25941ad1809%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.