recommendation_error.proto 3.1 KB

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