2 段階認証プロセス
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Google 広告の承認では、Google 広告アカウントで 2 段階認証プロセスを有効にすることがサポートされています。次の表に、2 段階認証プロセスを有効にする 3 つのシナリオを示します。
ユーザーが自分の Google アカウントで 2 段階認証プロセスを有効にする
|
ユーザーが自分の判断で Google アカウントの 2 段階認証プロセスを有効にすることがあります。
2 段階認証プロセスを有効にした後
OAuth2 認証フローでは、Google は更新トークンを発行する前に、2 段階認証プロセスをユーザーに求めます。発行された更新トークンは、API 呼び出しに必要なアクセス トークンの生成に使用できます。
以前の更新トークン
ユーザーが 2 段階認証プロセスを有効にする前に発行された更新トークンは、ユーザーが 2 段階認証プロセスを有効にした後も有効です。更新トークンは、通常どおり有効なアクセス トークンを発行するために使用できます。
|
管理者が Google 広告アカウントのユーザーに対して Google アカウントで 2 段階認証プロセスを有効にするよう要求している
|
アカウント管理者は、Google 広告アカウントの全ユーザーに対して、Google アカウントで 2 段階認証プロセスを有効にするよう要求できます。
ユーザーが 2 段階認証プロセスを有効にする
OAuth2 認証フローでは、Google は更新トークンを発行する前に、2 段階認証プロセスをユーザーに求めます。発行された更新トークンは、API 呼び出しに必要なアクセス トークンの生成に使用できます。
ユーザーが 2 段階認証プロセスを有効にしていない
認証フローでは、2 段階認証プロセスのプロンプトは表示されません。この機能は、Google 広告アカウントの設定とは関係なく動作します。
発行された更新トークンは、アクセス トークンの発行に使用できます。ただし、このアクセス トークンを使用して行われた API 呼び出しは、ユーザーが Google アカウントで 2 段階認証プロセスを有効にするまで
TWO_STEP_VERIFICATION_NOT_ENROLLED エラーで失敗します。
以前の更新トークン
このルールは、2 段階認証プロセスの要件が適用される前に発行された更新トークンにも適用されます。更新トークンを使用してアクセス トークンを生成できますが、これらのアクセス トークンを使用して API 呼び出しを行うと、ユーザーが Google アカウントで 2 段階認証プロセスを有効にするまで
TWO_STEP_VERIFICATION_NOT_ENROLLED エラーが発生します。
|
Google では、Google 広告アカウントのすべてのユーザーが Google アカウントで 2 段階認証プロセスを有効にすることを義務付けています。{:#require-2-step}
|
場合によっては、Google 広告アカウントのすべてのユーザーに対して、Google アカウントで 2 段階認証プロセスを有効にするよう求めることがあります。
2 段階認証プロセスを有効にした後
OAuth2 認証フローでは、Google は更新トークンを発行する前に、ユーザーに 2 段階認証プロセスの入力を求めます。この機能は、Google が Google 広告アカウントのすべてのユーザーに 2 要素認証の有効化を義務付ける設定を有効にしているかどうかに関係なく利用できます。
発行された更新トークンは、通常どおり API 呼び出しに必要なアクセス トークンの生成に使用できます。
以前の更新トークン
ユーザーが 2 段階認証プロセスを有効にする前に発行された更新トークンは、ユーザーが 2 段階認証プロセスを有効にした後も有効です。更新トークンは、通常どおり有効なアクセス トークンを発行するために使用できます。
このアクセス トークンを使用して行われた API 呼び出しでは、2 段階認証プロセスの有効化が Google 広告アカウントの管理者ではなく Google によって開始されたため、TWO_STEP_VERIFICATION_NOT_ENROLLED エラーは発生しません。
|
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-27 UTC。
[null,null,["最終更新日 2025-08-27 UTC。"],[[["\u003cp\u003eGoogle Ads authorization supports enabling 2-Step Verification for enhanced security, impacting how refresh and access tokens function.\u003c/p\u003e\n"],["\u003cp\u003eUsers voluntarily enabling 2-Step Verification or being required to by administrators or Google will encounter a 2-Step Verification prompt during authentication.\u003c/p\u003e\n"],["\u003cp\u003eIf an administrator requires 2-Step Verification, API calls will fail with an error until it's enabled, even with existing refresh tokens.\u003c/p\u003e\n"],["\u003cp\u003eRefresh tokens issued before enabling 2-Step Verification generally remain valid but may be subject to the specific scenario and enforcement level.\u003c/p\u003e\n"],["\u003cp\u003eGoogle enforcing 2-Step Verification differs from administrator enforcement, as API calls with existing refresh tokens won't encounter the \u003ccode\u003eTWO_STEP_VERIFICATION_NOT_ENROLLED\u003c/code\u003e error.\u003c/p\u003e\n"]]],[],null,["# 2-Step Verification\n\nGoogle Ads authorization supports enabling [2-Step Verification on your Google Ads\naccount](//support.google.com/google-ads/answer/12864186). The following table\npresents the three scenarios for enabling 2-Step Verification.\n\n|-----------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### User turns on 2-Step Verification on their own Google Account | *A user might decide on their own to turn on 2-Step Verification for their Google Account.* #### After 2-Step Verification is enabled During the [OAuth2 authentication flow](/google-ads/api/docs/oauth/client-library), Google prompts the user for 2-Step Verification before issuing a refresh token. Once issued, the refresh token can be used to generate the access token needed in API calls. #### Previous refresh tokens A refresh token that was issued before the user enabled 2-Step Verification remains valid after the user enables 2-Step Verification. The refresh token can be used to issue valid access tokens as usual. |\n| ### Administrator requires users of a Google Ads account to enable 2-Step Verification on their Google Account | *An account administrator can require all users of a Google Ads account to [enable 2-Step Verification](https://support.google.com/google-ads/answer/12865295) on their Google Account.* #### User enables 2-Step Verification During the [OAuth2 authentication flow](/google-ads/api/docs/oauth/client-library), Google prompts the user for 2-Step Verification before issuing a refresh token. Once issued, the refresh token can be used to generate the access token needed in API calls. #### User doesn't enable 2-Step Verification During the authentication flow, the user won't see the 2-Step Verification prompt. This experience is independent of any settings on the Google Ads account. Once issued, the refresh token can be used to issue access tokens. However, the API calls made using this access token will fail with a [`TWO_STEP_VERIFICATION_NOT_ENROLLED`](/google-ads/api/reference/rpc/v21/AuthenticationErrorEnum.AuthenticationError#two_step_verification_not_enrolled) error until the user enables 2-Step Verification in their Google Account. ##### Previous refresh tokens This rule applies to refresh tokens issued prior to the 2-Step Verification requirement as well---the refresh token can be used to generate access tokens, but API calls made with these access tokens will fail with a [`TWO_STEP_VERIFICATION_NOT_ENROLLED`](/google-ads/api/reference/rpc/v21/AuthenticationErrorEnum.AuthenticationError#two_step_verification_not_enrolled) error until the user enables 2-Step Verification in their Google Account. |\n| ### Google requires all users of a Google Ads account to opt in to 2-step verification on their Google Account {:#require-2-step} | *In some cases, Google might require all users of a Google Ads account to enable 2-step verification on their Google Account.* #### After 2-Step Verification is enabled During the [OAuth2 authentication flow](/google-ads/api/docs/oauth/client-library), Google prompts the user for 2-Step Verification before issuing a refresh token. This experience is independent of whether Google opted in the Google Ads account to require all its users to enable 2-factor verification. Once issued, the refresh token can be used to generate the access token needed in API calls as usual. #### Previous refresh tokens A refresh token that was issued before the user enabled 2-Step Verification remains valid after the user enables 2-Step Verification. The refresh token can be used to issue a valid access token as usual. API calls made using this access token won't encounter the `TWO_STEP_VERIFICATION_NOT_ENROLLED` error because the 2-Step Verification opt-in was initiated by Google and not by the Google Ads account administrator. |"]]