criterion_error.proto 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  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 = "CriterionErrorProto";
  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 criterion errors.
  25. // Container for enum describing possible criterion errors.
  26. message CriterionErrorEnum {
  27. // Enum describing possible criterion errors.
  28. enum CriterionError {
  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 is required for CREATE and UPDATE operations.
  34. CONCRETE_TYPE_REQUIRED = 2;
  35. // The category requested for exclusion is invalid.
  36. INVALID_EXCLUDED_CATEGORY = 3;
  37. // Invalid keyword criteria text.
  38. INVALID_KEYWORD_TEXT = 4;
  39. // Keyword text should be less than 80 chars.
  40. KEYWORD_TEXT_TOO_LONG = 5;
  41. // Keyword text has too many words.
  42. KEYWORD_HAS_TOO_MANY_WORDS = 6;
  43. // Keyword text has invalid characters or symbols.
  44. KEYWORD_HAS_INVALID_CHARS = 7;
  45. // Invalid placement URL.
  46. INVALID_PLACEMENT_URL = 8;
  47. // Invalid user list criterion.
  48. INVALID_USER_LIST = 9;
  49. // Invalid user interest criterion.
  50. INVALID_USER_INTEREST = 10;
  51. // Placement URL has wrong format.
  52. INVALID_FORMAT_FOR_PLACEMENT_URL = 11;
  53. // Placement URL is too long.
  54. PLACEMENT_URL_IS_TOO_LONG = 12;
  55. // Indicates the URL contains an illegal character.
  56. PLACEMENT_URL_HAS_ILLEGAL_CHAR = 13;
  57. // Indicates the URL contains multiple comma separated URLs.
  58. PLACEMENT_URL_HAS_MULTIPLE_SITES_IN_LINE = 14;
  59. // Indicates the domain is blocked.
  60. PLACEMENT_IS_NOT_AVAILABLE_FOR_TARGETING_OR_EXCLUSION = 15;
  61. // Invalid topic path.
  62. INVALID_TOPIC_PATH = 16;
  63. // The YouTube Channel Id is invalid.
  64. INVALID_YOUTUBE_CHANNEL_ID = 17;
  65. // The YouTube Video Id is invalid.
  66. INVALID_YOUTUBE_VIDEO_ID = 18;
  67. // Indicates the placement is a YouTube vertical channel, which is no longer
  68. // supported.
  69. YOUTUBE_VERTICAL_CHANNEL_DEPRECATED = 19;
  70. // Indicates the placement is a YouTube demographic channel, which is no
  71. // longer supported.
  72. YOUTUBE_DEMOGRAPHIC_CHANNEL_DEPRECATED = 20;
  73. // YouTube urls are not supported in Placement criterion. Use YouTubeChannel
  74. // and YouTubeVideo criterion instead.
  75. YOUTUBE_URL_UNSUPPORTED = 21;
  76. // Criteria type can not be excluded by the customer, like AOL account type
  77. // cannot target site type criteria.
  78. CANNOT_EXCLUDE_CRITERIA_TYPE = 22;
  79. // Criteria type can not be targeted.
  80. CANNOT_ADD_CRITERIA_TYPE = 23;
  81. // Not allowed to exclude similar user list.
  82. CANNOT_EXCLUDE_SIMILAR_USER_LIST = 26;
  83. // Not allowed to target a closed user list.
  84. CANNOT_ADD_CLOSED_USER_LIST = 27;
  85. // Not allowed to add display only UserLists to search only campaigns.
  86. CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_ONLY_CAMPAIGNS = 28;
  87. // Not allowed to add display only UserLists to search plus campaigns.
  88. CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_CAMPAIGNS = 29;
  89. // Not allowed to add display only UserLists to shopping campaigns.
  90. CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SHOPPING_CAMPAIGNS = 30;
  91. // Not allowed to add User interests to search only campaigns.
  92. CANNOT_ADD_USER_INTERESTS_TO_SEARCH_CAMPAIGNS = 31;
  93. // Not allowed to set bids for this criterion type in search campaigns
  94. CANNOT_SET_BIDS_ON_CRITERION_TYPE_IN_SEARCH_CAMPAIGNS = 32;
  95. // Final URLs, URL Templates and CustomParameters cannot be set for the
  96. // criterion types of Gender, AgeRange, UserList, Placement, MobileApp, and
  97. // MobileAppCategory in search campaigns and shopping campaigns.
  98. CANNOT_ADD_URLS_TO_CRITERION_TYPE_FOR_CAMPAIGN_TYPE = 33;
  99. // Invalid combined audience criterion.
  100. INVALID_COMBINED_AUDIENCE = 122;
  101. // Invalid custom affinity criterion.
  102. INVALID_CUSTOM_AFFINITY = 96;
  103. // Invalid custom intent criterion.
  104. INVALID_CUSTOM_INTENT = 97;
  105. // Invalid custom audience criterion.
  106. INVALID_CUSTOM_AUDIENCE = 121;
  107. // IP address is not valid.
  108. INVALID_IP_ADDRESS = 34;
  109. // IP format is not valid.
  110. INVALID_IP_FORMAT = 35;
  111. // Mobile application is not valid.
  112. INVALID_MOBILE_APP = 36;
  113. // Mobile application category is not valid.
  114. INVALID_MOBILE_APP_CATEGORY = 37;
  115. // The CriterionId does not exist or is of the incorrect type.
  116. INVALID_CRITERION_ID = 38;
  117. // The Criterion is not allowed to be targeted.
  118. CANNOT_TARGET_CRITERION = 39;
  119. // The criterion is not allowed to be targeted as it is deprecated.
  120. CANNOT_TARGET_OBSOLETE_CRITERION = 40;
  121. // The CriterionId is not valid for the type.
  122. CRITERION_ID_AND_TYPE_MISMATCH = 41;
  123. // Distance for the radius for the proximity criterion is invalid.
  124. INVALID_PROXIMITY_RADIUS = 42;
  125. // Units for the distance for the radius for the proximity criterion is
  126. // invalid.
  127. INVALID_PROXIMITY_RADIUS_UNITS = 43;
  128. // Street address in the address is not valid.
  129. INVALID_STREETADDRESS_LENGTH = 44;
  130. // City name in the address is not valid.
  131. INVALID_CITYNAME_LENGTH = 45;
  132. // Region code in the address is not valid.
  133. INVALID_REGIONCODE_LENGTH = 46;
  134. // Region name in the address is not valid.
  135. INVALID_REGIONNAME_LENGTH = 47;
  136. // Postal code in the address is not valid.
  137. INVALID_POSTALCODE_LENGTH = 48;
  138. // Country code in the address is not valid.
  139. INVALID_COUNTRY_CODE = 49;
  140. // Latitude for the GeoPoint is not valid.
  141. INVALID_LATITUDE = 50;
  142. // Longitude for the GeoPoint is not valid.
  143. INVALID_LONGITUDE = 51;
  144. // The Proximity input is not valid. Both address and geoPoint cannot be
  145. // null.
  146. PROXIMITY_GEOPOINT_AND_ADDRESS_BOTH_CANNOT_BE_NULL = 52;
  147. // The Proximity address cannot be geocoded to a valid lat/long.
  148. INVALID_PROXIMITY_ADDRESS = 53;
  149. // User domain name is not valid.
  150. INVALID_USER_DOMAIN_NAME = 54;
  151. // Length of serialized criterion parameter exceeded size limit.
  152. CRITERION_PARAMETER_TOO_LONG = 55;
  153. // Time interval in the AdSchedule overlaps with another AdSchedule.
  154. AD_SCHEDULE_TIME_INTERVALS_OVERLAP = 56;
  155. // AdSchedule time interval cannot span multiple days.
  156. AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS = 57;
  157. // AdSchedule time interval specified is invalid, endTime cannot be earlier
  158. // than startTime.
  159. AD_SCHEDULE_INVALID_TIME_INTERVAL = 58;
  160. // The number of AdSchedule entries in a day exceeds the limit.
  161. AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT = 59;
  162. // CriteriaId does not match the interval of the AdSchedule specified.
  163. AD_SCHEDULE_CRITERION_ID_MISMATCHING_FIELDS = 60;
  164. // Cannot set bid modifier for this criterion type.
  165. CANNOT_BID_MODIFY_CRITERION_TYPE = 61;
  166. // Cannot bid modify criterion, since it is opted out of the campaign.
  167. CANNOT_BID_MODIFY_CRITERION_CAMPAIGN_OPTED_OUT = 62;
  168. // Cannot set bid modifier for a negative criterion.
  169. CANNOT_BID_MODIFY_NEGATIVE_CRITERION = 63;
  170. // Bid Modifier already exists. Use SET operation to update.
  171. BID_MODIFIER_ALREADY_EXISTS = 64;
  172. // Feed Id is not allowed in these Location Groups.
  173. FEED_ID_NOT_ALLOWED = 65;
  174. // The account may not use the requested criteria type. For example, some
  175. // accounts are restricted to keywords only.
  176. ACCOUNT_INELIGIBLE_FOR_CRITERIA_TYPE = 66;
  177. // The requested criteria type cannot be used with campaign or ad group
  178. // bidding strategy.
  179. CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY = 67;
  180. // The Criterion is not allowed to be excluded.
  181. CANNOT_EXCLUDE_CRITERION = 68;
  182. // The criterion is not allowed to be removed. For example, we cannot remove
  183. // any of the device criterion.
  184. CANNOT_REMOVE_CRITERION = 69;
  185. // Bidding categories do not form a valid path in the Shopping bidding
  186. // category taxonomy.
  187. INVALID_PRODUCT_BIDDING_CATEGORY = 76;
  188. // ShoppingSetting must be added to the campaign before ProductScope
  189. // criteria can be added.
  190. MISSING_SHOPPING_SETTING = 77;
  191. // Matching function is invalid.
  192. INVALID_MATCHING_FUNCTION = 78;
  193. // Filter parameters not allowed for location groups targeting.
  194. LOCATION_FILTER_NOT_ALLOWED = 79;
  195. // Feed not found, or the feed is not an enabled location feed.
  196. INVALID_FEED_FOR_LOCATION_FILTER = 98;
  197. // Given location filter parameter is invalid for location groups targeting.
  198. LOCATION_FILTER_INVALID = 80;
  199. // Cannot set geo target constants and feed item sets at the same time.
  200. CANNOT_SET_GEO_TARGET_CONSTANTS_WITH_FEED_ITEM_SETS = 123;
  201. // The location group radius is in the range but not at the valid increment.
  202. INVALID_LOCATION_GROUP_RADIUS = 124;
  203. // The location group radius unit is invalid.
  204. INVALID_LOCATION_GROUP_RADIUS_UNIT = 125;
  205. // Criteria type cannot be associated with a campaign and its ad group(s)
  206. // simultaneously.
  207. CANNOT_ATTACH_CRITERIA_AT_CAMPAIGN_AND_ADGROUP = 81;
  208. // Range represented by hotel length of stay's min nights and max nights
  209. // overlaps with an existing criterion.
  210. HOTEL_LENGTH_OF_STAY_OVERLAPS_WITH_EXISTING_CRITERION = 82;
  211. // Range represented by hotel advance booking window's min days and max days
  212. // overlaps with an existing criterion.
  213. HOTEL_ADVANCE_BOOKING_WINDOW_OVERLAPS_WITH_EXISTING_CRITERION = 83;
  214. // The field is not allowed to be set when the negative field is set to
  215. // true, e.g. we don't allow bids in negative ad group or campaign criteria.
  216. FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING = 84;
  217. // The combination of operand and operator in webpage condition is invalid.
  218. INVALID_WEBPAGE_CONDITION = 85;
  219. // The URL of webpage condition is invalid.
  220. INVALID_WEBPAGE_CONDITION_URL = 86;
  221. // The URL of webpage condition cannot be empty or contain white space.
  222. WEBPAGE_CONDITION_URL_CANNOT_BE_EMPTY = 87;
  223. // The URL of webpage condition contains an unsupported protocol.
  224. WEBPAGE_CONDITION_URL_UNSUPPORTED_PROTOCOL = 88;
  225. // The URL of webpage condition cannot be an IP address.
  226. WEBPAGE_CONDITION_URL_CANNOT_BE_IP_ADDRESS = 89;
  227. // The domain of the URL is not consistent with the domain in campaign
  228. // setting.
  229. WEBPAGE_CONDITION_URL_DOMAIN_NOT_CONSISTENT_WITH_CAMPAIGN_SETTING = 90;
  230. // The URL of webpage condition cannot be a public suffix itself.
  231. WEBPAGE_CONDITION_URL_CANNOT_BE_PUBLIC_SUFFIX = 91;
  232. // The URL of webpage condition has an invalid public suffix.
  233. WEBPAGE_CONDITION_URL_INVALID_PUBLIC_SUFFIX = 92;
  234. // Value track parameter is not supported in webpage condition URL.
  235. WEBPAGE_CONDITION_URL_VALUE_TRACK_VALUE_NOT_SUPPORTED = 93;
  236. // Only one URL-EQUALS webpage condition is allowed in a webpage
  237. // criterion and it cannot be combined with other conditions.
  238. WEBPAGE_CRITERION_URL_EQUALS_CAN_HAVE_ONLY_ONE_CONDITION = 94;
  239. // A webpage criterion cannot be added to a non-DSA ad group.
  240. WEBPAGE_CRITERION_NOT_SUPPORTED_ON_NON_DSA_AD_GROUP = 95;
  241. // Cannot add positive user list criteria in Smart Display campaigns.
  242. CANNOT_TARGET_USER_LIST_FOR_SMART_DISPLAY_CAMPAIGNS = 99;
  243. // Cannot add positive placement criterion types in search campaigns.
  244. CANNOT_TARGET_PLACEMENTS_FOR_SEARCH_CAMPAIGNS = 126;
  245. // Listing scope contains too many dimension types.
  246. LISTING_SCOPE_TOO_MANY_DIMENSION_TYPES = 100;
  247. // Listing scope has too many IN operators.
  248. LISTING_SCOPE_TOO_MANY_IN_OPERATORS = 101;
  249. // Listing scope contains IN operator on an unsupported dimension type.
  250. LISTING_SCOPE_IN_OPERATOR_NOT_SUPPORTED = 102;
  251. // There are dimensions with duplicate dimension type.
  252. DUPLICATE_LISTING_DIMENSION_TYPE = 103;
  253. // There are dimensions with duplicate dimension value.
  254. DUPLICATE_LISTING_DIMENSION_VALUE = 104;
  255. // Listing group SUBDIVISION nodes cannot have bids.
  256. CANNOT_SET_BIDS_ON_LISTING_GROUP_SUBDIVISION = 105;
  257. // Ad group is invalid due to the listing groups it contains.
  258. INVALID_LISTING_GROUP_HIERARCHY = 106;
  259. // Listing group unit cannot have children.
  260. LISTING_GROUP_UNIT_CANNOT_HAVE_CHILDREN = 107;
  261. // Subdivided listing groups must have an "others" case.
  262. LISTING_GROUP_SUBDIVISION_REQUIRES_OTHERS_CASE = 108;
  263. // Dimension type of listing group must be the same as that of its siblings.
  264. LISTING_GROUP_REQUIRES_SAME_DIMENSION_TYPE_AS_SIBLINGS = 109;
  265. // Listing group cannot be added to the ad group because it already exists.
  266. LISTING_GROUP_ALREADY_EXISTS = 110;
  267. // Listing group referenced in the operation was not found in the ad group.
  268. LISTING_GROUP_DOES_NOT_EXIST = 111;
  269. // Recursive removal failed because listing group subdivision is being
  270. // created or modified in this request.
  271. LISTING_GROUP_CANNOT_BE_REMOVED = 112;
  272. // Listing group type is not allowed for specified ad group criterion type.
  273. INVALID_LISTING_GROUP_TYPE = 113;
  274. // Listing group in an ADD operation specifies a non temporary criterion id.
  275. LISTING_GROUP_ADD_MAY_ONLY_USE_TEMP_ID = 114;
  276. // The combined length of dimension values of the Listing scope criterion
  277. // is too long.
  278. LISTING_SCOPE_TOO_LONG = 115;
  279. // Listing scope contains too many dimensions.
  280. LISTING_SCOPE_TOO_MANY_DIMENSIONS = 116;
  281. // The combined length of dimension values of the Listing group criterion is
  282. // too long.
  283. LISTING_GROUP_TOO_LONG = 117;
  284. // Listing group tree is too deep.
  285. LISTING_GROUP_TREE_TOO_DEEP = 118;
  286. // Listing dimension is invalid (e.g. dimension contains illegal value,
  287. // dimension type is represented with wrong class, etc). Listing dimension
  288. // value can not contain "==" or "&+".
  289. INVALID_LISTING_DIMENSION = 119;
  290. // Listing dimension type is either invalid for campaigns of this type or
  291. // cannot be used in the current context. BIDDING_CATEGORY_Lx and
  292. // PRODUCT_TYPE_Lx dimensions must be used in ascending order of their
  293. // levels: L1, L2, L3, L4, L5... The levels must be specified sequentially
  294. // and start from L1. Furthermore, an "others" Listing group cannot be
  295. // subdivided with a dimension of the same type but of a higher level
  296. // ("others" BIDDING_CATEGORY_L3 can be subdivided with BRAND but not with
  297. // BIDDING_CATEGORY_L4).
  298. INVALID_LISTING_DIMENSION_TYPE = 120;
  299. // Customer is not on allowlist for composite audience in display campaigns.
  300. ADVERTISER_NOT_ON_ALLOWLIST_FOR_COMBINED_AUDIENCE_ON_DISPLAY = 127;
  301. // Cannot target on a removed combined audience.
  302. CANNOT_TARGET_REMOVED_COMBINED_AUDIENCE = 128;
  303. // Combined audience ID is invalid.
  304. INVALID_COMBINED_AUDIENCE_ID = 129;
  305. // Can not target removed combined audience.
  306. CANNOT_TARGET_REMOVED_CUSTOM_AUDIENCE = 130;
  307. // Range represented by hotel check-in date's start date and end date
  308. // overlaps with an existing criterion.
  309. HOTEL_CHECK_IN_DATE_RANGE_OVERLAPS_WITH_EXISTING_CRITERION = 131;
  310. // Start date is earlier than earliest allowed value of yesterday UTC.
  311. HOTEL_CHECK_IN_DATE_RANGE_START_DATE_TOO_EARLY = 132;
  312. // End date later is than latest allowed day of 330 days in the future UTC.
  313. HOTEL_CHECK_IN_DATE_RANGE_END_DATE_TOO_LATE = 133;
  314. // Start date is after end date.
  315. HOTEL_CHECK_IN_DATE_RANGE_REVERSED = 134;
  316. // Broad match modifier (BMM) keywords can no longer be created. Please see
  317. // https://ads-developers.googleblog.com/2021/06/broad-match-modifier-upcoming-changes.html.
  318. BROAD_MATCH_MODIFIER_KEYWORD_NOT_ALLOWED = 135;
  319. // Only one audience is allowed in an asset group.
  320. ONE_AUDIENCE_ALLOWED_PER_ASSET_GROUP = 136;
  321. // Audience is not supported for the specified campaign type.
  322. AUDIENCE_NOT_ELIGIBLE_FOR_CAMPAIGN_TYPE = 137;
  323. // Audience is not allowed to attach when use_audience_grouped bit is set to
  324. // false.
  325. AUDIENCE_NOT_ALLOWED_TO_ATTACH_WHEN_AUDIENCE_GROUPED_SET_TO_FALSE = 138;
  326. // Targeting is not allowed for Customer Match lists as per Customer Match
  327. // policy. Please see
  328. // https://support.google.com/google-ads/answer/6299717.
  329. CANNOT_TARGET_CUSTOMER_MATCH_USER_LIST = 139;
  330. }
  331. }