segments.proto 15 KB

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