I'm trying to connect to adwords api, and my authentication is failing when attempting with both Python and R.
>>> 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