Enum google_api_proto::google::ads::searchads360::v0::errors::authentication_error_enum::AuthenticationError
source · #[repr(i32)]pub enum AuthenticationError {
Show 20 variants
Unspecified = 0,
Unknown = 1,
AuthenticationError = 2,
ClientCustomerIdInvalid = 5,
CustomerNotFound = 8,
GoogleAccountDeleted = 9,
GoogleAccountCookieInvalid = 10,
GoogleAccountAuthenticationFailed = 25,
GoogleAccountUserAndAdsUserMismatch = 12,
LoginCookieRequired = 13,
NotAdsUser = 14,
OauthTokenInvalid = 15,
OauthTokenExpired = 16,
OauthTokenDisabled = 17,
OauthTokenRevoked = 18,
OauthTokenHeaderInvalid = 19,
LoginCookieInvalid = 20,
UserIdInvalid = 22,
TwoStepVerificationNotEnrolled = 23,
AdvancedProtectionNotEnrolled = 24,
}
Expand description
Enum describing possible authentication errors.
Variants§
Unspecified = 0
Enum unspecified.
Unknown = 1
The received error code is not known in this version.
AuthenticationError = 2
Authentication of the request failed.
ClientCustomerIdInvalid = 5
Client customer ID is not a number.
CustomerNotFound = 8
No customer found for the provided customer ID.
GoogleAccountDeleted = 9
Client’s Google account is deleted.
GoogleAccountCookieInvalid = 10
Account login token in the cookie is invalid.
GoogleAccountAuthenticationFailed = 25
A problem occurred during Google account authentication.
GoogleAccountUserAndAdsUserMismatch = 12
The user in the Google account login token does not match the user ID in the cookie.
LoginCookieRequired = 13
Login cookie is required for authentication.
NotAdsUser = 14
The Google account that generated the OAuth access token is not associated with a Search Ads 360 account. Create a new account, or add the Google account to an existing Search Ads 360 account.
OauthTokenInvalid = 15
OAuth token in the header is not valid.
OauthTokenExpired = 16
OAuth token in the header has expired.
OauthTokenDisabled = 17
OAuth token in the header has been disabled.
OauthTokenRevoked = 18
OAuth token in the header has been revoked.
OauthTokenHeaderInvalid = 19
OAuth token HTTP header is malformed.
LoginCookieInvalid = 20
Login cookie is not valid.
UserIdInvalid = 22
User ID in the header is not a valid ID.
TwoStepVerificationNotEnrolled = 23
An account administrator changed this account’s authentication settings. To access this account, enable 2-Step Verification in your Google account at https://www.google.com/landing/2step.
AdvancedProtectionNotEnrolled = 24
An account administrator changed this account’s authentication settings. To access this account, enable Advanced Protection in your Google account at https://landing.google.com/advancedprotection.
Implementations§
source§impl AuthenticationError
impl AuthenticationError
sourcepub fn from_i32(value: i32) -> Option<AuthenticationError>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<AuthenticationError>
Converts an i32
to a AuthenticationError
, or None
if value
is not a valid variant.
source§impl AuthenticationError
impl AuthenticationError
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for AuthenticationError
impl Clone for AuthenticationError
source§fn clone(&self) -> AuthenticationError
fn clone(&self) -> AuthenticationError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AuthenticationError
impl Debug for AuthenticationError
source§impl Default for AuthenticationError
impl Default for AuthenticationError
source§fn default() -> AuthenticationError
fn default() -> AuthenticationError
source§impl From<AuthenticationError> for i32
impl From<AuthenticationError> for i32
source§fn from(value: AuthenticationError) -> i32
fn from(value: AuthenticationError) -> i32
source§impl Hash for AuthenticationError
impl Hash for AuthenticationError
source§impl Ord for AuthenticationError
impl Ord for AuthenticationError
source§fn cmp(&self, other: &AuthenticationError) -> Ordering
fn cmp(&self, other: &AuthenticationError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for AuthenticationError
impl PartialEq for AuthenticationError
source§fn eq(&self, other: &AuthenticationError) -> bool
fn eq(&self, other: &AuthenticationError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AuthenticationError
impl PartialOrd for AuthenticationError
source§fn partial_cmp(&self, other: &AuthenticationError) -> Option<Ordering>
fn partial_cmp(&self, other: &AuthenticationError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for AuthenticationError
impl TryFrom<i32> for AuthenticationError
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<AuthenticationError, DecodeError>
fn try_from(value: i32) -> Result<AuthenticationError, DecodeError>
impl Copy for AuthenticationError
impl Eq for AuthenticationError
impl StructuralPartialEq for AuthenticationError
Auto Trait Implementations§
impl Freeze for AuthenticationError
impl RefUnwindSafe for AuthenticationError
impl Send for AuthenticationError
impl Sync for AuthenticationError
impl Unpin for AuthenticationError
impl UnwindSafe for AuthenticationError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request