url_field_error.proto 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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.v10.errors;
  16. option csharp_namespace = "Google.Ads.GoogleAds.V10.Errors";
  17. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v10/errors;errors";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "UrlFieldErrorProto";
  20. option java_package = "com.google.ads.googleads.v10.errors";
  21. option objc_class_prefix = "GAA";
  22. option php_namespace = "Google\\Ads\\GoogleAds\\V10\\Errors";
  23. option ruby_package = "Google::Ads::GoogleAds::V10::Errors";
  24. // Proto file describing url field errors.
  25. // Container for enum describing possible url field errors.
  26. message UrlFieldErrorEnum {
  27. // Enum describing possible url field errors.
  28. enum UrlFieldError {
  29. // Enum unspecified.
  30. UNSPECIFIED = 0;
  31. // The received error code is not known in this version.
  32. UNKNOWN = 1;
  33. // The tracking url template is invalid.
  34. INVALID_TRACKING_URL_TEMPLATE = 2;
  35. // The tracking url template contains invalid tag.
  36. INVALID_TAG_IN_TRACKING_URL_TEMPLATE = 3;
  37. // The tracking url template must contain at least one tag (e.g. {lpurl}),
  38. // This applies only to tracking url template associated with website ads or
  39. // product ads.
  40. MISSING_TRACKING_URL_TEMPLATE_TAG = 4;
  41. // The tracking url template must start with a valid protocol (or lpurl
  42. // tag).
  43. MISSING_PROTOCOL_IN_TRACKING_URL_TEMPLATE = 5;
  44. // The tracking url template starts with an invalid protocol.
  45. INVALID_PROTOCOL_IN_TRACKING_URL_TEMPLATE = 6;
  46. // The tracking url template contains illegal characters.
  47. MALFORMED_TRACKING_URL_TEMPLATE = 7;
  48. // The tracking url template must contain a host name (or lpurl tag).
  49. MISSING_HOST_IN_TRACKING_URL_TEMPLATE = 8;
  50. // The tracking url template has an invalid or missing top level domain
  51. // extension.
  52. INVALID_TLD_IN_TRACKING_URL_TEMPLATE = 9;
  53. // The tracking url template contains nested occurrences of the same
  54. // conditional tag (i.e. {ifmobile:{ifmobile:x}}).
  55. REDUNDANT_NESTED_TRACKING_URL_TEMPLATE_TAG = 10;
  56. // The final url is invalid.
  57. INVALID_FINAL_URL = 11;
  58. // The final url contains invalid tag.
  59. INVALID_TAG_IN_FINAL_URL = 12;
  60. // The final url contains nested occurrences of the same conditional tag
  61. // (i.e. {ifmobile:{ifmobile:x}}).
  62. REDUNDANT_NESTED_FINAL_URL_TAG = 13;
  63. // The final url must start with a valid protocol.
  64. MISSING_PROTOCOL_IN_FINAL_URL = 14;
  65. // The final url starts with an invalid protocol.
  66. INVALID_PROTOCOL_IN_FINAL_URL = 15;
  67. // The final url contains illegal characters.
  68. MALFORMED_FINAL_URL = 16;
  69. // The final url must contain a host name.
  70. MISSING_HOST_IN_FINAL_URL = 17;
  71. // The tracking url template has an invalid or missing top level domain
  72. // extension.
  73. INVALID_TLD_IN_FINAL_URL = 18;
  74. // The final mobile url is invalid.
  75. INVALID_FINAL_MOBILE_URL = 19;
  76. // The final mobile url contains invalid tag.
  77. INVALID_TAG_IN_FINAL_MOBILE_URL = 20;
  78. // The final mobile url contains nested occurrences of the same conditional
  79. // tag (i.e. {ifmobile:{ifmobile:x}}).
  80. REDUNDANT_NESTED_FINAL_MOBILE_URL_TAG = 21;
  81. // The final mobile url must start with a valid protocol.
  82. MISSING_PROTOCOL_IN_FINAL_MOBILE_URL = 22;
  83. // The final mobile url starts with an invalid protocol.
  84. INVALID_PROTOCOL_IN_FINAL_MOBILE_URL = 23;
  85. // The final mobile url contains illegal characters.
  86. MALFORMED_FINAL_MOBILE_URL = 24;
  87. // The final mobile url must contain a host name.
  88. MISSING_HOST_IN_FINAL_MOBILE_URL = 25;
  89. // The tracking url template has an invalid or missing top level domain
  90. // extension.
  91. INVALID_TLD_IN_FINAL_MOBILE_URL = 26;
  92. // The final app url is invalid.
  93. INVALID_FINAL_APP_URL = 27;
  94. // The final app url contains invalid tag.
  95. INVALID_TAG_IN_FINAL_APP_URL = 28;
  96. // The final app url contains nested occurrences of the same conditional tag
  97. // (i.e. {ifmobile:{ifmobile:x}}).
  98. REDUNDANT_NESTED_FINAL_APP_URL_TAG = 29;
  99. // More than one app url found for the same OS type.
  100. MULTIPLE_APP_URLS_FOR_OSTYPE = 30;
  101. // The OS type given for an app url is not valid.
  102. INVALID_OSTYPE = 31;
  103. // The protocol given for an app url is not valid. (E.g. "android-app://")
  104. INVALID_PROTOCOL_FOR_APP_URL = 32;
  105. // The package id (app id) given for an app url is not valid.
  106. INVALID_PACKAGE_ID_FOR_APP_URL = 33;
  107. // The number of url custom parameters for an resource exceeds the maximum
  108. // limit allowed.
  109. URL_CUSTOM_PARAMETERS_COUNT_EXCEEDS_LIMIT = 34;
  110. // An invalid character appears in the parameter key.
  111. INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_KEY = 39;
  112. // An invalid character appears in the parameter value.
  113. INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_VALUE = 40;
  114. // The url custom parameter value fails url tag validation.
  115. INVALID_TAG_IN_URL_CUSTOM_PARAMETER_VALUE = 41;
  116. // The custom parameter contains nested occurrences of the same conditional
  117. // tag (i.e. {ifmobile:{ifmobile:x}}).
  118. REDUNDANT_NESTED_URL_CUSTOM_PARAMETER_TAG = 42;
  119. // The protocol (http:// or https://) is missing.
  120. MISSING_PROTOCOL = 43;
  121. // Unsupported protocol in URL. Only http and https are supported.
  122. INVALID_PROTOCOL = 52;
  123. // The url is invalid.
  124. INVALID_URL = 44;
  125. // Destination Url is deprecated.
  126. DESTINATION_URL_DEPRECATED = 45;
  127. // The url contains invalid tag.
  128. INVALID_TAG_IN_URL = 46;
  129. // The url must contain at least one tag (e.g. {lpurl}).
  130. MISSING_URL_TAG = 47;
  131. // Duplicate url id.
  132. DUPLICATE_URL_ID = 48;
  133. // Invalid url id.
  134. INVALID_URL_ID = 49;
  135. // The final url suffix cannot begin with '?' or '&' characters and must be
  136. // a valid query string.
  137. FINAL_URL_SUFFIX_MALFORMED = 50;
  138. // The final url suffix cannot contain {lpurl} related or {ignore} tags.
  139. INVALID_TAG_IN_FINAL_URL_SUFFIX = 51;
  140. // The top level domain is invalid, e.g. not a public top level domain
  141. // listed in publicsuffix.org.
  142. INVALID_TOP_LEVEL_DOMAIN = 53;
  143. // Malformed top level domain in URL.
  144. MALFORMED_TOP_LEVEL_DOMAIN = 54;
  145. // Malformed URL.
  146. MALFORMED_URL = 55;
  147. // No host found in URL.
  148. MISSING_HOST = 56;
  149. // Custom parameter value cannot be null.
  150. NULL_CUSTOM_PARAMETER_VALUE = 57;
  151. // Track parameter is not supported.
  152. VALUE_TRACK_PARAMETER_NOT_SUPPORTED = 58;
  153. }
  154. }