campaign_criterion_error.proto 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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.v11.errors;
  16. option csharp_namespace = "Google.Ads.GoogleAds.V11.Errors";
  17. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v11/errors;errors";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "CampaignCriterionErrorProto";
  20. option java_package = "com.google.ads.googleads.v11.errors";
  21. option objc_class_prefix = "GAA";
  22. option php_namespace = "Google\\Ads\\GoogleAds\\V11\\Errors";
  23. option ruby_package = "Google::Ads::GoogleAds::V11::Errors";
  24. // Proto file describing campaign criterion errors.
  25. // Container for enum describing possible campaign criterion errors.
  26. message CampaignCriterionErrorEnum {
  27. // Enum describing possible campaign criterion errors.
  28. enum CampaignCriterionError {
  29. // Enum unspecified.
  30. UNSPECIFIED = 0;
  31. // The received error code is not known in this version.
  32. UNKNOWN = 1;
  33. // Concrete type of criterion (keyword v.s. placement) is required for
  34. // CREATE and UPDATE operations.
  35. CONCRETE_TYPE_REQUIRED = 2;
  36. // Invalid placement URL.
  37. INVALID_PLACEMENT_URL = 3;
  38. // Criteria type can not be excluded for the campaign by the customer. like
  39. // AOL account type cannot target site type criteria
  40. CANNOT_EXCLUDE_CRITERIA_TYPE = 4;
  41. // Cannot set the campaign criterion status for this criteria type.
  42. CANNOT_SET_STATUS_FOR_CRITERIA_TYPE = 5;
  43. // Cannot set the campaign criterion status for an excluded criteria.
  44. CANNOT_SET_STATUS_FOR_EXCLUDED_CRITERIA = 6;
  45. // Cannot target and exclude the same criterion.
  46. CANNOT_TARGET_AND_EXCLUDE = 7;
  47. // The mutate contained too many operations.
  48. TOO_MANY_OPERATIONS = 8;
  49. // This operator cannot be applied to a criterion of this type.
  50. OPERATOR_NOT_SUPPORTED_FOR_CRITERION_TYPE = 9;
  51. // The Shopping campaign sales country is not supported for
  52. // ProductSalesChannel targeting.
  53. SHOPPING_CAMPAIGN_SALES_COUNTRY_NOT_SUPPORTED_FOR_SALES_CHANNEL = 10;
  54. // The existing field can't be updated with CREATE operation. It can be
  55. // updated with UPDATE operation only.
  56. CANNOT_ADD_EXISTING_FIELD = 11;
  57. // Negative criteria are immutable, so updates are not allowed.
  58. CANNOT_UPDATE_NEGATIVE_CRITERION = 12;
  59. // Only free form names are allowed for negative Smart campaign keyword
  60. // theme.
  61. CANNOT_SET_NEGATIVE_KEYWORD_THEME_CONSTANT_CRITERION = 13;
  62. // Invalid Smart campaign keyword theme constant criterion.
  63. INVALID_KEYWORD_THEME_CONSTANT = 14;
  64. // A Smart campaign keyword theme constant or free-form Smart campaign
  65. // keyword theme is required.
  66. MISSING_KEYWORD_THEME_CONSTANT_OR_FREE_FORM_KEYWORD_THEME = 15;
  67. // A Smart campaign may not target proximity and location criteria
  68. // simultaneously.
  69. CANNOT_TARGET_BOTH_PROXIMITY_AND_LOCATION_CRITERIA_FOR_SMART_CAMPAIGN = 16;
  70. // A Smart campaign may not target multiple proximity criteria.
  71. CANNOT_TARGET_MULTIPLE_PROXIMITY_CRITERIA_FOR_SMART_CAMPAIGN = 17;
  72. }
  73. }