segments.proto 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  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.v6.common;
  16. import "google/ads/googleads/v6/common/criteria.proto";
  17. import "google/ads/googleads/v6/enums/ad_destination_type.proto";
  18. import "google/ads/googleads/v6/enums/ad_network_type.proto";
  19. import "google/ads/googleads/v6/enums/budget_campaign_association_status.proto";
  20. import "google/ads/googleads/v6/enums/click_type.proto";
  21. import "google/ads/googleads/v6/enums/conversion_action_category.proto";
  22. import "google/ads/googleads/v6/enums/conversion_attribution_event_type.proto";
  23. import "google/ads/googleads/v6/enums/conversion_lag_bucket.proto";
  24. import "google/ads/googleads/v6/enums/conversion_or_adjustment_lag_bucket.proto";
  25. import "google/ads/googleads/v6/enums/day_of_week.proto";
  26. import "google/ads/googleads/v6/enums/device.proto";
  27. import "google/ads/googleads/v6/enums/external_conversion_source.proto";
  28. import "google/ads/googleads/v6/enums/hotel_date_selection_type.proto";
  29. import "google/ads/googleads/v6/enums/hotel_price_bucket.proto";
  30. import "google/ads/googleads/v6/enums/hotel_rate_type.proto";
  31. import "google/ads/googleads/v6/enums/month_of_year.proto";
  32. import "google/ads/googleads/v6/enums/placeholder_type.proto";
  33. import "google/ads/googleads/v6/enums/product_channel.proto";
  34. import "google/ads/googleads/v6/enums/product_channel_exclusivity.proto";
  35. import "google/ads/googleads/v6/enums/product_condition.proto";
  36. import "google/ads/googleads/v6/enums/search_engine_results_page_type.proto";
  37. import "google/ads/googleads/v6/enums/search_term_match_type.proto";
  38. import "google/ads/googleads/v6/enums/slot.proto";
  39. import "google/api/annotations.proto";
  40. option csharp_namespace = "Google.Ads.GoogleAds.V6.Common";
  41. option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v6/common;common";
  42. option java_multiple_files = true;
  43. option java_outer_classname = "SegmentsProto";
  44. option java_package = "com.google.ads.googleads.v6.common";
  45. option objc_class_prefix = "GAA";
  46. option php_namespace = "Google\\Ads\\GoogleAds\\V6\\Common";
  47. option ruby_package = "Google::Ads::GoogleAds::V6::Common";
  48. // Proto file describing segment only fields.
  49. // Segment only fields.
  50. message Segments {
  51. // Ad Destination type.
  52. google.ads.googleads.v6.enums.AdDestinationTypeEnum.AdDestinationType ad_destination_type = 136;
  53. // Ad network type.
  54. google.ads.googleads.v6.enums.AdNetworkTypeEnum.AdNetworkType ad_network_type = 3;
  55. // Budget campaign association status.
  56. BudgetCampaignAssociationStatus budget_campaign_association_status = 134;
  57. // Click type.
  58. google.ads.googleads.v6.enums.ClickTypeEnum.ClickType click_type = 26;
  59. // Resource name of the conversion action.
  60. optional string conversion_action = 113;
  61. // Conversion action category.
  62. google.ads.googleads.v6.enums.ConversionActionCategoryEnum.ConversionActionCategory conversion_action_category = 53;
  63. // Conversion action name.
  64. optional string conversion_action_name = 114;
  65. // This segments your conversion columns by the original conversion and
  66. // conversion value vs. the delta if conversions were adjusted. False row has
  67. // the data as originally stated; While true row has the delta between data
  68. // now and the data as originally stated. Summing the two together results
  69. // post-adjustment data.
  70. optional bool conversion_adjustment = 115;
  71. // Conversion attribution event type.
  72. google.ads.googleads.v6.enums.ConversionAttributionEventTypeEnum.ConversionAttributionEventType conversion_attribution_event_type = 2;
  73. // An enum value representing the number of days between the impression and
  74. // the conversion.
  75. google.ads.googleads.v6.enums.ConversionLagBucketEnum.ConversionLagBucket conversion_lag_bucket = 50;
  76. // An enum value representing the number of days between the impression and
  77. // the conversion or between the impression and adjustments to the conversion.
  78. google.ads.googleads.v6.enums.ConversionOrAdjustmentLagBucketEnum.ConversionOrAdjustmentLagBucket conversion_or_adjustment_lag_bucket = 51;
  79. // Date to which metrics apply.
  80. // yyyy-MM-dd format, e.g., 2018-04-17.
  81. optional string date = 79;
  82. // Day of the week, e.g., MONDAY.
  83. google.ads.googleads.v6.enums.DayOfWeekEnum.DayOfWeek day_of_week = 5;
  84. // Device to which metrics apply.
  85. google.ads.googleads.v6.enums.DeviceEnum.Device device = 1;
  86. // External conversion source.
  87. google.ads.googleads.v6.enums.ExternalConversionSourceEnum.ExternalConversionSource external_conversion_source = 55;
  88. // Resource name of the geo target constant that represents an airport.
  89. optional string geo_target_airport = 116;
  90. // Resource name of the geo target constant that represents a canton.
  91. optional string geo_target_canton = 117;
  92. // Resource name of the geo target constant that represents a city.
  93. optional string geo_target_city = 118;
  94. // Resource name of the geo target constant that represents a country.
  95. optional string geo_target_country = 119;
  96. // Resource name of the geo target constant that represents a county.
  97. optional string geo_target_county = 120;
  98. // Resource name of the geo target constant that represents a district.
  99. optional string geo_target_district = 121;
  100. // Resource name of the geo target constant that represents a metro.
  101. optional string geo_target_metro = 122;
  102. // Resource name of the geo target constant that represents the most
  103. // specific location.
  104. optional string geo_target_most_specific_location = 123;
  105. // Resource name of the geo target constant that represents a postal code.
  106. optional string geo_target_postal_code = 124;
  107. // Resource name of the geo target constant that represents a province.
  108. optional string geo_target_province = 125;
  109. // Resource name of the geo target constant that represents a region.
  110. optional string geo_target_region = 126;
  111. // Resource name of the geo target constant that represents a state.
  112. optional string geo_target_state = 127;
  113. // Hotel booking window in days.
  114. optional int64 hotel_booking_window_days = 135;
  115. // Hotel center ID.
  116. optional int64 hotel_center_id = 80;
  117. // Hotel check-in date. Formatted as yyyy-MM-dd.
  118. optional string hotel_check_in_date = 81;
  119. // Hotel check-in day of week.
  120. google.ads.googleads.v6.enums.DayOfWeekEnum.DayOfWeek hotel_check_in_day_of_week = 9;
  121. // Hotel city.
  122. optional string hotel_city = 82;
  123. // Hotel class.
  124. optional int32 hotel_class = 83;
  125. // Hotel country.
  126. optional string hotel_country = 84;
  127. // Hotel date selection type.
  128. google.ads.googleads.v6.enums.HotelDateSelectionTypeEnum.HotelDateSelectionType hotel_date_selection_type = 13;
  129. // Hotel length of stay.
  130. optional int32 hotel_length_of_stay = 85;
  131. // Hotel rate rule ID.
  132. optional string hotel_rate_rule_id = 86;
  133. // Hotel rate type.
  134. google.ads.googleads.v6.enums.HotelRateTypeEnum.HotelRateType hotel_rate_type = 74;
  135. // Hotel price bucket.
  136. google.ads.googleads.v6.enums.HotelPriceBucketEnum.HotelPriceBucket hotel_price_bucket = 78;
  137. // Hotel state.
  138. optional string hotel_state = 87;
  139. // Hour of day as a number between 0 and 23, inclusive.
  140. optional int32 hour = 88;
  141. // Only used with feed item metrics.
  142. // Indicates whether the interaction metrics occurred on the feed item itself
  143. // or a different extension or ad unit.
  144. optional bool interaction_on_this_extension = 89;
  145. // Keyword criterion.
  146. Keyword keyword = 61;
  147. // Month as represented by the date of the first day of a month. Formatted as
  148. // yyyy-MM-dd.
  149. optional string month = 90;
  150. // Month of the year, e.g., January.
  151. google.ads.googleads.v6.enums.MonthOfYearEnum.MonthOfYear month_of_year = 18;
  152. // Partner hotel ID.
  153. optional string partner_hotel_id = 91;
  154. // Placeholder type. This is only used with feed item metrics.
  155. google.ads.googleads.v6.enums.PlaceholderTypeEnum.PlaceholderType placeholder_type = 20;
  156. // Aggregator ID of the product.
  157. optional int64 product_aggregator_id = 132;
  158. // Bidding category (level 1) of the product.
  159. optional string product_bidding_category_level1 = 92;
  160. // Bidding category (level 2) of the product.
  161. optional string product_bidding_category_level2 = 93;
  162. // Bidding category (level 3) of the product.
  163. optional string product_bidding_category_level3 = 94;
  164. // Bidding category (level 4) of the product.
  165. optional string product_bidding_category_level4 = 95;
  166. // Bidding category (level 5) of the product.
  167. optional string product_bidding_category_level5 = 96;
  168. // Brand of the product.
  169. optional string product_brand = 97;
  170. // Channel of the product.
  171. google.ads.googleads.v6.enums.ProductChannelEnum.ProductChannel product_channel = 30;
  172. // Channel exclusivity of the product.
  173. google.ads.googleads.v6.enums.ProductChannelExclusivityEnum.ProductChannelExclusivity product_channel_exclusivity = 31;
  174. // Condition of the product.
  175. google.ads.googleads.v6.enums.ProductConditionEnum.ProductCondition product_condition = 32;
  176. // Resource name of the geo target constant for the country of sale of the
  177. // product.
  178. optional string product_country = 98;
  179. // Custom attribute 0 of the product.
  180. optional string product_custom_attribute0 = 99;
  181. // Custom attribute 1 of the product.
  182. optional string product_custom_attribute1 = 100;
  183. // Custom attribute 2 of the product.
  184. optional string product_custom_attribute2 = 101;
  185. // Custom attribute 3 of the product.
  186. optional string product_custom_attribute3 = 102;
  187. // Custom attribute 4 of the product.
  188. optional string product_custom_attribute4 = 103;
  189. // Item ID of the product.
  190. optional string product_item_id = 104;
  191. // Resource name of the language constant for the language of the product.
  192. optional string product_language = 105;
  193. // Merchant ID of the product.
  194. optional int64 product_merchant_id = 133;
  195. // Store ID of the product.
  196. optional string product_store_id = 106;
  197. // Title of the product.
  198. optional string product_title = 107;
  199. // Type (level 1) of the product.
  200. optional string product_type_l1 = 108;
  201. // Type (level 2) of the product.
  202. optional string product_type_l2 = 109;
  203. // Type (level 3) of the product.
  204. optional string product_type_l3 = 110;
  205. // Type (level 4) of the product.
  206. optional string product_type_l4 = 111;
  207. // Type (level 5) of the product.
  208. optional string product_type_l5 = 112;
  209. // Quarter as represented by the date of the first day of a quarter.
  210. // Uses the calendar year for quarters, e.g., the second quarter of 2018
  211. // starts on 2018-04-01. Formatted as yyyy-MM-dd.
  212. optional string quarter = 128;
  213. // Type of the search engine results page.
  214. google.ads.googleads.v6.enums.SearchEngineResultsPageTypeEnum.SearchEngineResultsPageType search_engine_results_page_type = 70;
  215. // Match type of the keyword that triggered the ad, including variants.
  216. google.ads.googleads.v6.enums.SearchTermMatchTypeEnum.SearchTermMatchType search_term_match_type = 22;
  217. // Position of the ad.
  218. google.ads.googleads.v6.enums.SlotEnum.Slot slot = 23;
  219. // Resource name of the ad group criterion that represents webpage criterion.
  220. optional string webpage = 129;
  221. // Week as defined as Monday through Sunday, and represented by the date of
  222. // Monday. Formatted as yyyy-MM-dd.
  223. optional string week = 130;
  224. // Year, formatted as yyyy.
  225. optional int32 year = 131;
  226. }
  227. // A Keyword criterion segment.
  228. message Keyword {
  229. // The AdGroupCriterion resource name.
  230. optional string ad_group_criterion = 3;
  231. // Keyword info.
  232. KeywordInfo info = 2;
  233. }
  234. // A BudgetCampaignAssociationStatus segment.
  235. message BudgetCampaignAssociationStatus {
  236. // The campaign resource name.
  237. optional string campaign = 1;
  238. // Budget campaign association status.
  239. google.ads.googleads.v6.enums.BudgetCampaignAssociationStatusEnum.BudgetCampaignAssociationStatus status = 2;
  240. }