使用Google Adword API获取adword的点击量估算工具时出错

时间:2012-01-25 15:41:59

标签: python soap google-adwords

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

1。without client library 2. With client library

当我关注时没有客户详情部分:

它遇到了问题。

 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_api_python_15.0.6 / adwords_api_auth.pkl”

  (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.

你能帮忙吗?

1 个答案:

答案 0 :(得分:0)

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