【发布时间】:2013-02-22 17:55:32
【问题描述】:
当我尝试在 Windws 7 中使用带有 Python 2.7 的 Adwords API 时出现以下错误: ImportError: 无法导入名称 AdWordsClient
使用以下代码(我从谷歌示例中获得):
import os
import sys
sys.path.insert(0, os.path.join('..', '..', '..', '..', '..'))
# Import appropriate classes from the client library.
from adspygoogle import AdWordsClient
from adspygoogle.common import Utils
【问题讨论】:
-
请编辑您的帖子以包含完整的回溯/错误消息。谢谢。
-
我已经解决了这个问题。我导入了库 fpconst。
标签: python google-ads-api