Python 使用Google adword API获取adword流量估计器时出错

Python 使用Google adword API获取adword流量估计器时出错,python,soap,google-ads-api,Python,Soap,Google Ads Api,我必须使用来获取我的adword详细信息。我认为可以通过两种方式运行 一,。 2. 当我在没有客户详细信息的情况下跟进时: 它遇到了问题 gridlex@gridlex-laptop:~/Documents$ wsdl2py --url=https://adwords.google.com/api/adwords/o/v201109/TrafficEstimatorService?wsdl --output- dir=. /usr/local/lib/python2.6/dist-packa

我必须使用来获取我的adword详细信息。我认为可以通过两种方式运行

一,。 2.

当我在没有客户详细信息的情况下跟进时:

它遇到了问题

 gridlex@gridlex-laptop:~/Documents$ wsdl2py --url=https://adwords.google.com/api/adwords/o/v201109/TrafficEstimatorService?wsdl --output- dir=.
/usr/local/lib/python2.6/dist-packages/ZSI/resolvers.py:7: DeprecationWarning: the   multifile module has been deprecated since Python 2.5
import multifile, mimetools, urllib
/usr/local/lib/python2.6/dist-packages/ZSI/wstools/Utility.py:143: DeprecationWarning: socket.ssl() is deprecated.  Use ssl.wrap_socket() instead.
 ssl = socket.ssl(realsock, self.key_file, self.cert_file)
 /usr/local/lib/python2.6/dist-packages/ZSI/wstools/Utility.py:144: DeprecationWarning:  FakeSocket is deprecated, and won't be in 3.x.  Use the result of ssl.wrap_socket() directly  instead.
 self.sock = httplib.FakeSocket(sock, ssl)
 Error loading   https://adwords.google.com/api/adwords/o/v201109/TrafficEstimatorService?wsdl: 
sendall
当我继续使用客户端库时

它询问有效的客户id。这里我不知道如何获取有效的客户id? 这是我的配置文件“adwords\u api\u python\u 15.0.6/adwords\u api\u auth.pkl”


您能在这方面提供帮助吗?

我相信您可以通过登录您的adWords帐户获得您的客户ID。它显示在右上角

是的,我试过了。但是它显示了相同的错误,比如无效的ID。我想必须激活MCC帐户。它是主要的吗?怎么样?
  (dp0
  S'clientCustomerId'
  p1
  S'436-059-9693'
  p2
 sS'developerToken'
 p3
 S'marketing@gridlex.com++USD'
 p4
 sS'clientEmail'
 p5
 S''
 p6
 sS'userAgent'
 p7
 S'AwApi-Python-15.0.6|GoogleTest'
 p8
 sS'password'
 p9
 S'mypassword'
p10
sS'email'
p11
S'marketing@gridlex.com'
p12
s.