Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

module 'googleads.oauth2' has no attribute

未关闭
#393 2 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@BenRKarl 已经在做这个了。

开始于 2019年7月9日。

评估

这个 Issue 还没有评估数据。

描述

When running the access token example, I receive the error

AttributeError: module 'googleads.oauth2' has no attribute 'GetAPIScope'

However, I can run the following without issue

from googleads import oauth2

I install the library using pip install googleads and all the necessary files, including oauth2.py, can be found inside

/Users/username/DevEnv/lib/python3.7/site-packages/googleads/

Does this have something to do with how I import the package, or am I using an old example?

主要语言
Python
星标
749
派生
967
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

googleads/googleads-python-lib 的其他 Issue

查看 googleads/googleads-python-lib 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。