segments.proto 16 KB

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