segments.proto 13 KB

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