public enum AuthorizationErrorReason extends Enum<AuthorizationErrorReason>
Java class for AuthorizationError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="AuthorizationError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="UNABLE_TO_AUTHORIZE"/>
<enumeration value="NO_ADWORDS_ACCOUNT_FOR_CUSTOMER"/>
<enumeration value="USER_PERMISSION_DENIED"/>
<enumeration value="EFFECTIVE_USER_PERMISSION_DENIED"/>
<enumeration value="CUSTOMER_NOT_ACTIVE"/>
<enumeration value="USER_HAS_READONLY_PERMISSION"/>
<enumeration value="NO_CUSTOMER_FOUND"/>
<enumeration value="SERVICE_ACCESS_DENIED"/>
<enumeration value="TWO_STEP_VERIFICATION_NOT_ENROLLED"/>
<enumeration value="ADVANCED_PROTECTION_NOT_ENROLLED"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
ADVANCED_PROTECTION_NOT_ENROLLED
The customer has a policy to enforce enrollment in the Advanced Protection Program, but
the user is not enrolled.
|
CUSTOMER_NOT_ACTIVE
Access denied since the customer is not active.
|
EFFECTIVE_USER_PERMISSION_DENIED
Effective user doesn't have permission to access this customer.
|
NO_ADWORDS_ACCOUNT_FOR_CUSTOMER
Customer has no AdWords account.
|
NO_CUSTOMER_FOUND
No customer found.
|
SERVICE_ACCESS_DENIED
Developer doesn't have permission to access service.
|
TWO_STEP_VERIFICATION_NOT_ENROLLED
The customer has a policy to enforce 2-Step Verification, but the user is not enrolled.
|
UNABLE_TO_AUTHORIZE
Could not complete authorization due to an internal problem.
|
USER_HAS_READONLY_PERMISSION
User has read-only permission cannot mutate.
|
USER_PERMISSION_DENIED
User doesn't have permission to access customer.
|
| Modifier and Type | Method and Description |
|---|---|
static AuthorizationErrorReason |
fromValue(String v) |
String |
value() |
static AuthorizationErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AuthorizationErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuthorizationErrorReason UNABLE_TO_AUTHORIZE
public static final AuthorizationErrorReason NO_ADWORDS_ACCOUNT_FOR_CUSTOMER
public static final AuthorizationErrorReason USER_PERMISSION_DENIED
public static final AuthorizationErrorReason EFFECTIVE_USER_PERMISSION_DENIED
public static final AuthorizationErrorReason CUSTOMER_NOT_ACTIVE
public static final AuthorizationErrorReason USER_HAS_READONLY_PERMISSION
public static final AuthorizationErrorReason NO_CUSTOMER_FOUND
public static final AuthorizationErrorReason SERVICE_ACCESS_DENIED
public static final AuthorizationErrorReason TWO_STEP_VERIFICATION_NOT_ENROLLED
public static final AuthorizationErrorReason ADVANCED_PROTECTION_NOT_ENROLLED
public static AuthorizationErrorReason[] values()
for (AuthorizationErrorReason c : AuthorizationErrorReason.values()) System.out.println(c);
public static AuthorizationErrorReason valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
public static AuthorizationErrorReason fromValue(String v)
Copyright © 2023. All rights reserved.