I am trying the following code in the python terminal as you have
stated in the get_all_campaigns.py using latest python library 12.1.0
for v201003,
import os
import sys
sys.path.append(os.path.join('..', '..', '..', '..'))
from adspygoogle.adwords.AdWordsClient import AdWordsClient
client = AdWordsClient(path=os.path.join('..', '..', '..', '..'))
campaign_service = client.GetCampaignService('
https://adwords-
sandbox.google.com', 'v201003')
selector = {}
campaigns = campaign_service.Get(selector)[0]
in this point it gives me the following error,
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/
lib/python2.6/site-packages/adspygoogle/adwords/CampaignService.py",
line 83, in Get
'Campaign', self._loc, request)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/
lib/python2.6/site-packages/adspygoogle/adwords/AdWordsWebService.py",
line 252, in CallMethod
self.__ManageSoap(buf, start_time, stop_time, error)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/
lib/python2.6/site-packages/adspygoogle/adwords/AdWordsWebService.py",
line 130, in __ManageSoap
raise Error(e)
adspygoogle.common.Errors.Error
I think its something to do with selector but don't have a clue about
the fix.