当我使用 generate_refresh_token.py
:
pipenv run python authentication/generate_refresh_token.py --client_id xxxxx --client_secret yyyy
Log into the Google Account you use to access your AdWords account and go to the following URL:
https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=xxxx&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fadwords&state=xxxxx&prompt=consent&access_type=offline
当我按照链接操作时,我得到了一个403 "org_internal.This client is restricted to users within its organization",我使用的是google账户,该账户有一个与组织域相匹配的,我被邀请到项目中。This client is restricted to users within its organization", I'm using a google account that has the [email protected] that matches the organization's domain and I have been invited to the project.
我的google账户还需要什么才能被视为 "组织 "的一部分?
你正在使用的谷歌账户可能是一个 "消费者账户",即使它有相同的@domain.com作为组织,你正在尝试使用。
您需要您的 IT 管理员按照以下过程将消费者帐户迁移到组织的 Google 云帐户上 此处.
您将收到一封名为 "谷歌账户转移请求 "的邮件,提示您授权转移。