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 = "RecommendationErrorProto"; 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 errors from applying a recommendation. 29 30// Container for enum describing possible errors from applying a recommendation. 31message RecommendationErrorEnum { 32 // Enum describing possible errors from applying a recommendation. 33 enum RecommendationError { 34 // Enum unspecified. 35 UNSPECIFIED = 0; 36 37 // The received error code is not known in this version. 38 UNKNOWN = 1; 39 40 // The specified budget amount is too low for example, lower than minimum 41 // currency unit or lower than ad group minimum cost-per-click. 42 BUDGET_AMOUNT_TOO_SMALL = 2; 43 44 // The specified budget amount is too large. 45 BUDGET_AMOUNT_TOO_LARGE = 3; 46 47 // The specified budget amount is not a valid amount, for example, not a 48 // multiple of minimum currency unit. 49 INVALID_BUDGET_AMOUNT = 4; 50 51 // The specified keyword or ad violates ad policy. 52 POLICY_ERROR = 5; 53 54 // The specified bid amount is not valid, for example, too many fractional 55 // digits, or negative amount. 56 INVALID_BID_AMOUNT = 6; 57 58 // The number of keywords in ad group have reached the maximum allowed. 59 ADGROUP_KEYWORD_LIMIT = 7; 60 61 // The recommendation requested to apply has already been applied. 62 RECOMMENDATION_ALREADY_APPLIED = 8; 63 64 // The recommendation requested to apply has been invalidated. 65 RECOMMENDATION_INVALIDATED = 9; 66 67 // The number of operations in a single request exceeds the maximum allowed. 68 TOO_MANY_OPERATIONS = 10; 69 70 // There are no operations in the request. 71 NO_OPERATIONS = 11; 72 73 // Operations with multiple recommendation types are not supported when 74 // partial failure mode is not enabled. 75 DIFFERENT_TYPES_NOT_SUPPORTED = 12; 76 77 // Request contains multiple operations with the same resource_name. 78 DUPLICATE_RESOURCE_NAME = 13; 79 80 // The recommendation requested to dismiss has already been dismissed. 81 RECOMMENDATION_ALREADY_DISMISSED = 14; 82 83 // The recommendation apply request was malformed and invalid. 84 INVALID_APPLY_REQUEST = 15; 85 86 // The type of recommendation requested to apply is not supported. 87 RECOMMENDATION_TYPE_APPLY_NOT_SUPPORTED = 17; 88 89 // The target multiplier specified is invalid. 90 INVALID_MULTIPLIER = 18; 91 } 92} 93