criteria.proto 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714
  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.common;
  16. import "google/ads/googleads/v12/enums/age_range_type.proto";
  17. import "google/ads/googleads/v12/enums/app_payment_model_type.proto";
  18. import "google/ads/googleads/v12/enums/content_label_type.proto";
  19. import "google/ads/googleads/v12/enums/day_of_week.proto";
  20. import "google/ads/googleads/v12/enums/device.proto";
  21. import "google/ads/googleads/v12/enums/gender_type.proto";
  22. import "google/ads/googleads/v12/enums/hotel_date_selection_type.proto";
  23. import "google/ads/googleads/v12/enums/income_range_type.proto";
  24. import "google/ads/googleads/v12/enums/interaction_type.proto";
  25. import "google/ads/googleads/v12/enums/keyword_match_type.proto";
  26. import "google/ads/googleads/v12/enums/listing_group_type.proto";
  27. import "google/ads/googleads/v12/enums/location_group_radius_units.proto";
  28. import "google/ads/googleads/v12/enums/minute_of_hour.proto";
  29. import "google/ads/googleads/v12/enums/parental_status_type.proto";
  30. import "google/ads/googleads/v12/enums/preferred_content_type.proto";
  31. import "google/ads/googleads/v12/enums/product_bidding_category_level.proto";
  32. import "google/ads/googleads/v12/enums/product_channel.proto";
  33. import "google/ads/googleads/v12/enums/product_channel_exclusivity.proto";
  34. import "google/ads/googleads/v12/enums/product_condition.proto";
  35. import "google/ads/googleads/v12/enums/product_custom_attribute_index.proto";
  36. import "google/ads/googleads/v12/enums/product_type_level.proto";
  37. import "google/ads/googleads/v12/enums/proximity_radius_units.proto";
  38. import "google/ads/googleads/v12/enums/webpage_condition_operand.proto";
  39. import "google/ads/googleads/v12/enums/webpage_condition_operator.proto";
  40. option csharp_namespace = "Google.Ads.GoogleAds.V12.Common";
  41. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v12/common;common";
  42. option java_multiple_files = true;
  43. option java_outer_classname = "CriteriaProto";
  44. option java_package = "com.google.ads.googleads.v12.common";
  45. option objc_class_prefix = "GAA";
  46. option php_namespace = "Google\\Ads\\GoogleAds\\V12\\Common";
  47. option ruby_package = "Google::Ads::GoogleAds::V12::Common";
  48. // Proto file describing criteria types.
  49. // A keyword criterion.
  50. message KeywordInfo {
  51. // The text of the keyword (at most 80 characters and 10 words).
  52. optional string text = 3;
  53. // The match type of the keyword.
  54. google.ads.googleads.v12.enums.KeywordMatchTypeEnum.KeywordMatchType match_type = 2;
  55. }
  56. // A placement criterion. This can be used to modify bids for sites when
  57. // targeting the content network.
  58. message PlacementInfo {
  59. // URL of the placement.
  60. //
  61. // For example, "http://www.domain.com".
  62. optional string url = 2;
  63. }
  64. // A mobile app category criterion.
  65. message MobileAppCategoryInfo {
  66. // The mobile app category constant resource name.
  67. optional string mobile_app_category_constant = 2;
  68. }
  69. // A mobile application criterion.
  70. message MobileApplicationInfo {
  71. // A string that uniquely identifies a mobile application to Google Ads API.
  72. // The format of this string is "{platform}-{platform_native_id}", where
  73. // platform is "1" for iOS apps and "2" for Android apps, and where
  74. // platform_native_id is the mobile application identifier native to the
  75. // corresponding platform.
  76. // For iOS, this native identifier is the 9 digit string that appears at the
  77. // end of an App Store URL (for example, "476943146" for "Flood-It! 2" whose
  78. // App Store link is
  79. // "http://itunes.apple.com/us/app/flood-it!-2/id476943146"). For Android,
  80. // this native identifier is the application's package name (for example,
  81. // "com.labpixies.colordrips" for "Color Drips" given Google Play link
  82. // "https://play.google.com/store/apps/details?id=com.labpixies.colordrips").
  83. // A well formed app id for Google Ads API would thus be "1-476943146" for iOS
  84. // and "2-com.labpixies.colordrips" for Android.
  85. // This field is required and must be set in CREATE operations.
  86. optional string app_id = 4;
  87. // Name of this mobile application.
  88. optional string name = 5;
  89. }
  90. // A location criterion.
  91. message LocationInfo {
  92. // The geo target constant resource name.
  93. optional string geo_target_constant = 2;
  94. }
  95. // A device criterion.
  96. message DeviceInfo {
  97. // Type of the device.
  98. google.ads.googleads.v12.enums.DeviceEnum.Device type = 1;
  99. }
  100. // A preferred content criterion.
  101. message PreferredContentInfo {
  102. // Type of the preferred content.
  103. google.ads.googleads.v12.enums.PreferredContentTypeEnum.PreferredContentType type = 2;
  104. }
  105. // A listing group criterion.
  106. message ListingGroupInfo {
  107. // Type of the listing group.
  108. google.ads.googleads.v12.enums.ListingGroupTypeEnum.ListingGroupType type = 1;
  109. // Dimension value with which this listing group is refining its parent.
  110. // Undefined for the root group.
  111. ListingDimensionInfo case_value = 2;
  112. // Resource name of ad group criterion which is the parent listing group
  113. // subdivision. Null for the root group.
  114. optional string parent_ad_group_criterion = 4;
  115. }
  116. // A listing scope criterion.
  117. message ListingScopeInfo {
  118. // Scope of the campaign criterion.
  119. repeated ListingDimensionInfo dimensions = 2;
  120. }
  121. // Listing dimensions for listing group criterion.
  122. message ListingDimensionInfo {
  123. // Dimension of one of the types below is always present.
  124. oneof dimension {
  125. // Advertiser-specific hotel ID.
  126. HotelIdInfo hotel_id = 2;
  127. // Class of the hotel as a number of stars 1 to 5.
  128. HotelClassInfo hotel_class = 3;
  129. // Country or Region the hotel is located in.
  130. HotelCountryRegionInfo hotel_country_region = 4;
  131. // State the hotel is located in.
  132. HotelStateInfo hotel_state = 5;
  133. // City the hotel is located in.
  134. HotelCityInfo hotel_city = 6;
  135. // Bidding category of a product offer.
  136. ProductBiddingCategoryInfo product_bidding_category = 13;
  137. // Brand of a product offer.
  138. ProductBrandInfo product_brand = 15;
  139. // Locality of a product offer.
  140. ProductChannelInfo product_channel = 8;
  141. // Availability of a product offer.
  142. ProductChannelExclusivityInfo product_channel_exclusivity = 9;
  143. // Condition of a product offer.
  144. ProductConditionInfo product_condition = 10;
  145. // Custom attribute of a product offer.
  146. ProductCustomAttributeInfo product_custom_attribute = 16;
  147. // Item id of a product offer.
  148. ProductItemIdInfo product_item_id = 11;
  149. // Type of a product offer.
  150. ProductTypeInfo product_type = 12;
  151. // Grouping of a product offer.
  152. ProductGroupingInfo product_grouping = 17;
  153. // Labels of a product offer.
  154. ProductLabelsInfo product_labels = 18;
  155. // Legacy condition of a product offer.
  156. ProductLegacyConditionInfo product_legacy_condition = 19;
  157. // Full type of a product offer.
  158. ProductTypeFullInfo product_type_full = 20;
  159. // Unknown dimension. Set when no other listing dimension is set.
  160. UnknownListingDimensionInfo unknown_listing_dimension = 14;
  161. }
  162. }
  163. // Advertiser-specific hotel ID.
  164. message HotelIdInfo {
  165. // String value of the hotel ID.
  166. optional string value = 2;
  167. }
  168. // Class of the hotel as a number of stars 1 to 5.
  169. message HotelClassInfo {
  170. // Long value of the hotel class.
  171. optional int64 value = 2;
  172. }
  173. // Country or Region the hotel is located in.
  174. message HotelCountryRegionInfo {
  175. // The Geo Target Constant resource name.
  176. optional string country_region_criterion = 2;
  177. }
  178. // State the hotel is located in.
  179. message HotelStateInfo {
  180. // The Geo Target Constant resource name.
  181. optional string state_criterion = 2;
  182. }
  183. // City the hotel is located in.
  184. message HotelCityInfo {
  185. // The Geo Target Constant resource name.
  186. optional string city_criterion = 2;
  187. }
  188. // Bidding category of a product offer.
  189. message ProductBiddingCategoryInfo {
  190. // ID of the product bidding category.
  191. //
  192. // This ID is equivalent to the google_product_category ID as described in
  193. // this article: https://support.google.com/merchants/answer/6324436
  194. optional int64 id = 4;
  195. // Two-letter upper-case country code of the product bidding category. It must
  196. // match the campaign.shopping_setting.sales_country field.
  197. optional string country_code = 5;
  198. // Level of the product bidding category.
  199. google.ads.googleads.v12.enums.ProductBiddingCategoryLevelEnum.ProductBiddingCategoryLevel level = 3;
  200. }
  201. // Brand of the product.
  202. message ProductBrandInfo {
  203. // String value of the product brand.
  204. optional string value = 2;
  205. }
  206. // Locality of a product offer.
  207. message ProductChannelInfo {
  208. // Value of the locality.
  209. google.ads.googleads.v12.enums.ProductChannelEnum.ProductChannel channel = 1;
  210. }
  211. // Availability of a product offer.
  212. message ProductChannelExclusivityInfo {
  213. // Value of the availability.
  214. google.ads.googleads.v12.enums.ProductChannelExclusivityEnum.ProductChannelExclusivity channel_exclusivity = 1;
  215. }
  216. // Condition of a product offer.
  217. message ProductConditionInfo {
  218. // Value of the condition.
  219. google.ads.googleads.v12.enums.ProductConditionEnum.ProductCondition condition = 1;
  220. }
  221. // Custom attribute of a product offer.
  222. message ProductCustomAttributeInfo {
  223. // String value of the product custom attribute.
  224. optional string value = 3;
  225. // Indicates the index of the custom attribute.
  226. google.ads.googleads.v12.enums.ProductCustomAttributeIndexEnum.ProductCustomAttributeIndex index = 2;
  227. }
  228. // Item id of a product offer.
  229. message ProductItemIdInfo {
  230. // Value of the id.
  231. optional string value = 2;
  232. }
  233. // Type of a product offer.
  234. message ProductTypeInfo {
  235. // Value of the type.
  236. optional string value = 3;
  237. // Level of the type.
  238. google.ads.googleads.v12.enums.ProductTypeLevelEnum.ProductTypeLevel level = 2;
  239. }
  240. // Grouping of a product offer. This listing dimension is deprecated and it is
  241. // supported only in Display campaigns.
  242. message ProductGroupingInfo {
  243. // String value of the product grouping.
  244. optional string value = 1;
  245. }
  246. // Labels of a product offer. This listing dimension is deprecated and it is
  247. // supported only in Display campaigns.
  248. message ProductLabelsInfo {
  249. // String value of the product labels.
  250. optional string value = 1;
  251. }
  252. // Legacy condition of a product offer. This listing dimension is deprecated and
  253. // it is supported only in Display campaigns.
  254. message ProductLegacyConditionInfo {
  255. // String value of the product legacy condition.
  256. optional string value = 1;
  257. }
  258. // Full type of a product offer. This listing dimension is deprecated and it is
  259. // supported only in Display campaigns.
  260. message ProductTypeFullInfo {
  261. // String value of the product full type.
  262. optional string value = 1;
  263. }
  264. // Unknown listing dimension.
  265. message UnknownListingDimensionInfo {
  266. }
  267. // Criterion for hotel date selection (default dates versus user selected).
  268. message HotelDateSelectionTypeInfo {
  269. // Type of the hotel date selection
  270. google.ads.googleads.v12.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType type = 1;
  271. }
  272. // Criterion for number of days prior to the stay the booking is being made.
  273. message HotelAdvanceBookingWindowInfo {
  274. // Low end of the number of days prior to the stay.
  275. optional int64 min_days = 3;
  276. // High end of the number of days prior to the stay.
  277. optional int64 max_days = 4;
  278. }
  279. // Criterion for length of hotel stay in nights.
  280. message HotelLengthOfStayInfo {
  281. // Low end of the number of nights in the stay.
  282. optional int64 min_nights = 3;
  283. // High end of the number of nights in the stay.
  284. optional int64 max_nights = 4;
  285. }
  286. // Criterion for a check-in date range.
  287. message HotelCheckInDateRangeInfo {
  288. // Start date in the YYYY-MM-DD format.
  289. string start_date = 1;
  290. // End date in the YYYY-MM-DD format.
  291. string end_date = 2;
  292. }
  293. // Criterion for day of the week the booking is for.
  294. message HotelCheckInDayInfo {
  295. // The day of the week.
  296. google.ads.googleads.v12.enums.DayOfWeekEnum.DayOfWeek day_of_week = 1;
  297. }
  298. // Criterion for Interaction Type.
  299. message InteractionTypeInfo {
  300. // The interaction type.
  301. google.ads.googleads.v12.enums.InteractionTypeEnum.InteractionType type = 1;
  302. }
  303. // Represents an AdSchedule criterion.
  304. //
  305. // AdSchedule is specified as the day of the week and a time interval
  306. // within which ads will be shown.
  307. //
  308. // No more than six AdSchedules can be added for the same day.
  309. message AdScheduleInfo {
  310. // Minutes after the start hour at which this schedule starts.
  311. //
  312. // This field is required for CREATE operations and is prohibited on UPDATE
  313. // operations.
  314. google.ads.googleads.v12.enums.MinuteOfHourEnum.MinuteOfHour start_minute = 1;
  315. // Minutes after the end hour at which this schedule ends. The schedule is
  316. // exclusive of the end minute.
  317. //
  318. // This field is required for CREATE operations and is prohibited on UPDATE
  319. // operations.
  320. google.ads.googleads.v12.enums.MinuteOfHourEnum.MinuteOfHour end_minute = 2;
  321. // Starting hour in 24 hour time.
  322. // This field must be between 0 and 23, inclusive.
  323. //
  324. // This field is required for CREATE operations and is prohibited on UPDATE
  325. // operations.
  326. optional int32 start_hour = 6;
  327. // Ending hour in 24 hour time; 24 signifies end of the day.
  328. // This field must be between 0 and 24, inclusive.
  329. //
  330. // This field is required for CREATE operations and is prohibited on UPDATE
  331. // operations.
  332. optional int32 end_hour = 7;
  333. // Day of the week the schedule applies to.
  334. //
  335. // This field is required for CREATE operations and is prohibited on UPDATE
  336. // operations.
  337. google.ads.googleads.v12.enums.DayOfWeekEnum.DayOfWeek day_of_week = 5;
  338. }
  339. // An age range criterion.
  340. message AgeRangeInfo {
  341. // Type of the age range.
  342. google.ads.googleads.v12.enums.AgeRangeTypeEnum.AgeRangeType type = 1;
  343. }
  344. // A gender criterion.
  345. message GenderInfo {
  346. // Type of the gender.
  347. google.ads.googleads.v12.enums.GenderTypeEnum.GenderType type = 1;
  348. }
  349. // An income range criterion.
  350. message IncomeRangeInfo {
  351. // Type of the income range.
  352. google.ads.googleads.v12.enums.IncomeRangeTypeEnum.IncomeRangeType type = 1;
  353. }
  354. // A parental status criterion.
  355. message ParentalStatusInfo {
  356. // Type of the parental status.
  357. google.ads.googleads.v12.enums.ParentalStatusTypeEnum.ParentalStatusType type = 1;
  358. }
  359. // A YouTube Video criterion.
  360. message YouTubeVideoInfo {
  361. // YouTube video id as it appears on the YouTube watch page.
  362. optional string video_id = 2;
  363. }
  364. // A YouTube Channel criterion.
  365. message YouTubeChannelInfo {
  366. // The YouTube uploader channel id or the channel code of a YouTube channel.
  367. optional string channel_id = 2;
  368. }
  369. // A User List criterion. Represents a user list that is defined by the
  370. // advertiser to be targeted.
  371. message UserListInfo {
  372. // The User List resource name.
  373. optional string user_list = 2;
  374. }
  375. // A Proximity criterion. The geo point and radius determine what geographical
  376. // area is included. The address is a description of the geo point that does
  377. // not affect ad serving.
  378. //
  379. // There are two ways to create a proximity. First, by setting an address
  380. // and radius. The geo point will be automatically computed. Second, by
  381. // setting a geo point and radius. The address is an optional label that won't
  382. // be validated.
  383. message ProximityInfo {
  384. // Latitude and longitude.
  385. GeoPointInfo geo_point = 1;
  386. // The radius of the proximity.
  387. optional double radius = 5;
  388. // The unit of measurement of the radius. Default is KILOMETERS.
  389. google.ads.googleads.v12.enums.ProximityRadiusUnitsEnum.ProximityRadiusUnits radius_units = 3;
  390. // Full address.
  391. AddressInfo address = 4;
  392. }
  393. // Geo point for proximity criterion.
  394. message GeoPointInfo {
  395. // Micro degrees for the longitude.
  396. optional int32 longitude_in_micro_degrees = 3;
  397. // Micro degrees for the latitude.
  398. optional int32 latitude_in_micro_degrees = 4;
  399. }
  400. // Address for proximity criterion.
  401. message AddressInfo {
  402. // Postal code.
  403. optional string postal_code = 8;
  404. // Province or state code.
  405. optional string province_code = 9;
  406. // Country code.
  407. optional string country_code = 10;
  408. // Province or state name.
  409. optional string province_name = 11;
  410. // Street address line 1.
  411. optional string street_address = 12;
  412. // Street address line 2. This field is write-only. It is only used for
  413. // calculating the longitude and latitude of an address when geo_point is
  414. // empty.
  415. optional string street_address2 = 13;
  416. // Name of the city.
  417. optional string city_name = 14;
  418. }
  419. // A topic criterion. Use topics to target or exclude placements in the
  420. // Google Display Network based on the category into which the placement falls
  421. // (for example, "Pets & Animals/Pets/Dogs").
  422. message TopicInfo {
  423. // The Topic Constant resource name.
  424. optional string topic_constant = 3;
  425. // The category to target or exclude. Each subsequent element in the array
  426. // describes a more specific sub-category. For example,
  427. // "Pets & Animals", "Pets", "Dogs" represents the "Pets & Animals/Pets/Dogs"
  428. // category.
  429. repeated string path = 4;
  430. }
  431. // A language criterion.
  432. message LanguageInfo {
  433. // The language constant resource name.
  434. optional string language_constant = 2;
  435. }
  436. // An IpBlock criterion used for IP exclusions. We allow:
  437. // - IPv4 and IPv6 addresses
  438. // - individual addresses (192.168.0.1)
  439. // - masks for individual addresses (192.168.0.1/32)
  440. // - masks for Class C networks (192.168.0.1/24)
  441. message IpBlockInfo {
  442. // The IP address of this IP block.
  443. optional string ip_address = 2;
  444. }
  445. // Content Label for category exclusion.
  446. message ContentLabelInfo {
  447. // Content label type, required for CREATE operations.
  448. google.ads.googleads.v12.enums.ContentLabelTypeEnum.ContentLabelType type = 1;
  449. }
  450. // Represents a Carrier Criterion.
  451. message CarrierInfo {
  452. // The Carrier constant resource name.
  453. optional string carrier_constant = 2;
  454. }
  455. // Represents a particular interest-based topic to be targeted.
  456. message UserInterestInfo {
  457. // The UserInterest resource name.
  458. optional string user_interest_category = 2;
  459. }
  460. // Represents a criterion for targeting webpages of an advertiser's website.
  461. message WebpageInfo {
  462. // The name of the criterion that is defined by this parameter. The name value
  463. // will be used for identifying, sorting and filtering criteria with this type
  464. // of parameters.
  465. //
  466. // This field is required for CREATE operations and is prohibited on UPDATE
  467. // operations.
  468. optional string criterion_name = 3;
  469. // Conditions, or logical expressions, for webpage targeting. The list of
  470. // webpage targeting conditions are and-ed together when evaluated
  471. // for targeting. An empty list of conditions indicates all pages of the
  472. // campaign's website are targeted.
  473. //
  474. // This field is required for CREATE operations and is prohibited on UPDATE
  475. // operations.
  476. repeated WebpageConditionInfo conditions = 2;
  477. // Website criteria coverage percentage. This is the computed percentage
  478. // of website coverage based on the website target, negative website target
  479. // and negative keywords in the ad group and campaign. For instance, when
  480. // coverage returns as 1, it indicates it has 100% coverage. This field is
  481. // read-only.
  482. double coverage_percentage = 4;
  483. // List of sample urls that match the website target. This field is read-only.
  484. WebpageSampleInfo sample = 5;
  485. }
  486. // Logical expression for targeting webpages of an advertiser's website.
  487. message WebpageConditionInfo {
  488. // Operand of webpage targeting condition.
  489. google.ads.googleads.v12.enums.WebpageConditionOperandEnum.WebpageConditionOperand operand = 1;
  490. // Operator of webpage targeting condition.
  491. google.ads.googleads.v12.enums.WebpageConditionOperatorEnum.WebpageConditionOperator operator = 2;
  492. // Argument of webpage targeting condition.
  493. optional string argument = 4;
  494. }
  495. // List of sample urls that match the website target
  496. message WebpageSampleInfo {
  497. // Webpage sample urls
  498. repeated string sample_urls = 1;
  499. }
  500. // Represents an operating system version to be targeted.
  501. message OperatingSystemVersionInfo {
  502. // The operating system version constant resource name.
  503. optional string operating_system_version_constant = 2;
  504. }
  505. // An app payment model criterion.
  506. message AppPaymentModelInfo {
  507. // Type of the app payment model.
  508. google.ads.googleads.v12.enums.AppPaymentModelTypeEnum.AppPaymentModelType type = 1;
  509. }
  510. // A mobile device criterion.
  511. message MobileDeviceInfo {
  512. // The mobile device constant resource name.
  513. optional string mobile_device_constant = 2;
  514. }
  515. // A custom affinity criterion.
  516. // A criterion of this type is only targetable.
  517. message CustomAffinityInfo {
  518. // The CustomInterest resource name.
  519. optional string custom_affinity = 2;
  520. }
  521. // A custom intent criterion.
  522. // A criterion of this type is only targetable.
  523. message CustomIntentInfo {
  524. // The CustomInterest resource name.
  525. optional string custom_intent = 2;
  526. }
  527. // A radius around a list of locations specified through a feed or assetSet.
  528. message LocationGroupInfo {
  529. // Feed specifying locations for targeting. Cannot be set with AssetSet
  530. // fields. This is required and must be set in CREATE operations.
  531. optional string feed = 5;
  532. // Geo target constant(s) restricting the scope of the geographic area within
  533. // the feed. Currently only one geo target constant is allowed. Cannot be set
  534. // with AssetSet fields.
  535. repeated string geo_target_constants = 6;
  536. // Distance in units specifying the radius around targeted locations.
  537. // This is required and must be set in CREATE operations.
  538. optional int64 radius = 7;
  539. // Unit of the radius. Miles and meters are supported for geo target
  540. // constants. Milli miles and meters are supported for feed item sets and
  541. // asset sets. This is required and must be set in CREATE operations.
  542. google.ads.googleads.v12.enums.LocationGroupRadiusUnitsEnum.LocationGroupRadiusUnits radius_units = 4;
  543. // FeedItemSets whose FeedItems are targeted. If multiple IDs are specified,
  544. // then all items that appear in at least one set are targeted. This field
  545. // cannot be used with geo_target_constants. This is optional and can only be
  546. // set in CREATE operations. Cannot be set with AssetSet fields.
  547. repeated string feed_item_sets = 8;
  548. // Denotes that the latest customer level asset set is used for targeting.
  549. // Used with radius and radius_units. Cannot be used with
  550. // feed, geo target constants or feed item sets. When using asset sets, either
  551. // this field or location_group_asset_sets should be specified. Both cannot be
  552. // used at the same time. This can only be set in CREATE operations.
  553. optional bool enable_customer_level_location_asset_set = 9;
  554. // AssetSets whose Assets are targeted. If multiple IDs are specified, then
  555. // all items that appear in at least one set are targeted. This field cannot
  556. // be used with feed, geo target constants or feed item sets. When using asset
  557. // sets, either this field or enable_customer_level_location_asset_set should
  558. // be specified. Both cannot be used at the same time. This can only be set
  559. // in CREATE operations.
  560. repeated string location_group_asset_sets = 10;
  561. }
  562. // A custom audience criterion.
  563. message CustomAudienceInfo {
  564. // The CustomAudience resource name.
  565. string custom_audience = 1;
  566. }
  567. // A combined audience criterion.
  568. message CombinedAudienceInfo {
  569. // The CombinedAudience resource name.
  570. string combined_audience = 1;
  571. }
  572. // An audience criterion.
  573. message AudienceInfo {
  574. // The Audience resource name.
  575. string audience = 1;
  576. }
  577. // A Smart Campaign keyword theme.
  578. message KeywordThemeInfo {
  579. // Either a predefined keyword theme constant or free-form text may be
  580. // specified.
  581. oneof keyword_theme {
  582. // The resource name of a Smart Campaign keyword theme constant.
  583. // `keywordThemeConstants/{keyword_theme_id}~{sub_keyword_theme_id}`
  584. string keyword_theme_constant = 1;
  585. // Free-form text to be matched to a Smart Campaign keyword theme constant
  586. // on a best-effort basis.
  587. string free_form_keyword_theme = 2;
  588. }
  589. }