Enum Class AuthorizationErrorEnum.AuthorizationError
java.lang.Object
java.lang.Enum<AuthorizationErrorEnum.AuthorizationError>
com.google.ads.googleads.v18.errors.AuthorizationErrorEnum.AuthorizationError
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<AuthorizationErrorEnum.AuthorizationError>,Constable
- Enclosing class:
- AuthorizationErrorEnum
public static enum AuthorizationErrorEnum.AuthorizationError
extends Enum<AuthorizationErrorEnum.AuthorizationError>
implements com.google.protobuf.ProtocolMessageEnum
Enum describing possible authorization errors.Protobuf enum
google.ads.googleads.v18.errors.AuthorizationErrorEnum.AuthorizationError-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe customer (or login customer) isn't in Google Ads.The user does not have permission to perform this action (for example, ADD, UPDATE, REMOVE) on the resource or call a method.The user does not have permission to perform this action on the resource or method because the Google Ads account is suspended.Authorization of the client failed.The Google Cloud project is not under the required organization.The customer account can't be accessed because it is not yet enabled or has been deactivated.The developer token is only approved for use with test accounts.The developer token is not on the allow-list.The developer token is not allowed with the project sent in the request.Signup not complete.The login customer specified does not have access to the account specified, so the request is invalid.The developer does not have access to the metrics queried.The developer must sign the terms of service.The Google Cloud project sent in the request does not have permission to access the api.The developer specified does not have access to the service.The received error code is not known in this version.Enum unspecified.User doesn't have permission to access customer. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe customer (or login customer) isn't in Google Ads.static final intThe user does not have permission to perform this action on the resource or method because the Google Ads account is suspended.static final intThe user does not have permission to perform this action (for example, ADD, UPDATE, REMOVE) on the resource or call a method.static final intAuthorization of the client failed.static final intThe Google Cloud project is not under the required organization.static final intThe customer account can't be accessed because it is not yet enabled or has been deactivated.static final intThe developer token is only approved for use with test accounts.static final intThe developer token is not on the allow-list.static final intThe developer token is not allowed with the project sent in the request.static final intSignup not complete.static final intThe login customer specified does not have access to the account specified, so the request is invalid.static final intThe developer does not have access to the metrics queried.static final intThe developer must sign the terms of service.static final intThe Google Cloud project sent in the request does not have permission to access the api.static final intThe developer specified does not have access to the service.static final intThe received error code is not known in this version.static final intEnum unspecified.static final intUser doesn't have permission to access customer. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<AuthorizationErrorEnum.AuthorizationError>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNSPECIFIED
Enum unspecified.
UNSPECIFIED = 0; -
UNKNOWN
The received error code is not known in this version.
UNKNOWN = 1; -
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
The developer token is not on the allow-list.
DEVELOPER_TOKEN_NOT_ON_ALLOWLIST = 13; -
DEVELOPER_TOKEN_PROHIBITED
The developer token is not allowed with the project sent in the request.
DEVELOPER_TOKEN_PROHIBITED = 4; -
PROJECT_DISABLED
The Google Cloud project sent in the request does not have permission to access the api.
PROJECT_DISABLED = 5; -
AUTHORIZATION_ERROR
Authorization of the client failed.
AUTHORIZATION_ERROR = 6; -
ACTION_NOT_PERMITTED
The user does not have permission to perform this action (for example, ADD, UPDATE, REMOVE) on the resource or call a method.
ACTION_NOT_PERMITTED = 7; -
INCOMPLETE_SIGNUP
Signup not complete.
INCOMPLETE_SIGNUP = 8; -
CUSTOMER_NOT_ENABLED
The customer account can't be accessed because it is not yet enabled or has been deactivated.
CUSTOMER_NOT_ENABLED = 24; -
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
The developer token is only approved for use with test accounts. To access non-test accounts, apply for Basic or Standard access.
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_COMBINATIONThe 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
The developer specified does not have access to the service.
SERVICE_ACCESS_DENIED = 12; -
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; -
METRIC_ACCESS_DENIED
The developer does not have access to the metrics queried.
METRIC_ACCESS_DENIED = 26; -
CLOUD_PROJECT_NOT_UNDER_ORGANIZATION
The Google Cloud project is not under the required organization.
CLOUD_PROJECT_NOT_UNDER_ORGANIZATION = 27; -
ACTION_NOT_PERMITTED_FOR_SUSPENDED_ACCOUNT
public static final AuthorizationErrorEnum.AuthorizationError ACTION_NOT_PERMITTED_FOR_SUSPENDED_ACCOUNTThe user does not have permission to perform this action on the resource or method because the Google Ads account is suspended.
ACTION_NOT_PERMITTED_FOR_SUSPENDED_ACCOUNT = 28; -
UNRECOGNIZED
-
-
Field Details
-
UNSPECIFIED_VALUE
public static final int UNSPECIFIED_VALUEEnum unspecified.
UNSPECIFIED = 0;- See Also:
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUEThe received error code is not known in this version.
UNKNOWN = 1;- See Also:
-
USER_PERMISSION_DENIED_VALUE
public static final int USER_PERMISSION_DENIED_VALUEUser 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:
-
DEVELOPER_TOKEN_NOT_ON_ALLOWLIST_VALUE
public static final int DEVELOPER_TOKEN_NOT_ON_ALLOWLIST_VALUEThe developer token is not on the allow-list.
DEVELOPER_TOKEN_NOT_ON_ALLOWLIST = 13;- See Also:
-
DEVELOPER_TOKEN_PROHIBITED_VALUE
public static final int DEVELOPER_TOKEN_PROHIBITED_VALUEThe developer token is not allowed with the project sent in the request.
DEVELOPER_TOKEN_PROHIBITED = 4;- See Also:
-
PROJECT_DISABLED_VALUE
public static final int PROJECT_DISABLED_VALUEThe Google Cloud project sent in the request does not have permission to access the api.
PROJECT_DISABLED = 5;- See Also:
-
AUTHORIZATION_ERROR_VALUE
public static final int AUTHORIZATION_ERROR_VALUEAuthorization of the client failed.
AUTHORIZATION_ERROR = 6;- See Also:
-
ACTION_NOT_PERMITTED_VALUE
public static final int ACTION_NOT_PERMITTED_VALUEThe user does not have permission to perform this action (for example, ADD, UPDATE, REMOVE) on the resource or call a method.
ACTION_NOT_PERMITTED = 7;- See Also:
-
INCOMPLETE_SIGNUP_VALUE
public static final int INCOMPLETE_SIGNUP_VALUESignup not complete.
INCOMPLETE_SIGNUP = 8;- See Also:
-
CUSTOMER_NOT_ENABLED_VALUE
public static final int CUSTOMER_NOT_ENABLED_VALUEThe customer account can't be accessed because it is not yet enabled or has been deactivated.
CUSTOMER_NOT_ENABLED = 24;- See Also:
-
MISSING_TOS_VALUE
public static final int MISSING_TOS_VALUEThe developer must sign the terms of service. They can be found here: ads.google.com/aw/apicenter
MISSING_TOS = 9;- See Also:
-
DEVELOPER_TOKEN_NOT_APPROVED_VALUE
public static final int DEVELOPER_TOKEN_NOT_APPROVED_VALUEThe developer token is only approved for use with test accounts. To access non-test accounts, apply for Basic or Standard access.
DEVELOPER_TOKEN_NOT_APPROVED = 10;- See Also:
-
INVALID_LOGIN_CUSTOMER_ID_SERVING_CUSTOMER_ID_COMBINATION_VALUE
public static final int INVALID_LOGIN_CUSTOMER_ID_SERVING_CUSTOMER_ID_COMBINATION_VALUEThe 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:
-
SERVICE_ACCESS_DENIED_VALUE
public static final int SERVICE_ACCESS_DENIED_VALUEThe developer specified does not have access to the service.
SERVICE_ACCESS_DENIED = 12;- See Also:
-
ACCESS_DENIED_FOR_ACCOUNT_TYPE_VALUE
public static final int ACCESS_DENIED_FOR_ACCOUNT_TYPE_VALUEThe customer (or login customer) isn't in Google Ads. It belongs to another ads system.
ACCESS_DENIED_FOR_ACCOUNT_TYPE = 25;- See Also:
-
METRIC_ACCESS_DENIED_VALUE
public static final int METRIC_ACCESS_DENIED_VALUEThe developer does not have access to the metrics queried.
METRIC_ACCESS_DENIED = 26;- See Also:
-
CLOUD_PROJECT_NOT_UNDER_ORGANIZATION_VALUE
public static final int CLOUD_PROJECT_NOT_UNDER_ORGANIZATION_VALUEThe Google Cloud project is not under the required organization.
CLOUD_PROJECT_NOT_UNDER_ORGANIZATION = 27;- See Also:
-
ACTION_NOT_PERMITTED_FOR_SUSPENDED_ACCOUNT_VALUE
public static final int ACTION_NOT_PERMITTED_FOR_SUSPENDED_ACCOUNT_VALUEThe user does not have permission to perform this action on the resource or method because the Google Ads account is suspended.
ACTION_NOT_PERMITTED_FOR_SUSPENDED_ACCOUNT = 28;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- 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.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- 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 class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-