I have configured the YAML file as instructed and installed the python client library for google adword api. However When i tried to run the sample code for generating keyword ideas. I have encountered this error:
Traceback (most recent call last):
File "<ipython-input-1-28349b00a211>", line 1, in <module>
runfile('C:/Users/ASUS/Documents/GitHub/FYP_data_analysis/google/keyword_idea generation_api_google.py', wdir='C:/Users/ASUS/Documents/GitHub/FYP_data_analysis/google')
File "C:\Anaconda3\envs\py27\lib\site-packages\spyder\utils\site\sitecustomize.py", line 866, in runfile
execfile(filename, namespace)
File "C:\Anaconda3\envs\py27\lib\site-packages\spyder\utils\site\sitecustomize.py", line 87, in execfile
exec(compile(scripttext, filename, 'exec'), glob, loc)
File "C:/Users/ASUS/Documents/GitHub/FYP_data_analysis/google/keyword_idea generation_api_google.py", line 120, in <module>
retrieveKeywordIdea(adwords_client, words)
File "C:/Users/ASUS/Documents/GitHub/FYP_data_analysis/google/keyword_idea generation_api_google.py", line 90, in retrieveKeywordIdea
page = targeting_idea_service.get(selector)
File "build\bdist.win-amd64\egg\googleads\common.py", line 700, in MakeSoapRequest
*[_PackForSuds(arg, self.suds_client.factory) for arg in args])
File "C:\Anaconda3\envs\py27\lib\site-packages\suds\client.py", line 521, in __call__
return client.invoke(args, kwargs)
File "C:\Anaconda3\envs\py27\lib\site-packages\suds\client.py", line 581, in invoke
result = self.send(soapenv)
File "C:\Anaconda3\envs\py27\lib\site-packages\suds\client.py", line 613, in send
reply = self.options.transport.send(request)
File "build\bdist.win-amd64\egg\googleads\util.py", line 98, in PatchedHttpTransportSend
fp = self.u2open(u2request)
File "C:\Anaconda3\envs\py27\lib\site-packages\suds\transport\http.py", line 132, in u2open
return url.open(u2request, timeout=tm)
File "C:\Anaconda3\envs\py27\lib\urllib2.py", line 435, in open
response = meth(req, response)
File "C:\Anaconda3\envs\py27\lib\urllib2.py", line 548, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Anaconda3\envs\py27\lib\urllib2.py", line 473, in error
return self._call_chain(*args)
File "C:\Anaconda3\envs\py27\lib\urllib2.py", line 407, in _call_chain
result = func(*args)
File "C:\Anaconda3\envs\py27\lib\urllib2.py", line 556, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: Internal Server Error
I hope anyone can enlight me on this matter. Thanks a lot.