setting_error.proto 3.6 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.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 = "SettingErrorProto";
  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 setting errors.
  25. // Container for enum describing possible setting errors.
  26. message SettingErrorEnum {
  27. // Enum describing possible setting errors.
  28. enum SettingError {
  29. // Enum unspecified.
  30. UNSPECIFIED = 0;
  31. // The received error code is not known in this version.
  32. UNKNOWN = 1;
  33. // The campaign setting is not available for this Google Ads account.
  34. SETTING_TYPE_IS_NOT_AVAILABLE = 3;
  35. // The setting is not compatible with the campaign.
  36. SETTING_TYPE_IS_NOT_COMPATIBLE_WITH_CAMPAIGN = 4;
  37. // The supplied TargetingSetting contains an invalid CriterionTypeGroup. See
  38. // CriterionTypeGroup documentation for CriterionTypeGroups allowed
  39. // in Campaign or AdGroup TargetingSettings.
  40. TARGETING_SETTING_CONTAINS_INVALID_CRITERION_TYPE_GROUP = 5;
  41. // TargetingSetting must not explicitly
  42. // set any of the Demographic CriterionTypeGroups (AGE_RANGE, GENDER,
  43. // PARENT, INCOME_RANGE) to false (it's okay to not set them at all, in
  44. // which case the system will set them to true automatically).
  45. TARGETING_SETTING_DEMOGRAPHIC_CRITERION_TYPE_GROUPS_MUST_BE_SET_TO_TARGET_ALL = 6;
  46. // TargetingSetting cannot change any of
  47. // the Demographic CriterionTypeGroups (AGE_RANGE, GENDER, PARENT,
  48. // INCOME_RANGE) from true to false.
  49. TARGETING_SETTING_CANNOT_CHANGE_TARGET_ALL_TO_FALSE_FOR_DEMOGRAPHIC_CRITERION_TYPE_GROUP = 7;
  50. // At least one feed id should be present.
  51. DYNAMIC_SEARCH_ADS_SETTING_AT_LEAST_ONE_FEED_ID_MUST_BE_PRESENT = 8;
  52. // The supplied DynamicSearchAdsSetting contains an invalid domain name.
  53. DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_DOMAIN_NAME = 9;
  54. // The supplied DynamicSearchAdsSetting contains a subdomain name.
  55. DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_SUBDOMAIN_NAME = 10;
  56. // The supplied DynamicSearchAdsSetting contains an invalid language code.
  57. DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_LANGUAGE_CODE = 11;
  58. // TargetingSettings in search campaigns should not have
  59. // CriterionTypeGroup.PLACEMENT set to targetAll.
  60. TARGET_ALL_IS_NOT_ALLOWED_FOR_PLACEMENT_IN_SEARCH_CAMPAIGN = 12;
  61. // The setting value is not compatible with the campaign type.
  62. SETTING_VALUE_NOT_COMPATIBLE_WITH_CAMPAIGN = 20;
  63. // Switching from observation setting to targeting setting is not allowed
  64. // for Customer Match lists. See
  65. // https://support.google.com/google-ads/answer/6299717.
  66. BID_ONLY_IS_NOT_ALLOWED_TO_BE_MODIFIED_WITH_CUSTOMER_MATCH_TARGETING = 21;
  67. }
  68. }