// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

syntax = "proto3";

package google.ads.searchads360.v0.errors;

option csharp_namespace = "Google.Ads.SearchAds360.V0.Errors";
option go_package = "google.golang.org/genproto/googleapis/ads/searchads360/v0/errors;errors";
option java_multiple_files = true;
option java_outer_classname = "ConversionCustomVariableErrorProto";
option java_package = "com.google.ads.searchads360.v0.errors";
option objc_class_prefix = "GASA360";
option php_namespace = "Google\\Ads\\SearchAds360\\V0\\Errors";
option ruby_package = "Google::Ads::SearchAds360::V0::Errors";

// Proto file describing conversion custom variable errors.

// Container for enum describing possible conversion custom variable errors.
message ConversionCustomVariableErrorEnum {
  // Enum describing possible conversion custom variable errors.
  enum ConversionCustomVariableError {
    // Enum unspecified.
    UNSPECIFIED = 0;

    // The received error code is not known in this version.
    UNKNOWN = 1;

    // A conversion custom variable with the specified name already exists.
    DUPLICATE_NAME = 2;

    // A conversion custom variable with the specified tag already exists.
    DUPLICATE_TAG = 3;

    // A conversion custom variable with the specified tag is reserved for other
    // uses.
    RESERVED_TAG = 4;

    // The conversion custom variable is not found.
    NOT_FOUND = 5;

    // The conversion custom variable is not available for use.
    NOT_AVAILABLE = 6;

    // The conversion custom variable requested is incompatible with the current
    // request.
    INCOMPATIBLE_TYPE = 7;

    // The conversion custom variable requested is not of type METRIC.
    INVALID_METRIC = 8;

    // The conversion custom variable's cardinality exceeds the segmentation
    // limit.
    EXCEEDS_CARDINALITY_LIMIT = 9;

    // The conversion custom variable requested is not of type DIMENSION.
    INVALID_DIMENSION = 10;

    // The conversion custom variable requested is incompatible with the
    // selected resource.
    INCOMPATIBLE_WITH_SELECTED_RESOURCE = 11;
  }
}
