feed_mapping_error.proto 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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 = "FeedMappingErrorProto";
  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 feed item errors.
  25. // Container for enum describing possible feed item errors.
  26. message FeedMappingErrorEnum {
  27. // Enum describing possible feed item errors.
  28. enum FeedMappingError {
  29. // Enum unspecified.
  30. UNSPECIFIED = 0;
  31. // The received error code is not known in this version.
  32. UNKNOWN = 1;
  33. // The given placeholder field does not exist.
  34. INVALID_PLACEHOLDER_FIELD = 2;
  35. // The given criterion field does not exist.
  36. INVALID_CRITERION_FIELD = 3;
  37. // The given placeholder type does not exist.
  38. INVALID_PLACEHOLDER_TYPE = 4;
  39. // The given criterion type does not exist.
  40. INVALID_CRITERION_TYPE = 5;
  41. // A feed mapping must contain at least one attribute field mapping.
  42. NO_ATTRIBUTE_FIELD_MAPPINGS = 7;
  43. // The type of the feed attribute referenced in the attribute field mapping
  44. // must match the type of the placeholder field.
  45. FEED_ATTRIBUTE_TYPE_MISMATCH = 8;
  46. // A feed mapping for a system generated feed cannot be operated on.
  47. CANNOT_OPERATE_ON_MAPPINGS_FOR_SYSTEM_GENERATED_FEED = 9;
  48. // Only one feed mapping for a placeholder type is allowed per feed or
  49. // customer (depending on the placeholder type).
  50. MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_TYPE = 10;
  51. // Only one feed mapping for a criterion type is allowed per customer.
  52. MULTIPLE_MAPPINGS_FOR_CRITERION_TYPE = 11;
  53. // Only one feed attribute mapping for a placeholder field is allowed
  54. // (depending on the placeholder type).
  55. MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_FIELD = 12;
  56. // Only one feed attribute mapping for a criterion field is allowed
  57. // (depending on the criterion type).
  58. MULTIPLE_MAPPINGS_FOR_CRITERION_FIELD = 13;
  59. // This feed mapping may not contain any explicit attribute field mappings.
  60. UNEXPECTED_ATTRIBUTE_FIELD_MAPPINGS = 14;
  61. // Location placeholder feed mappings can only be created for Places feeds.
  62. LOCATION_PLACEHOLDER_ONLY_FOR_PLACES_FEEDS = 15;
  63. // Mappings for typed feeds cannot be modified.
  64. CANNOT_MODIFY_MAPPINGS_FOR_TYPED_FEED = 16;
  65. // The given placeholder type can only be mapped to system generated feeds.
  66. INVALID_PLACEHOLDER_TYPE_FOR_NON_SYSTEM_GENERATED_FEED = 17;
  67. // The given placeholder type cannot be mapped to a system generated feed
  68. // with the given type.
  69. INVALID_PLACEHOLDER_TYPE_FOR_SYSTEM_GENERATED_FEED_TYPE = 18;
  70. // The "field" oneof was not set in an AttributeFieldMapping.
  71. ATTRIBUTE_FIELD_MAPPING_MISSING_FIELD = 19;
  72. // Feed is read only.
  73. LEGACY_FEED_TYPE_READ_ONLY = 20;
  74. }
  75. }