Learn more about migrating to the Google Ads API by watching our latest webinar

AuthenticationError

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 UserId in the cookie.

NOT_ADS_USER

User in the cookie is not a valid Ads user.

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.