Enum 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 enum google.ads.googleads.v10.errors.AuthorizationErrorEnum.AuthorizationError
    • Enum Constant Detail

      • 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;
      • 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;
      • 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;
      • 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;
    • 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 name
        java.lang.NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.google.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface com.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 name
        java.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.
      • getValueDescriptor

        public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
        Specified by:
        getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.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 name
        java.lang.NullPointerException - if the argument is null