campaign_criterion_error.proto 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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 = "CampaignCriterionErrorProto";
  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 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. // Location is not launched for Local Services Campaigns.
  73. LOCATION_NOT_LAUNCHED_FOR_LOCAL_SERVICES_CAMPAIGN = 18;
  74. // A Local Services campaign may not target certain criteria types.
  75. LOCATION_INVALID_FOR_LOCAL_SERVICES_CAMPAIGN = 19;
  76. // Country locations are not supported for Local Services campaign.
  77. CANNOT_TARGET_COUNTRY_FOR_LOCAL_SERVICES_CAMPAIGN = 20;
  78. // Location is not within the home country of Local Services campaign.
  79. LOCATION_NOT_IN_HOME_COUNTRY_FOR_LOCAL_SERVICES_CAMPAIGN = 21;
  80. // Local Services profile does not exist for a particular Local Services
  81. // campaign.
  82. CANNOT_ADD_OR_REMOVE_LOCATION_FOR_LOCAL_SERVICES_CAMPAIGN = 22;
  83. // Local Services campaign must have at least one target location.
  84. AT_LEAST_ONE_POSITIVE_LOCATION_REQUIRED_FOR_LOCAL_SERVICES_CAMPAIGN = 23;
  85. }
  86. }