Wenn Sie sich mit anderen Nutzern über unsere Produkte austauschen und Feedback geben möchten, können Sie dem offiziellen Google Ads-Discord-Kanal auf dem Server der
Google Advertising and Measurement Community beitreten.
Bestätigung in zwei Schritten
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Die Google Ads-Autorisierung unterstützt die Aktivierung der 2-Faktor-Authentifizierung für Ihr Google Ads-Konto. In der folgenden Tabelle sind die drei Szenarien für die Aktivierung der 2‑Faktor-Authentifizierung aufgeführt.
Nutzer aktiviert die 2‑Faktor-Authentifizierung für sein eigenes Google-Konto
|
Nutzer können die 2‑Faktor-Authentifizierung für ihr Google-Konto selbst aktivieren.
Nachdem die 2‑Faktor-Authentifizierung aktiviert wurde
Während des OAuth2-Authentifizierungsvorgangs fordert Google den Nutzer zur 2‑Faktor-Authentifizierung auf, bevor ein Aktualisierungstoken ausgestellt wird.
Nach der Ausstellung kann das Aktualisierungstoken verwendet werden, um das für API-Aufrufe erforderliche Zugriffstoken zu generieren.
Vorherige Aktualisierungstokens
Ein Aktualisierungstoken, das ausgestellt wurde, bevor der Nutzer die 2-Faktor-Authentifizierung aktiviert hat, bleibt auch nach der Aktivierung der 2-Faktor-Authentifizierung gültig. Mit dem Aktualisierungstoken können wie gewohnt gültige Zugriffstoken ausgestellt werden.
|
Administrator verlangt von Nutzern eines Google Ads-Kontos, dass sie die 2‑Faktor-Authentifizierung für ihr Google-Konto aktivieren
|
Ein Kontoadministrator kann festlegen, dass alle Nutzer eines Google Ads-Kontos die 2-Faktor-Authentifizierung in ihrem Google-Konto aktivieren müssen.
Nutzer aktiviert die 2-Faktor-Authentifizierung
Während des OAuth2-Authentifizierungsvorgangs fordert Google den Nutzer zur 2‑Faktor-Authentifizierung auf, bevor ein Aktualisierungstoken ausgestellt wird.
Nach der Ausstellung kann das Aktualisierungstoken verwendet werden, um das für API-Aufrufe erforderliche Zugriffstoken zu generieren.
Nutzer aktiviert die 2-Faktor-Authentifizierung nicht
Während der Authentifizierung wird der Nutzer nicht zur 2‑Faktor-Authentifizierung aufgefordert. Diese Funktion ist unabhängig von den Einstellungen im Google Ads-Konto.
Nach der Ausstellung kann das Aktualisierungstoken zum Ausstellen von Zugriffstokens verwendet werden. Die API-Aufrufe, die mit diesem Zugriffstoken erfolgen, schlagen jedoch mit dem Fehler
TWO_STEP_VERIFICATION_NOT_ENROLLED fehl, bis der Nutzer die 2‑Faktor-Authentifizierung in seinem Google-Konto aktiviert.
Vorherige Aktualisierungstokens
Diese Regel gilt auch für Aktualisierungstokens, die vor der Einführung der 2‑Faktor-Authentifizierung ausgestellt wurden. Das Aktualisierungstoken kann zwar zum Generieren von Zugriffstokens verwendet werden, API-Aufrufe mit diesen Zugriffstokens schlagen jedoch mit dem Fehler
TWO_STEP_VERIFICATION_NOT_ENROLLED fehl, bis der Nutzer die 2‑Faktor-Authentifizierung in seinem Google-Konto aktiviert.
|
Google verlangt, dass alle Nutzer eines Google Ads-Kontos die 2-Faktor-Authentifizierung in ihrem Google-Konto aktivieren. {:#require-2-step}
|
In einigen Fällen kann Google festlegen, dass alle Nutzer eines Google Ads-Kontos die 2-Faktor-Authentifizierung in ihrem Google-Konto aktivieren müssen.
Nachdem die 2‑Faktor-Authentifizierung aktiviert wurde
Während des OAuth2-Authentifizierungsvorgangs fordert Google den Nutzer zur 2‑Faktor-Authentifizierung auf, bevor ein Aktualisierungstoken ausgestellt wird.
Diese Funktion ist unabhängig davon, ob Google die 2‑Faktor-Authentifizierung für alle Nutzer des Google Ads-Kontos aktiviert hat.
Nach der Ausstellung kann das Aktualisierungstoken wie gewohnt zum Generieren des für API-Aufrufe erforderlichen Zugriffstokens verwendet werden.
Vorherige Aktualisierungstokens
Ein Aktualisierungstoken, das ausgestellt wurde, bevor der Nutzer die 2-Faktor-Authentifizierung aktiviert hat, bleibt auch nach der Aktivierung der 2-Faktor-Authentifizierung gültig. Mit dem Aktualisierungstoken kann wie gewohnt ein gültiges Zugriffstoken ausgestellt werden.
Bei API-Aufrufen, die mit diesem Zugriffstoken erfolgen, tritt der Fehler TWO_STEP_VERIFICATION_NOT_ENROLLED nicht auf, da die 2‑Faktor-Authentifizierung von Google und nicht vom Google Ads-Kontoadministrator aktiviert wurde.
|
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-08-27 (UTC).
[null,null,["Zuletzt aktualisiert: 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. |"]]