1 // Copyright 2018 Google LLC.
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
7 // http://www.apache.org/licenses/LICENSE-2.0
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.
18 package google.ads.googleads.v0.errors;
20 option csharp_namespace = "Google.Ads.GoogleAds.V0.Errors";
21 option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v0/errors;errors";
22 option java_multiple_files = true;
23 option java_outer_classname = "UrlFieldErrorProto";
24 option java_package = "com.google.ads.googleads.v0.errors";
25 option objc_class_prefix = "GAA";
26 option php_namespace = "Google\\Ads\\GoogleAds\\V0\\Errors";
27 option ruby_package = "Google::Ads::GoogleAds::V0::Errors";
29 // Proto file describing url field errors.
31 // Container for enum describing possible url field errors.
32 message UrlFieldErrorEnum {
33 // Enum describing possible url field errors.
38 // The received error code is not known in this version.
41 // The tracking url template is invalid.
42 INVALID_TRACKING_URL_TEMPLATE = 2;
44 // The tracking url template contains invalid tag.
45 INVALID_TAG_IN_TRACKING_URL_TEMPLATE = 3;
47 // The tracking url template must contain at least one tag (e.g. {lpurl}),
48 // This applies only to tracking url template associated with website ads or
50 MISSING_TRACKING_URL_TEMPLATE_TAG = 4;
52 // The tracking url template must start with a valid protocol (or lpurl
54 MISSING_PROTOCOL_IN_TRACKING_URL_TEMPLATE = 5;
56 // The tracking url template starts with an invalid protocol.
57 INVALID_PROTOCOL_IN_TRACKING_URL_TEMPLATE = 6;
59 // The tracking url template contains illegal characters.
60 MALFORMED_TRACKING_URL_TEMPLATE = 7;
62 // The tracking url template must contain a host name (or lpurl tag).
63 MISSING_HOST_IN_TRACKING_URL_TEMPLATE = 8;
65 // The tracking url template has an invalid or missing top level domain
67 INVALID_TLD_IN_TRACKING_URL_TEMPLATE = 9;
69 // The tracking url template contains nested occurrences of the same
70 // conditional tag (i.e. {ifmobile:{ifmobile:x}}).
71 REDUNDANT_NESTED_TRACKING_URL_TEMPLATE_TAG = 10;
73 // The final url is invalid.
74 INVALID_FINAL_URL = 11;
76 // The final url contains invalid tag.
77 INVALID_TAG_IN_FINAL_URL = 12;
79 // The final url contains nested occurrences of the same conditional tag
80 // (i.e. {ifmobile:{ifmobile:x}}).
81 REDUNDANT_NESTED_FINAL_URL_TAG = 13;
83 // The final url must start with a valid protocol.
84 MISSING_PROTOCOL_IN_FINAL_URL = 14;
86 // The final url starts with an invalid protocol.
87 INVALID_PROTOCOL_IN_FINAL_URL = 15;
89 // The final url contains illegal characters.
90 MALFORMED_FINAL_URL = 16;
92 // The final url must contain a host name.
93 MISSING_HOST_IN_FINAL_URL = 17;
95 // The tracking url template has an invalid or missing top level domain
97 INVALID_TLD_IN_FINAL_URL = 18;
99 // The final mobile url is invalid.
100 INVALID_FINAL_MOBILE_URL = 19;
102 // The final mobile url contains invalid tag.
103 INVALID_TAG_IN_FINAL_MOBILE_URL = 20;
105 // The final mobile url contains nested occurrences of the same conditional
106 // tag (i.e. {ifmobile:{ifmobile:x}}).
107 REDUNDANT_NESTED_FINAL_MOBILE_URL_TAG = 21;
109 // The final mobile url must start with a valid protocol.
110 MISSING_PROTOCOL_IN_FINAL_MOBILE_URL = 22;
112 // The final mobile url starts with an invalid protocol.
113 INVALID_PROTOCOL_IN_FINAL_MOBILE_URL = 23;
115 // The final mobile url contains illegal characters.
116 MALFORMED_FINAL_MOBILE_URL = 24;
118 // The final mobile url must contain a host name.
119 MISSING_HOST_IN_FINAL_MOBILE_URL = 25;
121 // The tracking url template has an invalid or missing top level domain
123 INVALID_TLD_IN_FINAL_MOBILE_URL = 26;
125 // The final app url is invalid.
126 INVALID_FINAL_APP_URL = 27;
128 // The final app url contains invalid tag.
129 INVALID_TAG_IN_FINAL_APP_URL = 28;
131 // The final app url contains nested occurrences of the same conditional tag
132 // (i.e. {ifmobile:{ifmobile:x}}).
133 REDUNDANT_NESTED_FINAL_APP_URL_TAG = 29;
135 // More than one app url found for the same OS type.
136 MULTIPLE_APP_URLS_FOR_OSTYPE = 30;
138 // The OS type given for an app url is not valid.
141 // The protocol given for an app url is not valid. (E.g. "android-app://")
142 INVALID_PROTOCOL_FOR_APP_URL = 32;
144 // The package id (app id) given for an app url is not valid.
145 INVALID_PACKAGE_ID_FOR_APP_URL = 33;
147 // The number of url custom parameters for an resource exceeds the maximum
149 URL_CUSTOM_PARAMETERS_COUNT_EXCEEDS_LIMIT = 34;
151 // An invalid character appears in the parameter key.
152 INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_KEY = 39;
154 // An invalid character appears in the parameter value.
155 INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_VALUE = 40;
157 // The url custom parameter value fails url tag validation.
158 INVALID_TAG_IN_URL_CUSTOM_PARAMETER_VALUE = 41;
160 // The custom parameter contains nested occurrences of the same conditional
161 // tag (i.e. {ifmobile:{ifmobile:x}}).
162 REDUNDANT_NESTED_URL_CUSTOM_PARAMETER_TAG = 42;
164 // The protocol (http:// or https://) is missing.
165 MISSING_PROTOCOL = 43;
167 // Unsupported protocol in URL. Only http and https are supported.
168 INVALID_PROTOCOL = 52;
170 // The url is invalid.
173 // Destination Url is deprecated.
174 DESTINATION_URL_DEPRECATED = 45;
176 // The url contains invalid tag.
177 INVALID_TAG_IN_URL = 46;
179 // The url must contain at least one tag (e.g. {lpurl}), This applies only
180 // to urls associated with website ads or product ads.
181 MISSING_URL_TAG = 47;
184 DUPLICATE_URL_ID = 48;
189 // The final url suffix cannot begin with '?' or '&' characters and must be
190 // a valid query string.
191 FINAL_URL_SUFFIX_MALFORMED = 50;
193 // The final url suffix cannot contain {lpurl} related or {ignore} tags.
194 INVALID_TAG_IN_FINAL_URL_SUFFIX = 51;
196 // The top level domain is invalid, e.g, not a public top level domain
197 // listed in publicsuffix.org.
198 INVALID_TOP_LEVEL_DOMAIN = 53;
200 // Malformed top level domain in URL.
201 MALFORMED_TOP_LEVEL_DOMAIN = 54;
206 // No host found in URL.