criteria.proto 21 KB

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