campaign_budget_error.proto 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. // Copyright 2022 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. syntax = "proto3";
  15. package google.ads.googleads.v12.errors;
  16. option csharp_namespace = "Google.Ads.GoogleAds.V12.Errors";
  17. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v12/errors;errors";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "CampaignBudgetErrorProto";
  20. option java_package = "com.google.ads.googleads.v12.errors";
  21. option objc_class_prefix = "GAA";
  22. option php_namespace = "Google\\Ads\\GoogleAds\\V12\\Errors";
  23. option ruby_package = "Google::Ads::GoogleAds::V12::Errors";
  24. // Proto file describing campaign budget errors.
  25. // Container for enum describing possible campaign budget errors.
  26. message CampaignBudgetErrorEnum {
  27. // Enum describing possible campaign budget errors.
  28. enum CampaignBudgetError {
  29. // Enum unspecified.
  30. UNSPECIFIED = 0;
  31. // The received error code is not known in this version.
  32. UNKNOWN = 1;
  33. // The campaign budget cannot be shared.
  34. CAMPAIGN_BUDGET_CANNOT_BE_SHARED = 17;
  35. // The requested campaign budget no longer exists.
  36. CAMPAIGN_BUDGET_REMOVED = 2;
  37. // The campaign budget is associated with at least one campaign, and so the
  38. // campaign budget cannot be removed.
  39. CAMPAIGN_BUDGET_IN_USE = 3;
  40. // Customer is not on the allow-list for this campaign budget period.
  41. CAMPAIGN_BUDGET_PERIOD_NOT_AVAILABLE = 4;
  42. // This field is not mutable on implicitly shared campaign budgets
  43. CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_CAMPAIGN_BUDGET = 6;
  44. // Cannot change explicitly shared campaign budgets back to implicitly
  45. // shared ones.
  46. CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_IMPLICITLY_SHARED = 7;
  47. // An implicit campaign budget without a name cannot be changed to
  48. // explicitly shared campaign budget.
  49. CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME = 8;
  50. // Cannot change an implicitly shared campaign budget to an explicitly
  51. // shared one.
  52. CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED = 9;
  53. // Only explicitly shared campaign budgets can be used with multiple
  54. // campaigns.
  55. CANNOT_USE_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_WITH_MULTIPLE_CAMPAIGNS = 10;
  56. // A campaign budget with this name already exists.
  57. DUPLICATE_NAME = 11;
  58. // A money amount was not in the expected currency.
  59. MONEY_AMOUNT_IN_WRONG_CURRENCY = 12;
  60. // A money amount was less than the minimum CPC for currency.
  61. MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC = 13;
  62. // A money amount was greater than the maximum allowed.
  63. MONEY_AMOUNT_TOO_LARGE = 14;
  64. // A money amount was negative.
  65. NEGATIVE_MONEY_AMOUNT = 15;
  66. // A money amount was not a multiple of a minimum unit.
  67. NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT = 16;
  68. // Total budget amount must be unset when BudgetPeriod is DAILY.
  69. TOTAL_BUDGET_AMOUNT_MUST_BE_UNSET_FOR_BUDGET_PERIOD_DAILY = 18;
  70. // The period of the budget is not allowed.
  71. INVALID_PERIOD = 19;
  72. }
  73. }