I am having trouble getting set-up on the DFP API. I keep running into the same error (that seems like an authentication error).
>>> forecast = forecast_service.GetForecastById('47061610')[0]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/adspygoogle/common/GenericApiService.py", line 290, in CallMethod
self._ReadyOAuth()
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/adspygoogle/common/GenericApiService.py", line 255, in _ReadyOAuth
self._RefreshCredentialIfNecessary(self._headers['oauth2credentials'])
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/adspygoogle/common/GenericApiService.py", line 270, in _RefreshCredentialIfNecessary
self._headers['oauth2credentials'].refresh(httplib2.Http())
File "build/bdist.macosx-10.9-intel/egg/oauth2client/client.py", line 516, in refresh
File "build/bdist.macosx-10.9-intel/egg/oauth2client/client.py", line 653, in _refresh
File "build/bdist.macosx-10.9-intel/egg/oauth2client/client.py", line 682, in _do_refresh_request
File "/Library/Python/2.7/site-packages/httplib2-0.8-py2.7.egg/httplib2/__init__.py", line 1570, 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.8-py2.7.egg/httplib2/__init__.py", line 1317, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/Library/Python/2.7/site-packages/httplib2-0.8-py2.7.egg/httplib2/__init__.py", line 1252, in _conn_request
conn.connect()
File "/Library/Python/2.7/site-packages/httplib2-0.8-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.8-py2.7.egg/httplib2/__init__.py", line 80, in _ssl_wrap_socket
cert_reqs=cert_reqs, ca_certs=ca_certs)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 387, in wrap_socket
ciphers=ciphers)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 141, in __init__
ciphers)
ssl.SSLError: [Errno 185090050] _ssl.c:343: error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib