xref: /aosp_15_r20/external/googleapis/google/ads/googleads/v15/common/segments.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1// Copyright 2023 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
15syntax = "proto3";
16
17package google.ads.googleads.v15.common;
18
19import "google/ads/googleads/v15/common/criteria.proto";
20import "google/ads/googleads/v15/enums/ad_destination_type.proto";
21import "google/ads/googleads/v15/enums/ad_network_type.proto";
22import "google/ads/googleads/v15/enums/budget_campaign_association_status.proto";
23import "google/ads/googleads/v15/enums/click_type.proto";
24import "google/ads/googleads/v15/enums/conversion_action_category.proto";
25import "google/ads/googleads/v15/enums/conversion_attribution_event_type.proto";
26import "google/ads/googleads/v15/enums/conversion_lag_bucket.proto";
27import "google/ads/googleads/v15/enums/conversion_or_adjustment_lag_bucket.proto";
28import "google/ads/googleads/v15/enums/conversion_value_rule_primary_dimension.proto";
29import "google/ads/googleads/v15/enums/converting_user_prior_engagement_type_and_ltv_bucket.proto";
30import "google/ads/googleads/v15/enums/day_of_week.proto";
31import "google/ads/googleads/v15/enums/device.proto";
32import "google/ads/googleads/v15/enums/external_conversion_source.proto";
33import "google/ads/googleads/v15/enums/hotel_date_selection_type.proto";
34import "google/ads/googleads/v15/enums/hotel_price_bucket.proto";
35import "google/ads/googleads/v15/enums/hotel_rate_type.proto";
36import "google/ads/googleads/v15/enums/month_of_year.proto";
37import "google/ads/googleads/v15/enums/placeholder_type.proto";
38import "google/ads/googleads/v15/enums/product_channel.proto";
39import "google/ads/googleads/v15/enums/product_channel_exclusivity.proto";
40import "google/ads/googleads/v15/enums/product_condition.proto";
41import "google/ads/googleads/v15/enums/recommendation_type.proto";
42import "google/ads/googleads/v15/enums/search_engine_results_page_type.proto";
43import "google/ads/googleads/v15/enums/search_term_match_type.proto";
44import "google/ads/googleads/v15/enums/sk_ad_network_ad_event_type.proto";
45import "google/ads/googleads/v15/enums/sk_ad_network_attribution_credit.proto";
46import "google/ads/googleads/v15/enums/sk_ad_network_coarse_conversion_value.proto";
47import "google/ads/googleads/v15/enums/sk_ad_network_source_type.proto";
48import "google/ads/googleads/v15/enums/sk_ad_network_user_type.proto";
49import "google/ads/googleads/v15/enums/slot.proto";
50import "google/api/resource.proto";
51
52option csharp_namespace = "Google.Ads.GoogleAds.V15.Common";
53option go_package = "google.golang.org/genproto/googleapis/ads/googleads/v15/common;common";
54option java_multiple_files = true;
55option java_outer_classname = "SegmentsProto";
56option java_package = "com.google.ads.googleads.v15.common";
57option objc_class_prefix = "GAA";
58option php_namespace = "Google\\Ads\\GoogleAds\\V15\\Common";
59option ruby_package = "Google::Ads::GoogleAds::V15::Common";
60
61// Proto file describing segment only fields.
62
63// Segment only fields.
64message Segments {
65  // Activity account ID.
66  optional int64 activity_account_id = 148;
67
68  // Activity rating.
69  optional int64 activity_rating = 149;
70
71  // Advertiser supplied activity ID.
72  optional string external_activity_id = 150;
73
74  // Ad Destination type.
75  google.ads.googleads.v15.enums.AdDestinationTypeEnum.AdDestinationType
76      ad_destination_type = 136;
77
78  // Ad network type.
79  google.ads.googleads.v15.enums.AdNetworkTypeEnum.AdNetworkType
80      ad_network_type = 3;
81
82  // Resource name of the ad group.
83  optional string ad_group = 158;
84
85  // Resource name of the asset group.
86  optional string asset_group = 159;
87
88  // Domain (visible URL) of a participant in the Auction Insights report.
89  optional string auction_insight_domain = 145;
90
91  // Budget campaign association status.
92  BudgetCampaignAssociationStatus budget_campaign_association_status = 134;
93
94  // Resource name of the campaign.
95  optional string campaign = 157;
96
97  // Click type.
98  google.ads.googleads.v15.enums.ClickTypeEnum.ClickType click_type = 26;
99
100  // Resource name of the conversion action.
101  optional string conversion_action = 113 [(google.api.resource_reference) = {
102    type: "googleads.googleapis.com/ConversionAction"
103  }];
104
105  // Conversion action category.
106  google.ads.googleads.v15.enums.ConversionActionCategoryEnum
107      .ConversionActionCategory conversion_action_category = 53;
108
109  // Conversion action name.
110  optional string conversion_action_name = 114;
111
112  // This segments your conversion columns by the original conversion and
113  // conversion value versus the delta if conversions were adjusted. False row
114  // has the data as originally stated; While true row has the delta between
115  // data now and the data as originally stated. Summing the two together
116  // results post-adjustment data.
117  optional bool conversion_adjustment = 115;
118
119  // Conversion attribution event type.
120  google.ads.googleads.v15.enums.ConversionAttributionEventTypeEnum
121      .ConversionAttributionEventType conversion_attribution_event_type = 2;
122
123  // An enum value representing the number of days between the impression and
124  // the conversion.
125  google.ads.googleads.v15.enums.ConversionLagBucketEnum.ConversionLagBucket
126      conversion_lag_bucket = 50;
127
128  // An enum value representing the number of days between the impression and
129  // the conversion or between the impression and adjustments to the conversion.
130  google.ads.googleads.v15.enums.ConversionOrAdjustmentLagBucketEnum
131      .ConversionOrAdjustmentLagBucket conversion_or_adjustment_lag_bucket = 51;
132
133  // Date to which metrics apply.
134  // yyyy-MM-dd format, for example, 2018-04-17.
135  optional string date = 79;
136
137  // Day of the week, for example, MONDAY.
138  google.ads.googleads.v15.enums.DayOfWeekEnum.DayOfWeek day_of_week = 5;
139
140  // Device to which metrics apply.
141  google.ads.googleads.v15.enums.DeviceEnum.Device device = 1;
142
143  // External conversion source.
144  google.ads.googleads.v15.enums.ExternalConversionSourceEnum
145      .ExternalConversionSource external_conversion_source = 55;
146
147  // Resource name of the geo target constant that represents an airport.
148  optional string geo_target_airport = 116;
149
150  // Resource name of the geo target constant that represents a canton.
151  optional string geo_target_canton = 117;
152
153  // Resource name of the geo target constant that represents a city.
154  optional string geo_target_city = 118;
155
156  // Resource name of the geo target constant that represents a country.
157  optional string geo_target_country = 119;
158
159  // Resource name of the geo target constant that represents a county.
160  optional string geo_target_county = 120;
161
162  // Resource name of the geo target constant that represents a district.
163  optional string geo_target_district = 121;
164
165  // Resource name of the geo target constant that represents a metro.
166  optional string geo_target_metro = 122;
167
168  // Resource name of the geo target constant that represents the most
169  // specific location.
170  optional string geo_target_most_specific_location = 123;
171
172  // Resource name of the geo target constant that represents a postal code.
173  optional string geo_target_postal_code = 124;
174
175  // Resource name of the geo target constant that represents a province.
176  optional string geo_target_province = 125;
177
178  // Resource name of the geo target constant that represents a region.
179  optional string geo_target_region = 126;
180
181  // Resource name of the geo target constant that represents a state.
182  optional string geo_target_state = 127;
183
184  // Hotel booking window in days.
185  optional int64 hotel_booking_window_days = 135;
186
187  // Hotel center ID.
188  optional int64 hotel_center_id = 80;
189
190  // Hotel check-in date. Formatted as yyyy-MM-dd.
191  optional string hotel_check_in_date = 81;
192
193  // Hotel check-in day of week.
194  google.ads.googleads.v15.enums.DayOfWeekEnum.DayOfWeek
195      hotel_check_in_day_of_week = 9;
196
197  // Hotel city.
198  optional string hotel_city = 82;
199
200  // Hotel class.
201  optional int32 hotel_class = 83;
202
203  // Hotel country.
204  optional string hotel_country = 84;
205
206  // Hotel date selection type.
207  google.ads.googleads.v15.enums.HotelDateSelectionTypeEnum
208      .HotelDateSelectionType hotel_date_selection_type = 13;
209
210  // Hotel length of stay.
211  optional int32 hotel_length_of_stay = 85;
212
213  // Hotel rate rule ID.
214  optional string hotel_rate_rule_id = 86;
215
216  // Hotel rate type.
217  google.ads.googleads.v15.enums.HotelRateTypeEnum.HotelRateType
218      hotel_rate_type = 74;
219
220  // Hotel price bucket.
221  google.ads.googleads.v15.enums.HotelPriceBucketEnum.HotelPriceBucket
222      hotel_price_bucket = 78;
223
224  // Hotel state.
225  optional string hotel_state = 87;
226
227  // Hour of day as a number between 0 and 23, inclusive.
228  optional int32 hour = 88;
229
230  // Only used with feed item metrics.
231  // Indicates whether the interaction metrics occurred on the feed item itself
232  // or a different extension or ad unit.
233  optional bool interaction_on_this_extension = 89;
234
235  // Keyword criterion.
236  Keyword keyword = 61;
237
238  // Month as represented by the date of the first day of a month. Formatted as
239  // yyyy-MM-dd.
240  optional string month = 90;
241
242  // Month of the year, for example, January.
243  google.ads.googleads.v15.enums.MonthOfYearEnum.MonthOfYear month_of_year = 18;
244
245  // Partner hotel ID.
246  optional string partner_hotel_id = 91;
247
248  // Placeholder type. This is only used with feed item metrics.
249  google.ads.googleads.v15.enums.PlaceholderTypeEnum.PlaceholderType
250      placeholder_type = 20;
251
252  // Aggregator ID of the product.
253  optional int64 product_aggregator_id = 132;
254
255  // Category (level 1) of the product.
256  optional string product_category_level1 = 161;
257
258  // Category (level 2) of the product.
259  optional string product_category_level2 = 162;
260
261  // Category (level 3) of the product.
262  optional string product_category_level3 = 163;
263
264  // Category (level 4) of the product.
265  optional string product_category_level4 = 164;
266
267  // Category (level 5) of the product.
268  optional string product_category_level5 = 165;
269
270  // Brand of the product.
271  optional string product_brand = 97;
272
273  // Channel of the product.
274  google.ads.googleads.v15.enums.ProductChannelEnum.ProductChannel
275      product_channel = 30;
276
277  // Channel exclusivity of the product.
278  google.ads.googleads.v15.enums.ProductChannelExclusivityEnum
279      .ProductChannelExclusivity product_channel_exclusivity = 31;
280
281  // Condition of the product.
282  google.ads.googleads.v15.enums.ProductConditionEnum.ProductCondition
283      product_condition = 32;
284
285  // Resource name of the geo target constant for the country of sale of the
286  // product.
287  optional string product_country = 98;
288
289  // Custom attribute 0 of the product.
290  optional string product_custom_attribute0 = 99;
291
292  // Custom attribute 1 of the product.
293  optional string product_custom_attribute1 = 100;
294
295  // Custom attribute 2 of the product.
296  optional string product_custom_attribute2 = 101;
297
298  // Custom attribute 3 of the product.
299  optional string product_custom_attribute3 = 102;
300
301  // Custom attribute 4 of the product.
302  optional string product_custom_attribute4 = 103;
303
304  // Feed label of the product.
305  optional string product_feed_label = 147;
306
307  // Item ID of the product.
308  optional string product_item_id = 104;
309
310  // Resource name of the language constant for the language of the product.
311  optional string product_language = 105;
312
313  // Merchant ID of the product.
314  optional int64 product_merchant_id = 133;
315
316  // Store ID of the product.
317  optional string product_store_id = 106;
318
319  // Title of the product.
320  optional string product_title = 107;
321
322  // Type (level 1) of the product.
323  optional string product_type_l1 = 108;
324
325  // Type (level 2) of the product.
326  optional string product_type_l2 = 109;
327
328  // Type (level 3) of the product.
329  optional string product_type_l3 = 110;
330
331  // Type (level 4) of the product.
332  optional string product_type_l4 = 111;
333
334  // Type (level 5) of the product.
335  optional string product_type_l5 = 112;
336
337  // Quarter as represented by the date of the first day of a quarter.
338  // Uses the calendar year for quarters, for example, the second quarter of
339  // 2018 starts on 2018-04-01. Formatted as yyyy-MM-dd.
340  optional string quarter = 128;
341
342  // Recommendation type.
343  google.ads.googleads.v15.enums.RecommendationTypeEnum.RecommendationType
344      recommendation_type = 140;
345
346  // Type of the search engine results page.
347  google.ads.googleads.v15.enums.SearchEngineResultsPageTypeEnum
348      .SearchEngineResultsPageType search_engine_results_page_type = 70;
349
350  // A search term subcategory. An empty string denotes the catch-all
351  // subcategory for search terms that didn't fit into another subcategory.
352  optional string search_subcategory = 155;
353
354  // A search term.
355  optional string search_term = 156;
356
357  // Match type of the keyword that triggered the ad, including variants.
358  google.ads.googleads.v15.enums.SearchTermMatchTypeEnum.SearchTermMatchType
359      search_term_match_type = 22;
360
361  // Position of the ad.
362  google.ads.googleads.v15.enums.SlotEnum.Slot slot = 23;
363
364  // Primary dimension of applied conversion value rules.
365  // NO_RULE_APPLIED shows the total recorded value of conversions that
366  // do not have a value rule applied.
367  // ORIGINAL shows the original value of conversions to which a value rule
368  // has been applied.
369  // GEO_LOCATION, DEVICE, AUDIENCE show the net adjustment after value
370  // rules were applied.
371  google.ads.googleads.v15.enums.ConversionValueRulePrimaryDimensionEnum
372      .ConversionValueRulePrimaryDimension
373          conversion_value_rule_primary_dimension = 138;
374
375  // Resource name of the ad group criterion that represents webpage criterion.
376  optional string webpage = 129;
377
378  // Week as defined as Monday through Sunday, and represented by the date of
379  // Monday. Formatted as yyyy-MM-dd.
380  optional string week = 130;
381
382  // Year, formatted as yyyy.
383  optional int32 year = 131;
384
385  // iOS Store Kit Ad Network conversion value.
386  // Null value means this segment is not applicable, for example, non-iOS
387  // campaign.
388  optional int64 sk_ad_network_conversion_value = 137;
389
390  // iOS Store Kit Ad Network user type.
391  google.ads.googleads.v15.enums.SkAdNetworkUserTypeEnum.SkAdNetworkUserType
392      sk_ad_network_user_type = 141;
393
394  // iOS Store Kit Ad Network ad event type.
395  google.ads.googleads.v15.enums.SkAdNetworkAdEventTypeEnum
396      .SkAdNetworkAdEventType sk_ad_network_ad_event_type = 142;
397
398  // App where the ad that drove the iOS Store Kit Ad Network install was
399  // shown. Null value means this segment is not applicable, for example,
400  // non-iOS campaign, or was not present in any postbacks sent by Apple.
401  optional SkAdNetworkSourceApp sk_ad_network_source_app = 143;
402
403  // iOS Store Kit Ad Network attribution credit
404  google.ads.googleads.v15.enums.SkAdNetworkAttributionCreditEnum
405      .SkAdNetworkAttributionCredit sk_ad_network_attribution_credit = 144;
406
407  // iOS Store Kit Ad Network coarse conversion value.
408  google.ads.googleads.v15.enums.SkAdNetworkCoarseConversionValueEnum
409      .SkAdNetworkCoarseConversionValue sk_ad_network_coarse_conversion_value =
410      151;
411
412  // Website where the ad that drove the iOS Store Kit Ad Network install was
413  // shown. Null value means this segment is not applicable, for example,
414  // non-iOS campaign, or was not present in any postbacks sent by Apple.
415  optional string sk_ad_network_source_domain = 152;
416
417  // The source type where the ad that drove the iOS Store Kit Ad Network
418  // install was shown. Null value means this segment is not applicable, for
419  // example, non-iOS campaign, or neither source domain nor source app were
420  // present in any postbacks sent by Apple.
421  google.ads.googleads.v15.enums.SkAdNetworkSourceTypeEnum.SkAdNetworkSourceType
422      sk_ad_network_source_type = 153;
423
424  // iOS Store Kit Ad Network postback sequence index.
425  optional int64 sk_ad_network_postback_sequence_index = 154;
426
427  // Only used with CustomerAsset, CampaignAsset and AdGroupAsset metrics.
428  // Indicates whether the interaction metrics occurred on the asset itself
429  // or a different asset or ad unit.
430  // Interactions (for example, clicks) are counted across all the parts of the
431  // served ad (for example, Ad itself and other components like Sitelinks) when
432  // they are served together. When interaction_on_this_asset is true, it means
433  // the interactions are on this specific asset and when
434  // interaction_on_this_asset is false, it means the interactions is not on
435  // this specific asset but on other parts of the served ad this asset is
436  // served with.
437  optional AssetInteractionTarget asset_interaction_target = 139;
438
439  // This is for segmenting conversions by whether the user is a new customer
440  // or a returning customer. This segmentation is typically used to measure
441  // the impact of customer acquisition goal.
442  google.ads.googleads.v15.enums
443      .ConvertingUserPriorEngagementTypeAndLtvBucketEnum
444      .ConvertingUserPriorEngagementTypeAndLtvBucket
445          new_versus_returning_customers = 160;
446}
447
448// A Keyword criterion segment.
449message Keyword {
450  // The AdGroupCriterion resource name.
451  optional string ad_group_criterion = 3;
452
453  // Keyword info.
454  KeywordInfo info = 2;
455}
456
457// A BudgetCampaignAssociationStatus segment.
458message BudgetCampaignAssociationStatus {
459  // The campaign resource name.
460  optional string campaign = 1;
461
462  // Budget campaign association status.
463  google.ads.googleads.v15.enums.BudgetCampaignAssociationStatusEnum
464      .BudgetCampaignAssociationStatus status = 2;
465}
466
467// An AssetInteractionTarget segment.
468message AssetInteractionTarget {
469  // The asset resource name.
470  string asset = 1;
471
472  // Only used with CustomerAsset, CampaignAsset and AdGroupAsset metrics.
473  // Indicates whether the interaction metrics occurred on the asset itself or a
474  // different asset or ad unit.
475  bool interaction_on_this_asset = 2;
476}
477
478// A SkAdNetworkSourceApp segment.
479message SkAdNetworkSourceApp {
480  // App id where the ad that drove the iOS Store Kit Ad Network install was
481  // shown.
482  optional string sk_ad_network_source_app_id = 1;
483}
484