1 // Copyright 2019 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.v1.errors;
20 import "google/api/annotations.proto";
22 option csharp_namespace = "Google.Ads.GoogleAds.V1.Errors";
23 option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v1/errors;errors";
24 option java_multiple_files = true;
25 option java_outer_classname = "CampaignBudgetErrorProto";
26 option java_package = "com.google.ads.googleads.v1.errors";
27 option objc_class_prefix = "GAA";
28 option php_namespace = "Google\\Ads\\GoogleAds\\V1\\Errors";
29 option ruby_package = "Google::Ads::GoogleAds::V1::Errors";
30 // Proto file describing campaign budget errors.
32 // Container for enum describing possible campaign budget errors.
33 message CampaignBudgetErrorEnum {
34 // Enum describing possible campaign budget errors.
35 enum CampaignBudgetError {
39 // The received error code is not known in this version.
42 // The campaign budget cannot be shared.
43 CAMPAIGN_BUDGET_CANNOT_BE_SHARED = 17;
45 // The requested campaign budget no longer exists.
46 CAMPAIGN_BUDGET_REMOVED = 2;
48 // The campaign budget is associated with at least one campaign, and so the
49 // campaign budget cannot be removed.
50 CAMPAIGN_BUDGET_IN_USE = 3;
52 // Customer is not whitelisted for this campaign budget period.
53 CAMPAIGN_BUDGET_PERIOD_NOT_AVAILABLE = 4;
55 // This field is not mutable on implicitly shared campaign budgets
56 CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_CAMPAIGN_BUDGET = 6;
58 // Cannot change explicitly shared campaign budgets back to implicitly
60 CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_IMPLICITLY_SHARED = 7;
62 // An implicit campaign budget without a name cannot be changed to
63 // explicitly shared campaign budget.
64 CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME = 8;
66 // Cannot change an implicitly shared campaign budget to an explicitly
68 CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED = 9;
70 // Only explicitly shared campaign budgets can be used with multiple
72 CANNOT_USE_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_WITH_MULTIPLE_CAMPAIGNS = 10;
74 // A campaign budget with this name already exists.
77 // A money amount was not in the expected currency.
78 MONEY_AMOUNT_IN_WRONG_CURRENCY = 12;
80 // A money amount was less than the minimum CPC for currency.
81 MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC = 13;
83 // A money amount was greater than the maximum allowed.
84 MONEY_AMOUNT_TOO_LARGE = 14;
86 // A money amount was negative.
87 NEGATIVE_MONEY_AMOUNT = 15;
89 // A money amount was not a multiple of a minimum unit.
90 NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT = 16;