AuthenticationError
Stay organized with collections
Save and categorize content based on your preferences.
Enum describing possible authentication errors.
Enums |
UNSPECIFIED
|
Enum unspecified. |
UNKNOWN
|
The received error code is not known in this version. |
AUTHENTICATION_ERROR
|
Authentication of the request failed. |
CLIENT_CUSTOMER_ID_INVALID
|
Client customer ID is not a number. |
CUSTOMER_NOT_FOUND
|
No customer found for the provided customer ID. |
GOOGLE_ACCOUNT_DELETED
|
Client's Google account is deleted. |
GOOGLE_ACCOUNT_COOKIE_INVALID
|
Google account login token in the cookie is invalid. |
GOOGLE_ACCOUNT_AUTHENTICATION_FAILED
|
A problem occurred during Google account authentication. |
GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH
|
The user in the Google account login token does not match the user ID in the cookie. |
LOGIN_COOKIE_REQUIRED
|
Login cookie is required for authentication. |
NOT_ADS_USER
|
The Google account that generated the OAuth access token is not associated with a Google Ads account. Create a new account, or add the Google account to an existing Google Ads account. |
OAUTH_TOKEN_INVALID
|
OAuth token in the header is not valid. |
OAUTH_TOKEN_EXPIRED
|
OAuth token in the header has expired. |
OAUTH_TOKEN_DISABLED
|
OAuth token in the header has been disabled. |
OAUTH_TOKEN_REVOKED
|
OAuth token in the header has been revoked. |
LOGIN_COOKIE_INVALID
|
Login cookie is not valid. |
USER_ID_INVALID
|
User ID in the header is not a valid ID. |
TWO_STEP_VERIFICATION_NOT_ENROLLED
|
An account administrator changed this account's authentication settings. To access this Google Ads account, enable 2-Step Verification in your Google account at https://www.google.com/landing/2step. |
ADVANCED_PROTECTION_NOT_ENROLLED
|
An account administrator changed this account's authentication settings. To access this Google Ads account, enable Advanced Protection in your Google account at https://landing.google.com/advancedprotection. |
ORGANIZATION_NOT_RECOGNIZED
|
The Cloud organization associated with the project is not recognized. |
ORGANIZATION_NOT_APPROVED
|
The Cloud organization associated with the project is not approved for prod access. |
ORGANIZATION_NOT_ASSOCIATED_WITH_DEVELOPER_TOKEN
|
The Cloud organization associated with the project is not associated with the developer token. |
DEVELOPER_TOKEN_INVALID
|
The developer token is not valid. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["Enum describing possible authentication errors.\n\n| Enums ||\n|----------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `UNSPECIFIED` | Enum unspecified. |\n| `UNKNOWN` | The received error code is not known in this version. |\n| `AUTHENTICATION_ERROR` | Authentication of the request failed. |\n| `CLIENT_CUSTOMER_ID_INVALID` | Client customer ID is not a number. |\n| `CUSTOMER_NOT_FOUND` | No customer found for the provided customer ID. |\n| `GOOGLE_ACCOUNT_DELETED` | Client's Google account is deleted. |\n| `GOOGLE_ACCOUNT_COOKIE_INVALID` | Google account login token in the cookie is invalid. |\n| `GOOGLE_ACCOUNT_AUTHENTICATION_FAILED` | A problem occurred during Google account authentication. |\n| `GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH` | The user in the Google account login token does not match the user ID in the cookie. |\n| `LOGIN_COOKIE_REQUIRED` | Login cookie is required for authentication. |\n| `NOT_ADS_USER` | The Google account that generated the OAuth access token is not associated with a Google Ads account. Create a new account, or add the Google account to an existing Google Ads account. |\n| `OAUTH_TOKEN_INVALID` | OAuth token in the header is not valid. |\n| `OAUTH_TOKEN_EXPIRED` | OAuth token in the header has expired. |\n| `OAUTH_TOKEN_DISABLED` | OAuth token in the header has been disabled. |\n| `OAUTH_TOKEN_REVOKED` | OAuth token in the header has been revoked. |\n| `OAUTH_TOKEN_HEADER_INVALID` | OAuth token HTTP header is malformed. |\n| `LOGIN_COOKIE_INVALID` | Login cookie is not valid. |\n| `USER_ID_INVALID` | User ID in the header is not a valid ID. |\n| `TWO_STEP_VERIFICATION_NOT_ENROLLED` | An account administrator changed this account's authentication settings. To access this Google Ads account, enable 2-Step Verification in your Google account at \u003chttps://www.google.com/landing/2step\u003e. |\n| `ADVANCED_PROTECTION_NOT_ENROLLED` | An account administrator changed this account's authentication settings. To access this Google Ads account, enable Advanced Protection in your Google account at \u003chttps://landing.google.com/advancedprotection\u003e. |\n| `ORGANIZATION_NOT_RECOGNIZED` | The Cloud organization associated with the project is not recognized. |\n| `ORGANIZATION_NOT_APPROVED` | The Cloud organization associated with the project is not approved for prod access. |\n| `ORGANIZATION_NOT_ASSOCIATED_WITH_DEVELOPER_TOKEN` | The Cloud organization associated with the project is not associated with the developer token. |\n| `DEVELOPER_TOKEN_INVALID` | The developer token is not valid. |"]]