googleads / googleads/googleads-python-lib

module 'googleads.oauth2' has no attribute

Open
#393 2 comments 0 reactions 1 assignee View on GitHub

@BenRKarl is already working on this.

Since Jul 9, 2019.

Dominant language
Python
Stars
749
Forks
967
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.