Enum google_api_proto::google::ads::googleads::v14::errors::authorization_error_enum::AuthorizationError
source · #[repr(i32)]pub enum AuthorizationError {
Show 17 variants
Unspecified = 0,
Unknown = 1,
UserPermissionDenied = 2,
DeveloperTokenNotOnAllowlist = 13,
DeveloperTokenProhibited = 4,
ProjectDisabled = 5,
AuthorizationError = 6,
ActionNotPermitted = 7,
IncompleteSignup = 8,
CustomerNotEnabled = 24,
MissingTos = 9,
DeveloperTokenNotApproved = 10,
InvalidLoginCustomerIdServingCustomerIdCombination = 11,
ServiceAccessDenied = 12,
AccessDeniedForAccountType = 25,
MetricAccessDenied = 26,
CloudProjectNotUnderOrganization = 27,
}
Expand description
Enum describing possible authorization errors.
Variants§
Unspecified = 0
Enum unspecified.
Unknown = 1
The received error code is not known in this version.
UserPermissionDenied = 2
User doesn’t have permission to access customer. Note: If you’re
accessing a client customer, the manager’s customer ID must be set in the
login-customer-id
header. Learn more at
https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid
DeveloperTokenNotOnAllowlist = 13
The developer token is not on the allow-list.
DeveloperTokenProhibited = 4
The developer token is not allowed with the project sent in the request.
ProjectDisabled = 5
The Google Cloud project sent in the request does not have permission to access the api.
AuthorizationError = 6
Authorization of the client failed.
ActionNotPermitted = 7
The user does not have permission to perform this action (for example, ADD, UPDATE, REMOVE) on the resource or call a method.
IncompleteSignup = 8
Signup not complete.
CustomerNotEnabled = 24
The customer account can’t be accessed because it is not yet enabled or has been deactivated.
MissingTos = 9
The developer must sign the terms of service. They can be found here: ads.google.com/aw/apicenter
DeveloperTokenNotApproved = 10
The developer token is only approved for use with test accounts. To access non-test accounts, apply for Basic or Standard access.
InvalidLoginCustomerIdServingCustomerIdCombination = 11
The login customer specified does not have access to the account specified, so the request is invalid.
ServiceAccessDenied = 12
The developer specified does not have access to the service.
AccessDeniedForAccountType = 25
The customer (or login customer) isn’t in Google Ads. It belongs to another ads system.
MetricAccessDenied = 26
The developer does not have access to the metrics queried.
CloudProjectNotUnderOrganization = 27
The Google Cloud project is not under the required organization.
Implementations§
source§impl AuthorizationError
impl AuthorizationError
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 AuthorizationError
impl Clone for AuthorizationError
source§fn clone(&self) -> AuthorizationError
fn clone(&self) -> AuthorizationError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AuthorizationError
impl Debug for AuthorizationError
source§impl Default for AuthorizationError
impl Default for AuthorizationError
source§fn default() -> AuthorizationError
fn default() -> AuthorizationError
source§impl From<AuthorizationError> for i32
impl From<AuthorizationError> for i32
source§fn from(value: AuthorizationError) -> i32
fn from(value: AuthorizationError) -> i32
source§impl Hash for AuthorizationError
impl Hash for AuthorizationError
source§impl Ord for AuthorizationError
impl Ord for AuthorizationError
source§fn cmp(&self, other: &AuthorizationError) -> Ordering
fn cmp(&self, other: &AuthorizationError) -> 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 AuthorizationError
impl PartialEq for AuthorizationError
source§fn eq(&self, other: &AuthorizationError) -> bool
fn eq(&self, other: &AuthorizationError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AuthorizationError
impl PartialOrd for AuthorizationError
source§fn partial_cmp(&self, other: &AuthorizationError) -> Option<Ordering>
fn partial_cmp(&self, other: &AuthorizationError) -> 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 AuthorizationError
impl TryFrom<i32> for AuthorizationError
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<AuthorizationError, DecodeError>
fn try_from(value: i32) -> Result<AuthorizationError, DecodeError>
impl Copy for AuthorizationError
impl Eq for AuthorizationError
impl StructuralPartialEq for AuthorizationError
Auto Trait Implementations§
impl Freeze for AuthorizationError
impl RefUnwindSafe for AuthorizationError
impl Send for AuthorizationError
impl Sync for AuthorizationError
impl Unpin for AuthorizationError
impl UnwindSafe for AuthorizationError
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