Interested in sharing your feedback about the Google Ads API?
Sign up to be invited to participate in user research!
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. |
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 2024-10-12 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 2024-10-12 UTC."],[[["This enum describes various authentication errors that can occur during the Google Ads API authentication process."],["Errors can be related to invalid or expired credentials such as OAuth tokens, login cookies, or customer IDs."],["Issues with Google Account access, like deletion or authentication failures, are also covered by this enum."],["Specific errors indicate requirements for 2-Step Verification or Advanced Protection for account access."],["Problems with Cloud organization recognition or association with developer tokens are also included in this enum."]]],["This describes authentication error enums. Errors include `UNSPECIFIED`, `UNKNOWN`, and `AUTHENTICATION_ERROR`. Specific issues range from invalid or missing client customer/user IDs to problems with Google account authentication, including deleted accounts and mismatched users. OAuth token errors cover invalid, expired, disabled, revoked, and malformed tokens. Other issues include missing/invalid login cookies, non-enrolled 2-step verification, and unrecognized/unapproved Cloud organizations. Users might also not be associated with a Google Ads account.\n"]]