Enum Class RequestErrorEnum.RequestError

java.lang.Object
java.lang.Enum<RequestErrorEnum.RequestError>
com.google.ads.googleads.v18.errors.RequestErrorEnum.RequestError
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<RequestErrorEnum.RequestError>, Constable
Enclosing class:
RequestErrorEnum

public static enum RequestErrorEnum.RequestError extends Enum<RequestErrorEnum.RequestError> implements com.google.protobuf.ProtocolMessageEnum
 Enum describing possible request errors.
 
Protobuf enum google.ads.googleads.v18.errors.RequestErrorEnum.RequestError
  • Enum Constant Details

    • UNSPECIFIED

      public static final RequestErrorEnum.RequestError UNSPECIFIED
       Enum unspecified.
       
      UNSPECIFIED = 0;
    • UNKNOWN

      public static final RequestErrorEnum.RequestError UNKNOWN
       The received error code is not known in this version.
       
      UNKNOWN = 1;
    • RESOURCE_NAME_MISSING

      public static final RequestErrorEnum.RequestError RESOURCE_NAME_MISSING
       Resource name is required for this request.
       
      RESOURCE_NAME_MISSING = 3;
    • RESOURCE_NAME_MALFORMED

      public static final RequestErrorEnum.RequestError RESOURCE_NAME_MALFORMED
       Resource name provided is malformed.
       
      RESOURCE_NAME_MALFORMED = 4;
    • BAD_RESOURCE_ID

      public static final RequestErrorEnum.RequestError BAD_RESOURCE_ID
       Resource name provided is malformed.
       
      BAD_RESOURCE_ID = 17;
    • INVALID_CUSTOMER_ID

      public static final RequestErrorEnum.RequestError INVALID_CUSTOMER_ID
       Customer ID is invalid.
       
      INVALID_CUSTOMER_ID = 16;
    • OPERATION_REQUIRED

      public static final RequestErrorEnum.RequestError OPERATION_REQUIRED
       Mutate operation should have either create, update, or remove specified.
       
      OPERATION_REQUIRED = 5;
    • RESOURCE_NOT_FOUND

      public static final RequestErrorEnum.RequestError RESOURCE_NOT_FOUND
       Requested resource not found.
       
      RESOURCE_NOT_FOUND = 6;
    • INVALID_PAGE_TOKEN

      public static final RequestErrorEnum.RequestError INVALID_PAGE_TOKEN
       Next page token specified in user request is invalid.
       
      INVALID_PAGE_TOKEN = 7;
    • EXPIRED_PAGE_TOKEN

      public static final RequestErrorEnum.RequestError EXPIRED_PAGE_TOKEN
       Next page token specified in user request has expired.
       
      EXPIRED_PAGE_TOKEN = 8;
    • INVALID_PAGE_SIZE

      public static final RequestErrorEnum.RequestError INVALID_PAGE_SIZE
       Page size specified in user request is invalid.
       
      INVALID_PAGE_SIZE = 22;
    • PAGE_SIZE_NOT_SUPPORTED

      public static final RequestErrorEnum.RequestError PAGE_SIZE_NOT_SUPPORTED
       Setting the page size is not supported, and will be unavailable in a
       future version.
       
      PAGE_SIZE_NOT_SUPPORTED = 40;
    • REQUIRED_FIELD_MISSING

      public static final RequestErrorEnum.RequestError REQUIRED_FIELD_MISSING
       Required field is missing.
       
      REQUIRED_FIELD_MISSING = 9;
    • IMMUTABLE_FIELD

      public static final RequestErrorEnum.RequestError IMMUTABLE_FIELD
       The field cannot be modified because it's immutable. It's also possible
       that the field can be modified using 'create' operation but not 'update'.
       
      IMMUTABLE_FIELD = 11;
    • TOO_MANY_MUTATE_OPERATIONS

      public static final RequestErrorEnum.RequestError TOO_MANY_MUTATE_OPERATIONS
       Received too many entries in request.
       
      TOO_MANY_MUTATE_OPERATIONS = 13;
    • CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT

      public static final RequestErrorEnum.RequestError CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT
       Request cannot be executed by a manager account.
       
      CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT = 14;
    • CANNOT_MODIFY_FOREIGN_FIELD

      public static final RequestErrorEnum.RequestError CANNOT_MODIFY_FOREIGN_FIELD
       Mutate request was attempting to modify a readonly field.
       For instance, Budget fields can be requested for Ad Group,
       but are read-only for adGroups:mutate.
       
      CANNOT_MODIFY_FOREIGN_FIELD = 15;
    • INVALID_ENUM_VALUE

      public static final RequestErrorEnum.RequestError INVALID_ENUM_VALUE
       Enum value is not permitted.
       
      INVALID_ENUM_VALUE = 18;
    • DEVELOPER_TOKEN_PARAMETER_MISSING

      public static final RequestErrorEnum.RequestError DEVELOPER_TOKEN_PARAMETER_MISSING
       The developer-token parameter is required for all requests.
       
      DEVELOPER_TOKEN_PARAMETER_MISSING = 19;
    • LOGIN_CUSTOMER_ID_PARAMETER_MISSING

      public static final RequestErrorEnum.RequestError LOGIN_CUSTOMER_ID_PARAMETER_MISSING
       The login-customer-id parameter is required for this request.
       
      LOGIN_CUSTOMER_ID_PARAMETER_MISSING = 20;
    • VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN

      public static final RequestErrorEnum.RequestError VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN
       page_token is set in the validate only request
       
      VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN = 21;
    • CANNOT_RETURN_SUMMARY_ROW_FOR_REQUEST_WITHOUT_METRICS

      public static final RequestErrorEnum.RequestError CANNOT_RETURN_SUMMARY_ROW_FOR_REQUEST_WITHOUT_METRICS
       return_summary_row cannot be enabled if request did not select any
       metrics field.
       
      CANNOT_RETURN_SUMMARY_ROW_FOR_REQUEST_WITHOUT_METRICS = 29;
    • CANNOT_RETURN_SUMMARY_ROW_FOR_VALIDATE_ONLY_REQUESTS

      public static final RequestErrorEnum.RequestError CANNOT_RETURN_SUMMARY_ROW_FOR_VALIDATE_ONLY_REQUESTS
       return_summary_row should not be enabled for validate only requests.
       
      CANNOT_RETURN_SUMMARY_ROW_FOR_VALIDATE_ONLY_REQUESTS = 30;
    • INCONSISTENT_RETURN_SUMMARY_ROW_VALUE

      public static final RequestErrorEnum.RequestError INCONSISTENT_RETURN_SUMMARY_ROW_VALUE
       return_summary_row parameter value should be the same between requests
       with page_token field set and their original request.
       
      INCONSISTENT_RETURN_SUMMARY_ROW_VALUE = 31;
    • TOTAL_RESULTS_COUNT_NOT_ORIGINALLY_REQUESTED

      public static final RequestErrorEnum.RequestError TOTAL_RESULTS_COUNT_NOT_ORIGINALLY_REQUESTED
       The total results count cannot be returned if it was not requested in the
       original request.
       
      TOTAL_RESULTS_COUNT_NOT_ORIGINALLY_REQUESTED = 32;
    • RPC_DEADLINE_TOO_SHORT

      public static final RequestErrorEnum.RequestError RPC_DEADLINE_TOO_SHORT
       Deadline specified by the client was too short.
       
      RPC_DEADLINE_TOO_SHORT = 33;
    • UNSUPPORTED_VERSION

      public static final RequestErrorEnum.RequestError UNSUPPORTED_VERSION
       This API version has been sunset and is no longer supported.
       
      UNSUPPORTED_VERSION = 38;
    • CLOUD_PROJECT_NOT_FOUND

      public static final RequestErrorEnum.RequestError CLOUD_PROJECT_NOT_FOUND
       The Google Cloud project in the request was not found.
       
      CLOUD_PROJECT_NOT_FOUND = 39;
    • UNRECOGNIZED

      public static final RequestErrorEnum.RequestError UNRECOGNIZED
  • Field Details

    • UNSPECIFIED_VALUE

      public static final int UNSPECIFIED_VALUE
       Enum unspecified.
       
      UNSPECIFIED = 0;
      See Also:
    • UNKNOWN_VALUE

      public static final int UNKNOWN_VALUE
       The received error code is not known in this version.
       
      UNKNOWN = 1;
      See Also:
    • RESOURCE_NAME_MISSING_VALUE

      public static final int RESOURCE_NAME_MISSING_VALUE
       Resource name is required for this request.
       
      RESOURCE_NAME_MISSING = 3;
      See Also:
    • RESOURCE_NAME_MALFORMED_VALUE

      public static final int RESOURCE_NAME_MALFORMED_VALUE
       Resource name provided is malformed.
       
      RESOURCE_NAME_MALFORMED = 4;
      See Also:
    • BAD_RESOURCE_ID_VALUE

      public static final int BAD_RESOURCE_ID_VALUE
       Resource name provided is malformed.
       
      BAD_RESOURCE_ID = 17;
      See Also:
    • INVALID_CUSTOMER_ID_VALUE

      public static final int INVALID_CUSTOMER_ID_VALUE
       Customer ID is invalid.
       
      INVALID_CUSTOMER_ID = 16;
      See Also:
    • OPERATION_REQUIRED_VALUE

      public static final int OPERATION_REQUIRED_VALUE
       Mutate operation should have either create, update, or remove specified.
       
      OPERATION_REQUIRED = 5;
      See Also:
    • RESOURCE_NOT_FOUND_VALUE

      public static final int RESOURCE_NOT_FOUND_VALUE
       Requested resource not found.
       
      RESOURCE_NOT_FOUND = 6;
      See Also:
    • INVALID_PAGE_TOKEN_VALUE

      public static final int INVALID_PAGE_TOKEN_VALUE
       Next page token specified in user request is invalid.
       
      INVALID_PAGE_TOKEN = 7;
      See Also:
    • EXPIRED_PAGE_TOKEN_VALUE

      public static final int EXPIRED_PAGE_TOKEN_VALUE
       Next page token specified in user request has expired.
       
      EXPIRED_PAGE_TOKEN = 8;
      See Also:
    • INVALID_PAGE_SIZE_VALUE

      public static final int INVALID_PAGE_SIZE_VALUE
       Page size specified in user request is invalid.
       
      INVALID_PAGE_SIZE = 22;
      See Also:
    • PAGE_SIZE_NOT_SUPPORTED_VALUE

      public static final int PAGE_SIZE_NOT_SUPPORTED_VALUE
       Setting the page size is not supported, and will be unavailable in a
       future version.
       
      PAGE_SIZE_NOT_SUPPORTED = 40;
      See Also:
    • REQUIRED_FIELD_MISSING_VALUE

      public static final int REQUIRED_FIELD_MISSING_VALUE
       Required field is missing.
       
      REQUIRED_FIELD_MISSING = 9;
      See Also:
    • IMMUTABLE_FIELD_VALUE

      public static final int IMMUTABLE_FIELD_VALUE
       The field cannot be modified because it's immutable. It's also possible
       that the field can be modified using 'create' operation but not 'update'.
       
      IMMUTABLE_FIELD = 11;
      See Also:
    • TOO_MANY_MUTATE_OPERATIONS_VALUE

      public static final int TOO_MANY_MUTATE_OPERATIONS_VALUE
       Received too many entries in request.
       
      TOO_MANY_MUTATE_OPERATIONS = 13;
      See Also:
    • CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT_VALUE

      public static final int CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT_VALUE
       Request cannot be executed by a manager account.
       
      CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT = 14;
      See Also:
    • CANNOT_MODIFY_FOREIGN_FIELD_VALUE

      public static final int CANNOT_MODIFY_FOREIGN_FIELD_VALUE
       Mutate request was attempting to modify a readonly field.
       For instance, Budget fields can be requested for Ad Group,
       but are read-only for adGroups:mutate.
       
      CANNOT_MODIFY_FOREIGN_FIELD = 15;
      See Also:
    • INVALID_ENUM_VALUE_VALUE

      public static final int INVALID_ENUM_VALUE_VALUE
       Enum value is not permitted.
       
      INVALID_ENUM_VALUE = 18;
      See Also:
    • DEVELOPER_TOKEN_PARAMETER_MISSING_VALUE

      public static final int DEVELOPER_TOKEN_PARAMETER_MISSING_VALUE
       The developer-token parameter is required for all requests.
       
      DEVELOPER_TOKEN_PARAMETER_MISSING = 19;
      See Also:
    • LOGIN_CUSTOMER_ID_PARAMETER_MISSING_VALUE

      public static final int LOGIN_CUSTOMER_ID_PARAMETER_MISSING_VALUE
       The login-customer-id parameter is required for this request.
       
      LOGIN_CUSTOMER_ID_PARAMETER_MISSING = 20;
      See Also:
    • VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN_VALUE

      public static final int VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN_VALUE
       page_token is set in the validate only request
       
      VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN = 21;
      See Also:
    • CANNOT_RETURN_SUMMARY_ROW_FOR_REQUEST_WITHOUT_METRICS_VALUE

      public static final int CANNOT_RETURN_SUMMARY_ROW_FOR_REQUEST_WITHOUT_METRICS_VALUE
       return_summary_row cannot be enabled if request did not select any
       metrics field.
       
      CANNOT_RETURN_SUMMARY_ROW_FOR_REQUEST_WITHOUT_METRICS = 29;
      See Also:
    • CANNOT_RETURN_SUMMARY_ROW_FOR_VALIDATE_ONLY_REQUESTS_VALUE

      public static final int CANNOT_RETURN_SUMMARY_ROW_FOR_VALIDATE_ONLY_REQUESTS_VALUE
       return_summary_row should not be enabled for validate only requests.
       
      CANNOT_RETURN_SUMMARY_ROW_FOR_VALIDATE_ONLY_REQUESTS = 30;
      See Also:
    • INCONSISTENT_RETURN_SUMMARY_ROW_VALUE_VALUE

      public static final int INCONSISTENT_RETURN_SUMMARY_ROW_VALUE_VALUE
       return_summary_row parameter value should be the same between requests
       with page_token field set and their original request.
       
      INCONSISTENT_RETURN_SUMMARY_ROW_VALUE = 31;
      See Also:
    • TOTAL_RESULTS_COUNT_NOT_ORIGINALLY_REQUESTED_VALUE

      public static final int TOTAL_RESULTS_COUNT_NOT_ORIGINALLY_REQUESTED_VALUE
       The total results count cannot be returned if it was not requested in the
       original request.
       
      TOTAL_RESULTS_COUNT_NOT_ORIGINALLY_REQUESTED = 32;
      See Also:
    • RPC_DEADLINE_TOO_SHORT_VALUE

      public static final int RPC_DEADLINE_TOO_SHORT_VALUE
       Deadline specified by the client was too short.
       
      RPC_DEADLINE_TOO_SHORT = 33;
      See Also:
    • UNSUPPORTED_VERSION_VALUE

      public static final int UNSUPPORTED_VERSION_VALUE
       This API version has been sunset and is no longer supported.
       
      UNSUPPORTED_VERSION = 38;
      See Also:
    • CLOUD_PROJECT_NOT_FOUND_VALUE

      public static final int CLOUD_PROJECT_NOT_FOUND_VALUE
       The Google Cloud project in the request was not found.
       
      CLOUD_PROJECT_NOT_FOUND = 39;
      See Also:
  • Method Details

    • values

      public static RequestErrorEnum.RequestError[] 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

      public static RequestErrorEnum.RequestError valueOf(String name)
      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 name
      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 RequestErrorEnum.RequestError valueOf(int value)
      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 name
      NullPointerException - if the argument is null
    • forNumber

      public static RequestErrorEnum.RequestError 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<RequestErrorEnum.RequestError> internalGetValueMap()
    • 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 RequestErrorEnum.RequestError 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 name
      NullPointerException - if the argument is null