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.searchads360.v0.common; 18 19import "google/ads/searchads360/v0/common/criteria.proto"; 20import "google/ads/searchads360/v0/common/value.proto"; 21import "google/ads/searchads360/v0/enums/ad_network_type.proto"; 22import "google/ads/searchads360/v0/enums/conversion_action_category.proto"; 23import "google/ads/searchads360/v0/enums/day_of_week.proto"; 24import "google/ads/searchads360/v0/enums/device.proto"; 25import "google/ads/searchads360/v0/enums/product_channel.proto"; 26import "google/ads/searchads360/v0/enums/product_channel_exclusivity.proto"; 27import "google/ads/searchads360/v0/enums/product_condition.proto"; 28import "google/api/resource.proto"; 29 30option csharp_namespace = "Google.Ads.SearchAds360.V0.Common"; 31option go_package = "google.golang.org/genproto/googleapis/ads/searchads360/v0/common;common"; 32option java_multiple_files = true; 33option java_outer_classname = "SegmentsProto"; 34option java_package = "com.google.ads.searchads360.v0.common"; 35option objc_class_prefix = "GASA360"; 36option php_namespace = "Google\\Ads\\SearchAds360\\V0\\Common"; 37option ruby_package = "Google::Ads::SearchAds360::V0::Common"; 38 39// Proto file describing segment only fields. 40 41// Segment only fields. 42message Segments { 43 // Ad network type. 44 google.ads.searchads360.v0.enums.AdNetworkTypeEnum.AdNetworkType 45 ad_network_type = 3; 46 47 // Resource name of the conversion action. 48 optional string conversion_action = 146 [(google.api.resource_reference) = { 49 type: "searchads360.googleapis.com/ConversionAction" 50 }]; 51 52 // Conversion action category. 53 google.ads.searchads360.v0.enums.ConversionActionCategoryEnum 54 .ConversionActionCategory conversion_action_category = 53; 55 56 // Conversion action name. 57 optional string conversion_action_name = 114; 58 59 // The conversion custom dimensions. 60 repeated Value conversion_custom_dimensions = 188; 61 62 // Date to which metrics apply. 63 // yyyy-MM-dd format, for example, 2018-04-17. 64 optional string date = 79; 65 66 // Day of the week, for example, MONDAY. 67 google.ads.searchads360.v0.enums.DayOfWeekEnum.DayOfWeek day_of_week = 5; 68 69 // Device to which metrics apply. 70 google.ads.searchads360.v0.enums.DeviceEnum.Device device = 1; 71 72 // Keyword criterion. 73 Keyword keyword = 61; 74 75 // Month as represented by the date of the first day of a month. Formatted as 76 // yyyy-MM-dd. 77 optional string month = 90; 78 79 // Bidding category (level 1) of the product. 80 optional string product_bidding_category_level1 = 92; 81 82 // Bidding category (level 2) of the product. 83 optional string product_bidding_category_level2 = 93; 84 85 // Bidding category (level 3) of the product. 86 optional string product_bidding_category_level3 = 94; 87 88 // Bidding category (level 4) of the product. 89 optional string product_bidding_category_level4 = 95; 90 91 // Bidding category (level 5) of the product. 92 optional string product_bidding_category_level5 = 96; 93 94 // Brand of the product. 95 optional string product_brand = 97; 96 97 // Channel of the product. 98 google.ads.searchads360.v0.enums.ProductChannelEnum.ProductChannel 99 product_channel = 30; 100 101 // Channel exclusivity of the product. 102 google.ads.searchads360.v0.enums.ProductChannelExclusivityEnum 103 .ProductChannelExclusivity product_channel_exclusivity = 31; 104 105 // Condition of the product. 106 google.ads.searchads360.v0.enums.ProductConditionEnum.ProductCondition 107 product_condition = 32; 108 109 // Resource name of the geo target constant for the country of sale of the 110 // product. 111 optional string product_country = 98; 112 113 // Custom attribute 0 of the product. 114 optional string product_custom_attribute0 = 99; 115 116 // Custom attribute 1 of the product. 117 optional string product_custom_attribute1 = 100; 118 119 // Custom attribute 2 of the product. 120 optional string product_custom_attribute2 = 101; 121 122 // Custom attribute 3 of the product. 123 optional string product_custom_attribute3 = 102; 124 125 // Custom attribute 4 of the product. 126 optional string product_custom_attribute4 = 103; 127 128 // Item ID of the product. 129 optional string product_item_id = 104; 130 131 // Resource name of the language constant for the language of the product. 132 optional string product_language = 105; 133 134 // Bidding category (level 1) of the product sold. 135 optional string product_sold_bidding_category_level1 = 166; 136 137 // Bidding category (level 2) of the product sold. 138 optional string product_sold_bidding_category_level2 = 167; 139 140 // Bidding category (level 3) of the product sold. 141 optional string product_sold_bidding_category_level3 = 168; 142 143 // Bidding category (level 4) of the product sold. 144 optional string product_sold_bidding_category_level4 = 169; 145 146 // Bidding category (level 5) of the product sold. 147 optional string product_sold_bidding_category_level5 = 170; 148 149 // Brand of the product sold. 150 optional string product_sold_brand = 171; 151 152 // Condition of the product sold. 153 google.ads.searchads360.v0.enums.ProductConditionEnum.ProductCondition 154 product_sold_condition = 172; 155 156 // Custom attribute 0 of the product sold. 157 optional string product_sold_custom_attribute0 = 173; 158 159 // Custom attribute 1 of the product sold. 160 optional string product_sold_custom_attribute1 = 174; 161 162 // Custom attribute 2 of the product sold. 163 optional string product_sold_custom_attribute2 = 175; 164 165 // Custom attribute 3 of the product sold. 166 optional string product_sold_custom_attribute3 = 176; 167 168 // Custom attribute 4 of the product sold. 169 optional string product_sold_custom_attribute4 = 177; 170 171 // Item ID of the product sold. 172 optional string product_sold_item_id = 178; 173 174 // Title of the product sold. 175 optional string product_sold_title = 179; 176 177 // Type (level 1) of the product sold. 178 optional string product_sold_type_l1 = 180; 179 180 // Type (level 2) of the product sold. 181 optional string product_sold_type_l2 = 181; 182 183 // Type (level 3) of the product sold. 184 optional string product_sold_type_l3 = 182; 185 186 // Type (level 4) of the product sold. 187 optional string product_sold_type_l4 = 183; 188 189 // Type (level 5) of the product sold. 190 optional string product_sold_type_l5 = 184; 191 192 // Store ID of the product. 193 optional string product_store_id = 106; 194 195 // Title of the product. 196 optional string product_title = 107; 197 198 // Type (level 1) of the product. 199 optional string product_type_l1 = 108; 200 201 // Type (level 2) of the product. 202 optional string product_type_l2 = 109; 203 204 // Type (level 3) of the product. 205 optional string product_type_l3 = 110; 206 207 // Type (level 4) of the product. 208 optional string product_type_l4 = 111; 209 210 // Type (level 5) of the product. 211 optional string product_type_l5 = 112; 212 213 // Quarter as represented by the date of the first day of a quarter. 214 // Uses the calendar year for quarters, for example, the second quarter of 215 // 2018 starts on 2018-04-01. Formatted as yyyy-MM-dd. 216 optional string quarter = 128; 217 218 // The raw event conversion dimensions. 219 repeated Value raw_event_conversion_dimensions = 189; 220 221 // Week as defined as Monday through Sunday, and represented by the date of 222 // Monday. Formatted as yyyy-MM-dd. 223 optional string week = 130; 224 225 // Year, formatted as yyyy. 226 optional int32 year = 131; 227 228 // Only used with CustomerAsset, CampaignAsset and AdGroupAsset metrics. 229 // Indicates whether the interaction metrics occurred on the asset itself 230 // or a different asset or ad unit. 231 // Interactions (for example, clicks) are counted across all the parts of the 232 // served ad (for example, Ad itself and other components like Sitelinks) when 233 // they are served together. When interaction_on_this_asset is true, it means 234 // the interactions are on this specific asset and when 235 // interaction_on_this_asset is false, it means the interactions is not on 236 // this specific asset but on other parts of the served ad this asset is 237 // served with. 238 optional AssetInteractionTarget asset_interaction_target = 139; 239} 240 241// A Keyword criterion segment. 242message Keyword { 243 // The AdGroupCriterion resource name. 244 optional string ad_group_criterion = 3; 245 246 // Keyword info. 247 KeywordInfo info = 2; 248} 249 250// An AssetInteractionTarget segment. 251message AssetInteractionTarget { 252 // The asset resource name. 253 string asset = 1; 254 255 // Only used with CustomerAsset, CampaignAsset and AdGroupAsset metrics. 256 // Indicates whether the interaction metrics occurred on the asset itself or a 257 // different asset or ad unit. 258 bool interaction_on_this_asset = 2; 259} 260