You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report! Looks like some updates may be in order.
So first off, the GetAPIScope function is a helper intended to get the appropriate scope for APIs supported by this library. Thus, the import you're looking for is:
from googleads import oauth2
Second, it looks like there's another issue you've not yet noticed where from_client_secrets_file is not quite correct; scope should not be a keyword argument. It should instead look like:
When running the code in https://github.com/googleads/googleads-python-lib/wiki/API-access-on-behalf-of-your-clients-(web-flow)#step-2---setting-up-the-client-library I am encountering
NameError: name 'oauth2' is not defined
. This seems to be correct because there is no import anywhere of anyoauth2
namespace.If I change the code to
I get a new error:
AttributeError: 'module' object has no attribute 'GetAPIScope'
The text was updated successfully, but these errors were encountered: