1// Copyright 2023 Google LLC 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15syntax = "proto3"; 16 17package google.ads.googleads.v14.errors; 18 19option csharp_namespace = "Google.Ads.GoogleAds.V14.Errors"; 20option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v14/errors;errors"; 21option java_multiple_files = true; 22option java_outer_classname = "AudienceErrorProto"; 23option java_package = "com.google.ads.googleads.v14.errors"; 24option objc_class_prefix = "GAA"; 25option php_namespace = "Google\\Ads\\GoogleAds\\V14\\Errors"; 26option ruby_package = "Google::Ads::GoogleAds::V14::Errors"; 27 28// Proto file describing audience errors. 29 30// Container for enum describing possible audience errors. 31message AudienceErrorEnum { 32 // Enum describing possible audience errors. 33 enum AudienceError { 34 // Enum unspecified. 35 UNSPECIFIED = 0; 36 37 // The received error code is not known in this version. 38 UNKNOWN = 1; 39 40 // An audience with this name already exists. 41 NAME_ALREADY_IN_USE = 2; 42 43 // A dimension within the audience definition is not valid. 44 DIMENSION_INVALID = 3; 45 46 // One of the audience segment added is not found. 47 AUDIENCE_SEGMENT_NOT_FOUND = 4; 48 49 // One of the audience segment type is not supported. 50 AUDIENCE_SEGMENT_TYPE_NOT_SUPPORTED = 5; 51 52 // The same segment already exists in this audience. 53 DUPLICATE_AUDIENCE_SEGMENT = 6; 54 55 // Audience can't have more than allowed number segments. 56 TOO_MANY_SEGMENTS = 7; 57 58 // Audience can't have multiple dimensions of same type. 59 TOO_MANY_DIMENSIONS_OF_SAME_TYPE = 8; 60 61 // The audience cannot be removed, because it is currently used in an 62 // ad group criterion or asset group signal in an (enabled or paused) 63 // ad group or campaign. 64 IN_USE = 9; 65 } 66} 67