Enum AuthorizationErrorEnum.AuthorizationError
- java.lang.Object
-
- java.lang.Enum<AuthorizationErrorEnum.AuthorizationError>
-
- com.google.ads.googleads.v10.errors.AuthorizationErrorEnum.AuthorizationError
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<AuthorizationErrorEnum.AuthorizationError>
- Enclosing class:
- AuthorizationErrorEnum
public static enum AuthorizationErrorEnum.AuthorizationError extends java.lang.Enum<AuthorizationErrorEnum.AuthorizationError> implements com.google.protobuf.ProtocolMessageEnum
Enum describing possible authorization errors.
Protobuf enumgoogle.ads.googleads.v10.errors.AuthorizationErrorEnum.AuthorizationError
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCESS_DENIED_FOR_ACCOUNT_TYPEThe customer (or login customer) isn't in Google Ads.ACTION_NOT_PERMITTEDThe user does not have permission to perform this action (e.g., ADD, UPDATE, REMOVE) on the resource or call a method.AUTHORIZATION_ERRORAuthorization of the client failed.CUSTOMER_NOT_ENABLEDThe customer can't be used because it isn't enabled.DEVELOPER_TOKEN_NOT_APPROVEDThe developer token is not approved.DEVELOPER_TOKEN_NOT_ON_ALLOWLISTThe developer token is not on the allow-list.DEVELOPER_TOKEN_PROHIBITEDThe developer token is not allowed with the project sent in the request.INCOMPLETE_SIGNUPSignup not complete.INVALID_LOGIN_CUSTOMER_ID_SERVING_CUSTOMER_ID_COMBINATIONThe login customer specified does not have access to the account specified, so the request is invalid.MISSING_TOSThe developer must sign the terms of service.PROJECT_DISABLEDThe Google Cloud project sent in the request does not have permission to access the api.SERVICE_ACCESS_DENIEDThe developer specified does not have access to the service.UNKNOWNThe received error code is not known in this version.UNRECOGNIZEDUNSPECIFIEDEnum unspecified.USER_PERMISSION_DENIEDUser doesn't have permission to access customer.
-
Field Summary
Fields Modifier and Type Field Description static intACCESS_DENIED_FOR_ACCOUNT_TYPE_VALUEThe customer (or login customer) isn't in Google Ads.static intACTION_NOT_PERMITTED_VALUEThe user does not have permission to perform this action (e.g., ADD, UPDATE, REMOVE) on the resource or call a method.static intAUTHORIZATION_ERROR_VALUEAuthorization of the client failed.static intCUSTOMER_NOT_ENABLED_VALUEThe customer can't be used because it isn't enabled.static intDEVELOPER_TOKEN_NOT_APPROVED_VALUEThe developer token is not approved.static intDEVELOPER_TOKEN_NOT_ON_ALLOWLIST_VALUEThe developer token is not on the allow-list.static intDEVELOPER_TOKEN_PROHIBITED_VALUEThe developer token is not allowed with the project sent in the request.static intINCOMPLETE_SIGNUP_VALUESignup not complete.static intINVALID_LOGIN_CUSTOMER_ID_SERVING_CUSTOMER_ID_COMBINATION_VALUEThe login customer specified does not have access to the account specified, so the request is invalid.static intMISSING_TOS_VALUEThe developer must sign the terms of service.static intPROJECT_DISABLED_VALUEThe Google Cloud project sent in the request does not have permission to access the api.static intSERVICE_ACCESS_DENIED_VALUEThe developer specified does not have access to the service.static intUNKNOWN_VALUEThe received error code is not known in this version.static intUNSPECIFIED_VALUEEnum unspecified.static intUSER_PERMISSION_DENIED_VALUEUser doesn't have permission to access customer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static AuthorizationErrorEnum.AuthorizationErrorforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<AuthorizationErrorEnum.AuthorizationError>internalGetValueMap()static AuthorizationErrorEnum.AuthorizationErrorvalueOf(int value)Deprecated.static AuthorizationErrorEnum.AuthorizationErrorvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static AuthorizationErrorEnum.AuthorizationErrorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static AuthorizationErrorEnum.AuthorizationError[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSPECIFIED
public static final AuthorizationErrorEnum.AuthorizationError UNSPECIFIED
Enum unspecified.
UNSPECIFIED = 0;
-
UNKNOWN
public static final AuthorizationErrorEnum.AuthorizationError UNKNOWN
The received error code is not known in this version.
UNKNOWN = 1;
-
USER_PERMISSION_DENIED
public static final AuthorizationErrorEnum.AuthorizationError USER_PERMISSION_DENIED
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
USER_PERMISSION_DENIED = 2;
-
DEVELOPER_TOKEN_NOT_ON_ALLOWLIST
public static final AuthorizationErrorEnum.AuthorizationError DEVELOPER_TOKEN_NOT_ON_ALLOWLIST
The developer token is not on the allow-list.
DEVELOPER_TOKEN_NOT_ON_ALLOWLIST = 13;
-
DEVELOPER_TOKEN_PROHIBITED
public static final AuthorizationErrorEnum.AuthorizationError DEVELOPER_TOKEN_PROHIBITED
The developer token is not allowed with the project sent in the request.
DEVELOPER_TOKEN_PROHIBITED = 4;
-
PROJECT_DISABLED
public static final AuthorizationErrorEnum.AuthorizationError PROJECT_DISABLED
The Google Cloud project sent in the request does not have permission to access the api.
PROJECT_DISABLED = 5;
-
AUTHORIZATION_ERROR
public static final AuthorizationErrorEnum.AuthorizationError AUTHORIZATION_ERROR
Authorization of the client failed.
AUTHORIZATION_ERROR = 6;
-
ACTION_NOT_PERMITTED
public static final AuthorizationErrorEnum.AuthorizationError ACTION_NOT_PERMITTED
The user does not have permission to perform this action (e.g., ADD, UPDATE, REMOVE) on the resource or call a method.
ACTION_NOT_PERMITTED = 7;
-
INCOMPLETE_SIGNUP
public static final AuthorizationErrorEnum.AuthorizationError INCOMPLETE_SIGNUP
Signup not complete.
INCOMPLETE_SIGNUP = 8;
-
CUSTOMER_NOT_ENABLED
public static final AuthorizationErrorEnum.AuthorizationError CUSTOMER_NOT_ENABLED
The customer can't be used because it isn't enabled.
CUSTOMER_NOT_ENABLED = 24;
-
MISSING_TOS
public static final AuthorizationErrorEnum.AuthorizationError MISSING_TOS
The developer must sign the terms of service. They can be found here: ads.google.com/aw/apicenter
MISSING_TOS = 9;
-
DEVELOPER_TOKEN_NOT_APPROVED
public static final AuthorizationErrorEnum.AuthorizationError DEVELOPER_TOKEN_NOT_APPROVED
The developer token is not approved. Non-approved developer tokens can only be used with test accounts.
DEVELOPER_TOKEN_NOT_APPROVED = 10;
-
INVALID_LOGIN_CUSTOMER_ID_SERVING_CUSTOMER_ID_COMBINATION
public static final AuthorizationErrorEnum.AuthorizationError INVALID_LOGIN_CUSTOMER_ID_SERVING_CUSTOMER_ID_COMBINATION
The login customer specified does not have access to the account specified, so the request is invalid.
INVALID_LOGIN_CUSTOMER_ID_SERVING_CUSTOMER_ID_COMBINATION = 11;
-
SERVICE_ACCESS_DENIED
public static final AuthorizationErrorEnum.AuthorizationError SERVICE_ACCESS_DENIED
The developer specified does not have access to the service.
SERVICE_ACCESS_DENIED = 12;
-
ACCESS_DENIED_FOR_ACCOUNT_TYPE
public static final AuthorizationErrorEnum.AuthorizationError ACCESS_DENIED_FOR_ACCOUNT_TYPE
The customer (or login customer) isn't in Google Ads. It belongs to another ads system.
ACCESS_DENIED_FOR_ACCOUNT_TYPE = 25;
-
UNRECOGNIZED
public static final AuthorizationErrorEnum.AuthorizationError UNRECOGNIZED
-
-
Field Detail
-
UNSPECIFIED_VALUE
public static final int UNSPECIFIED_VALUE
Enum unspecified.
UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUE
The received error code is not known in this version.
UNKNOWN = 1;- See Also:
- Constant Field Values
-
USER_PERMISSION_DENIED_VALUE
public static final int USER_PERMISSION_DENIED_VALUE
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
USER_PERMISSION_DENIED = 2;- See Also:
- Constant Field Values
-
DEVELOPER_TOKEN_NOT_ON_ALLOWLIST_VALUE
public static final int DEVELOPER_TOKEN_NOT_ON_ALLOWLIST_VALUE
The developer token is not on the allow-list.
DEVELOPER_TOKEN_NOT_ON_ALLOWLIST = 13;- See Also:
- Constant Field Values
-
DEVELOPER_TOKEN_PROHIBITED_VALUE
public static final int DEVELOPER_TOKEN_PROHIBITED_VALUE
The developer token is not allowed with the project sent in the request.
DEVELOPER_TOKEN_PROHIBITED = 4;- See Also:
- Constant Field Values
-
PROJECT_DISABLED_VALUE
public static final int PROJECT_DISABLED_VALUE
The Google Cloud project sent in the request does not have permission to access the api.
PROJECT_DISABLED = 5;- See Also:
- Constant Field Values
-
AUTHORIZATION_ERROR_VALUE
public static final int AUTHORIZATION_ERROR_VALUE
Authorization of the client failed.
AUTHORIZATION_ERROR = 6;- See Also:
- Constant Field Values
-
ACTION_NOT_PERMITTED_VALUE
public static final int ACTION_NOT_PERMITTED_VALUE
The user does not have permission to perform this action (e.g., ADD, UPDATE, REMOVE) on the resource or call a method.
ACTION_NOT_PERMITTED = 7;- See Also:
- Constant Field Values
-
INCOMPLETE_SIGNUP_VALUE
public static final int INCOMPLETE_SIGNUP_VALUE
Signup not complete.
INCOMPLETE_SIGNUP = 8;- See Also:
- Constant Field Values
-
CUSTOMER_NOT_ENABLED_VALUE
public static final int CUSTOMER_NOT_ENABLED_VALUE
The customer can't be used because it isn't enabled.
CUSTOMER_NOT_ENABLED = 24;- See Also:
- Constant Field Values
-
MISSING_TOS_VALUE
public static final int MISSING_TOS_VALUE
The developer must sign the terms of service. They can be found here: ads.google.com/aw/apicenter
MISSING_TOS = 9;- See Also:
- Constant Field Values
-
DEVELOPER_TOKEN_NOT_APPROVED_VALUE
public static final int DEVELOPER_TOKEN_NOT_APPROVED_VALUE
The developer token is not approved. Non-approved developer tokens can only be used with test accounts.
DEVELOPER_TOKEN_NOT_APPROVED = 10;- See Also:
- Constant Field Values
-
INVALID_LOGIN_CUSTOMER_ID_SERVING_CUSTOMER_ID_COMBINATION_VALUE
public static final int INVALID_LOGIN_CUSTOMER_ID_SERVING_CUSTOMER_ID_COMBINATION_VALUE
The login customer specified does not have access to the account specified, so the request is invalid.
INVALID_LOGIN_CUSTOMER_ID_SERVING_CUSTOMER_ID_COMBINATION = 11;- See Also:
- Constant Field Values
-
SERVICE_ACCESS_DENIED_VALUE
public static final int SERVICE_ACCESS_DENIED_VALUE
The developer specified does not have access to the service.
SERVICE_ACCESS_DENIED = 12;- See Also:
- Constant Field Values
-
ACCESS_DENIED_FOR_ACCOUNT_TYPE_VALUE
public static final int ACCESS_DENIED_FOR_ACCOUNT_TYPE_VALUE
The customer (or login customer) isn't in Google Ads. It belongs to another ads system.
ACCESS_DENIED_FOR_ACCOUNT_TYPE = 25;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static AuthorizationErrorEnum.AuthorizationError[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AuthorizationErrorEnum.AuthorizationError c : AuthorizationErrorEnum.AuthorizationError.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AuthorizationErrorEnum.AuthorizationError valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static AuthorizationErrorEnum.AuthorizationError valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
forNumber
public static AuthorizationErrorEnum.AuthorizationError forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<AuthorizationErrorEnum.AuthorizationError> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static AuthorizationErrorEnum.AuthorizationError valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-