1 // Copyright 2018 Google LLC.
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
7 // http://www.apache.org/licenses/LICENSE-2.0
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.
18 package google.ads.googleads.v0.errors;
20 option csharp_namespace = "Google.Ads.GoogleAds.V0.Errors";
21 option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v0/errors;errors";
22 option java_multiple_files = true;
23 option java_outer_classname = "RecommendationErrorProto";
24 option java_package = "com.google.ads.googleads.v0.errors";
25 option objc_class_prefix = "GAA";
26 option php_namespace = "Google\\Ads\\GoogleAds\\V0\\Errors";
27 option ruby_package = "Google::Ads::GoogleAds::V0::Errors";
29 // Proto file describing errors from applying a recommendation.
31 // Container for enum describing possible errors from applying a recommendation.
32 message RecommendationErrorEnum {
33 // Enum describing possible errors from applying a recommendation.
34 enum RecommendationError {
38 // The received error code is not known in this version.
41 // The specified budget amount is too low e.g. lower than minimum currency
42 // unit or lower than ad group minimum cost-per-click.
43 BUDGET_AMOUNT_TOO_SMALL = 2;
45 // The specified budget amount is too large.
46 BUDGET_AMOUNT_TOO_LARGE = 3;
48 // The specified budget amount is not a valid amount. e.g. not a multiple
49 // of minimum currency unit.
50 INVALID_BUDGET_AMOUNT = 4;
52 // The specified keyword or ad violates ad policy.
55 // The specified bid amount is not valid. e.g. too many fractional digits,
56 // or negative amount.
57 INVALID_BID_AMOUNT = 6;
59 // The number of keywords in ad group have reached the maximum allowed.
60 ADGROUP_KEYWORD_LIMIT = 7;
62 // The recommendation requested to apply has already been applied.
63 RECOMMENDATION_ALREADY_APPLIED = 8;
65 // The recommendation requested to apply has been invalidated.
66 RECOMMENDATION_INVALIDATED = 9;
68 // The number of operations in a single request exceeds the maximum allowed.
69 TOO_MANY_OPERATIONS = 10;
71 // There are no operations in the request.
74 // Operations with multiple recommendation types are not supported when
75 // partial failure mode is not enabled.
76 DIFFERENT_TYPES_NOT_SUPPORTED = 12;
78 // Request contains multiple operations with the same resource_name.
79 DUPLICATE_RESOURCE_NAME = 13;
81 // The recommendation requested to dismiss has already been dismissed.
82 RECOMMENDATION_ALREADY_DISMISSED = 14;