AuthenticationError

  • The provided content describes an enum for possible authentication errors, listing various specific error types and their meanings.

  • Errors include issues with Google accounts, OAuth tokens, login cookies, client customer IDs, and developer tokens.

  • Authentication errors can occur due to invalid or expired tokens, mismatched user information, or incorrect account settings like two-step verification or advanced protection.

  • Some errors indicate problems with the Cloud organization associated with the project.

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_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.

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.

OAUTH_TOKEN_HEADER_INVALID

OAuth token HTTP header is malformed.

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.