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.v16.errors; 18 19option csharp_namespace = "Google.Ads.GoogleAds.V16.Errors"; 20option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v16/errors;errors"; 21option java_multiple_files = true; 22option java_outer_classname = "LabelErrorProto"; 23option java_package = "com.google.ads.googleads.v16.errors"; 24option objc_class_prefix = "GAA"; 25option php_namespace = "Google\\Ads\\GoogleAds\\V16\\Errors"; 26option ruby_package = "Google::Ads::GoogleAds::V16::Errors"; 27 28// Proto file describing label errors. 29 30// Container for enum describing possible label errors. 31message LabelErrorEnum { 32 // Enum describing possible label errors. 33 enum LabelError { 34 // Enum unspecified. 35 UNSPECIFIED = 0; 36 37 // The received error code is not known in this version. 38 UNKNOWN = 1; 39 40 // An inactive label cannot be applied. 41 CANNOT_APPLY_INACTIVE_LABEL = 2; 42 43 // A label cannot be applied to a disabled ad group criterion. 44 CANNOT_APPLY_LABEL_TO_DISABLED_AD_GROUP_CRITERION = 3; 45 46 // A label cannot be applied to a negative ad group criterion. 47 CANNOT_APPLY_LABEL_TO_NEGATIVE_AD_GROUP_CRITERION = 4; 48 49 // Cannot apply more than 50 labels per resource. 50 EXCEEDED_LABEL_LIMIT_PER_TYPE = 5; 51 52 // Labels from a manager account cannot be applied to campaign, ad group, 53 // ad group ad, or ad group criterion resources. 54 INVALID_RESOURCE_FOR_MANAGER_LABEL = 6; 55 56 // Label names must be unique. 57 DUPLICATE_NAME = 7; 58 59 // Label names cannot be empty. 60 INVALID_LABEL_NAME = 8; 61 62 // Labels cannot be applied to a draft. 63 CANNOT_ATTACH_LABEL_TO_DRAFT = 9; 64 65 // Labels not from a manager account cannot be applied to the customer 66 // resource. 67 CANNOT_ATTACH_NON_MANAGER_LABEL_TO_CUSTOMER = 10; 68 } 69} 70