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