Struct google_api_proto::google::ads::searchads360::v0::common::Segments
source · pub struct Segments {Show 63 fields
pub ad_network_type: i32,
pub conversion_action: Option<String>,
pub conversion_action_category: i32,
pub conversion_action_name: Option<String>,
pub conversion_custom_dimensions: Vec<Value>,
pub date: Option<String>,
pub day_of_week: i32,
pub device: i32,
pub geo_target_city: Option<String>,
pub geo_target_country: Option<String>,
pub geo_target_metro: Option<String>,
pub geo_target_region: Option<String>,
pub hour: Option<i32>,
pub keyword: Option<Keyword>,
pub month: Option<String>,
pub product_bidding_category_level1: Option<String>,
pub product_bidding_category_level2: Option<String>,
pub product_bidding_category_level3: Option<String>,
pub product_bidding_category_level4: Option<String>,
pub product_bidding_category_level5: Option<String>,
pub product_brand: Option<String>,
pub product_channel: i32,
pub product_channel_exclusivity: i32,
pub product_condition: i32,
pub product_country: Option<String>,
pub product_custom_attribute0: Option<String>,
pub product_custom_attribute1: Option<String>,
pub product_custom_attribute2: Option<String>,
pub product_custom_attribute3: Option<String>,
pub product_custom_attribute4: Option<String>,
pub product_item_id: Option<String>,
pub product_language: Option<String>,
pub product_sold_bidding_category_level1: Option<String>,
pub product_sold_bidding_category_level2: Option<String>,
pub product_sold_bidding_category_level3: Option<String>,
pub product_sold_bidding_category_level4: Option<String>,
pub product_sold_bidding_category_level5: Option<String>,
pub product_sold_brand: Option<String>,
pub product_sold_condition: i32,
pub product_sold_custom_attribute0: Option<String>,
pub product_sold_custom_attribute1: Option<String>,
pub product_sold_custom_attribute2: Option<String>,
pub product_sold_custom_attribute3: Option<String>,
pub product_sold_custom_attribute4: Option<String>,
pub product_sold_item_id: Option<String>,
pub product_sold_title: Option<String>,
pub product_sold_type_l1: Option<String>,
pub product_sold_type_l2: Option<String>,
pub product_sold_type_l3: Option<String>,
pub product_sold_type_l4: Option<String>,
pub product_sold_type_l5: Option<String>,
pub product_store_id: Option<String>,
pub product_title: Option<String>,
pub product_type_l1: Option<String>,
pub product_type_l2: Option<String>,
pub product_type_l3: Option<String>,
pub product_type_l4: Option<String>,
pub product_type_l5: Option<String>,
pub quarter: Option<String>,
pub raw_event_conversion_dimensions: Vec<Value>,
pub week: Option<String>,
pub year: Option<i32>,
pub asset_interaction_target: Option<AssetInteractionTarget>,
}
Expand description
Segment only fields.
Fields§
§ad_network_type: i32
Ad network type.
conversion_action: Option<String>
Resource name of the conversion action.
conversion_action_category: i32
Conversion action category.
conversion_action_name: Option<String>
Conversion action name.
conversion_custom_dimensions: Vec<Value>
The conversion custom dimensions.
date: Option<String>
Date to which metrics apply. yyyy-MM-dd format, for example, 2018-04-17.
day_of_week: i32
Day of the week, for example, MONDAY.
device: i32
Device to which metrics apply.
geo_target_city: Option<String>
Resource name of the geo target constant that represents a city.
geo_target_country: Option<String>
Resource name of the geo target constant that represents a country.
geo_target_metro: Option<String>
Resource name of the geo target constant that represents a metro.
geo_target_region: Option<String>
Resource name of the geo target constant that represents a region.
hour: Option<i32>
Hour of day as a number between 0 and 23, inclusive.
keyword: Option<Keyword>
Keyword criterion.
month: Option<String>
Month as represented by the date of the first day of a month. Formatted as yyyy-MM-dd.
product_bidding_category_level1: Option<String>
Bidding category (level 1) of the product.
product_bidding_category_level2: Option<String>
Bidding category (level 2) of the product.
product_bidding_category_level3: Option<String>
Bidding category (level 3) of the product.
product_bidding_category_level4: Option<String>
Bidding category (level 4) of the product.
product_bidding_category_level5: Option<String>
Bidding category (level 5) of the product.
product_brand: Option<String>
Brand of the product.
product_channel: i32
Channel of the product.
product_channel_exclusivity: i32
Channel exclusivity of the product.
product_condition: i32
Condition of the product.
product_country: Option<String>
Resource name of the geo target constant for the country of sale of the product.
product_custom_attribute0: Option<String>
Custom attribute 0 of the product.
product_custom_attribute1: Option<String>
Custom attribute 1 of the product.
product_custom_attribute2: Option<String>
Custom attribute 2 of the product.
product_custom_attribute3: Option<String>
Custom attribute 3 of the product.
product_custom_attribute4: Option<String>
Custom attribute 4 of the product.
product_item_id: Option<String>
Item ID of the product.
product_language: Option<String>
Resource name of the language constant for the language of the product.
product_sold_bidding_category_level1: Option<String>
Bidding category (level 1) of the product sold.
product_sold_bidding_category_level2: Option<String>
Bidding category (level 2) of the product sold.
product_sold_bidding_category_level3: Option<String>
Bidding category (level 3) of the product sold.
product_sold_bidding_category_level4: Option<String>
Bidding category (level 4) of the product sold.
product_sold_bidding_category_level5: Option<String>
Bidding category (level 5) of the product sold.
product_sold_brand: Option<String>
Brand of the product sold.
product_sold_condition: i32
Condition of the product sold.
product_sold_custom_attribute0: Option<String>
Custom attribute 0 of the product sold.
product_sold_custom_attribute1: Option<String>
Custom attribute 1 of the product sold.
product_sold_custom_attribute2: Option<String>
Custom attribute 2 of the product sold.
product_sold_custom_attribute3: Option<String>
Custom attribute 3 of the product sold.
product_sold_custom_attribute4: Option<String>
Custom attribute 4 of the product sold.
product_sold_item_id: Option<String>
Item ID of the product sold.
product_sold_title: Option<String>
Title of the product sold.
product_sold_type_l1: Option<String>
Type (level 1) of the product sold.
product_sold_type_l2: Option<String>
Type (level 2) of the product sold.
product_sold_type_l3: Option<String>
Type (level 3) of the product sold.
product_sold_type_l4: Option<String>
Type (level 4) of the product sold.
product_sold_type_l5: Option<String>
Type (level 5) of the product sold.
product_store_id: Option<String>
Store ID of the product.
product_title: Option<String>
Title of the product.
product_type_l1: Option<String>
Type (level 1) of the product.
product_type_l2: Option<String>
Type (level 2) of the product.
product_type_l3: Option<String>
Type (level 3) of the product.
product_type_l4: Option<String>
Type (level 4) of the product.
product_type_l5: Option<String>
Type (level 5) of the product.
quarter: Option<String>
Quarter as represented by the date of the first day of a quarter. Uses the calendar year for quarters, for example, the second quarter of 2018 starts on 2018-04-01. Formatted as yyyy-MM-dd.
raw_event_conversion_dimensions: Vec<Value>
The raw event conversion dimensions.
week: Option<String>
Week as defined as Monday through Sunday, and represented by the date of Monday. Formatted as yyyy-MM-dd.
year: Option<i32>
Year, formatted as yyyy.
asset_interaction_target: Option<AssetInteractionTarget>
Only used with CustomerAsset, CampaignAsset and AdGroupAsset metrics. Indicates whether the interaction metrics occurred on the asset itself or a different asset or ad unit. Interactions (for example, clicks) are counted across all the parts of the served ad (for example, Ad itself and other components like Sitelinks) when they are served together. When interaction_on_this_asset is true, it means the interactions are on this specific asset and when interaction_on_this_asset is false, it means the interactions is not on this specific asset but on other parts of the served ad this asset is served with.
Implementations§
source§impl Segments
impl Segments
sourcepub fn device(&self) -> Device
pub fn device(&self) -> Device
Returns the enum value of device
, or the default if the field is set to an invalid enum value.
sourcepub fn set_device(&mut self, value: Device)
pub fn set_device(&mut self, value: Device)
Sets device
to the provided enum value.
sourcepub fn ad_network_type(&self) -> AdNetworkType
pub fn ad_network_type(&self) -> AdNetworkType
Returns the enum value of ad_network_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_ad_network_type(&mut self, value: AdNetworkType)
pub fn set_ad_network_type(&mut self, value: AdNetworkType)
Sets ad_network_type
to the provided enum value.
sourcepub fn day_of_week(&self) -> DayOfWeek
pub fn day_of_week(&self) -> DayOfWeek
Returns the enum value of day_of_week
, or the default if the field is set to an invalid enum value.
sourcepub fn set_day_of_week(&mut self, value: DayOfWeek)
pub fn set_day_of_week(&mut self, value: DayOfWeek)
Sets day_of_week
to the provided enum value.
sourcepub fn product_channel(&self) -> ProductChannel
pub fn product_channel(&self) -> ProductChannel
Returns the enum value of product_channel
, or the default if the field is set to an invalid enum value.
sourcepub fn set_product_channel(&mut self, value: ProductChannel)
pub fn set_product_channel(&mut self, value: ProductChannel)
Sets product_channel
to the provided enum value.
sourcepub fn product_channel_exclusivity(&self) -> ProductChannelExclusivity
pub fn product_channel_exclusivity(&self) -> ProductChannelExclusivity
Returns the enum value of product_channel_exclusivity
, or the default if the field is set to an invalid enum value.
sourcepub fn set_product_channel_exclusivity(
&mut self,
value: ProductChannelExclusivity,
)
pub fn set_product_channel_exclusivity( &mut self, value: ProductChannelExclusivity, )
Sets product_channel_exclusivity
to the provided enum value.
sourcepub fn product_condition(&self) -> ProductCondition
pub fn product_condition(&self) -> ProductCondition
Returns the enum value of product_condition
, or the default if the field is set to an invalid enum value.
sourcepub fn set_product_condition(&mut self, value: ProductCondition)
pub fn set_product_condition(&mut self, value: ProductCondition)
Sets product_condition
to the provided enum value.
sourcepub fn conversion_action_category(&self) -> ConversionActionCategory
pub fn conversion_action_category(&self) -> ConversionActionCategory
Returns the enum value of conversion_action_category
, or the default if the field is set to an invalid enum value.
sourcepub fn set_conversion_action_category(
&mut self,
value: ConversionActionCategory,
)
pub fn set_conversion_action_category( &mut self, value: ConversionActionCategory, )
Sets conversion_action_category
to the provided enum value.
sourcepub fn month(&self) -> &str
pub fn month(&self) -> &str
Returns the value of month
, or the default value if month
is unset.
sourcepub fn product_bidding_category_level1(&self) -> &str
pub fn product_bidding_category_level1(&self) -> &str
Returns the value of product_bidding_category_level1
, or the default value if product_bidding_category_level1
is unset.
sourcepub fn product_bidding_category_level2(&self) -> &str
pub fn product_bidding_category_level2(&self) -> &str
Returns the value of product_bidding_category_level2
, or the default value if product_bidding_category_level2
is unset.
sourcepub fn product_bidding_category_level3(&self) -> &str
pub fn product_bidding_category_level3(&self) -> &str
Returns the value of product_bidding_category_level3
, or the default value if product_bidding_category_level3
is unset.
sourcepub fn product_bidding_category_level4(&self) -> &str
pub fn product_bidding_category_level4(&self) -> &str
Returns the value of product_bidding_category_level4
, or the default value if product_bidding_category_level4
is unset.
sourcepub fn product_bidding_category_level5(&self) -> &str
pub fn product_bidding_category_level5(&self) -> &str
Returns the value of product_bidding_category_level5
, or the default value if product_bidding_category_level5
is unset.
sourcepub fn product_brand(&self) -> &str
pub fn product_brand(&self) -> &str
Returns the value of product_brand
, or the default value if product_brand
is unset.
sourcepub fn product_country(&self) -> &str
pub fn product_country(&self) -> &str
Returns the value of product_country
, or the default value if product_country
is unset.
sourcepub fn product_custom_attribute0(&self) -> &str
pub fn product_custom_attribute0(&self) -> &str
Returns the value of product_custom_attribute0
, or the default value if product_custom_attribute0
is unset.
sourcepub fn product_custom_attribute1(&self) -> &str
pub fn product_custom_attribute1(&self) -> &str
Returns the value of product_custom_attribute1
, or the default value if product_custom_attribute1
is unset.
sourcepub fn product_custom_attribute2(&self) -> &str
pub fn product_custom_attribute2(&self) -> &str
Returns the value of product_custom_attribute2
, or the default value if product_custom_attribute2
is unset.
sourcepub fn product_custom_attribute3(&self) -> &str
pub fn product_custom_attribute3(&self) -> &str
Returns the value of product_custom_attribute3
, or the default value if product_custom_attribute3
is unset.
sourcepub fn product_custom_attribute4(&self) -> &str
pub fn product_custom_attribute4(&self) -> &str
Returns the value of product_custom_attribute4
, or the default value if product_custom_attribute4
is unset.
sourcepub fn product_item_id(&self) -> &str
pub fn product_item_id(&self) -> &str
Returns the value of product_item_id
, or the default value if product_item_id
is unset.
sourcepub fn product_language(&self) -> &str
pub fn product_language(&self) -> &str
Returns the value of product_language
, or the default value if product_language
is unset.
sourcepub fn product_store_id(&self) -> &str
pub fn product_store_id(&self) -> &str
Returns the value of product_store_id
, or the default value if product_store_id
is unset.
sourcepub fn product_title(&self) -> &str
pub fn product_title(&self) -> &str
Returns the value of product_title
, or the default value if product_title
is unset.
sourcepub fn product_type_l1(&self) -> &str
pub fn product_type_l1(&self) -> &str
Returns the value of product_type_l1
, or the default value if product_type_l1
is unset.
sourcepub fn product_type_l2(&self) -> &str
pub fn product_type_l2(&self) -> &str
Returns the value of product_type_l2
, or the default value if product_type_l2
is unset.
sourcepub fn product_type_l3(&self) -> &str
pub fn product_type_l3(&self) -> &str
Returns the value of product_type_l3
, or the default value if product_type_l3
is unset.
sourcepub fn product_type_l4(&self) -> &str
pub fn product_type_l4(&self) -> &str
Returns the value of product_type_l4
, or the default value if product_type_l4
is unset.
sourcepub fn product_type_l5(&self) -> &str
pub fn product_type_l5(&self) -> &str
Returns the value of product_type_l5
, or the default value if product_type_l5
is unset.
sourcepub fn conversion_action_name(&self) -> &str
pub fn conversion_action_name(&self) -> &str
Returns the value of conversion_action_name
, or the default value if conversion_action_name
is unset.
sourcepub fn geo_target_city(&self) -> &str
pub fn geo_target_city(&self) -> &str
Returns the value of geo_target_city
, or the default value if geo_target_city
is unset.
sourcepub fn geo_target_country(&self) -> &str
pub fn geo_target_country(&self) -> &str
Returns the value of geo_target_country
, or the default value if geo_target_country
is unset.
sourcepub fn geo_target_metro(&self) -> &str
pub fn geo_target_metro(&self) -> &str
Returns the value of geo_target_metro
, or the default value if geo_target_metro
is unset.
sourcepub fn geo_target_region(&self) -> &str
pub fn geo_target_region(&self) -> &str
Returns the value of geo_target_region
, or the default value if geo_target_region
is unset.
sourcepub fn quarter(&self) -> &str
pub fn quarter(&self) -> &str
Returns the value of quarter
, or the default value if quarter
is unset.
sourcepub fn conversion_action(&self) -> &str
pub fn conversion_action(&self) -> &str
Returns the value of conversion_action
, or the default value if conversion_action
is unset.
sourcepub fn product_sold_bidding_category_level1(&self) -> &str
pub fn product_sold_bidding_category_level1(&self) -> &str
Returns the value of product_sold_bidding_category_level1
, or the default value if product_sold_bidding_category_level1
is unset.
sourcepub fn product_sold_bidding_category_level2(&self) -> &str
pub fn product_sold_bidding_category_level2(&self) -> &str
Returns the value of product_sold_bidding_category_level2
, or the default value if product_sold_bidding_category_level2
is unset.
sourcepub fn product_sold_bidding_category_level3(&self) -> &str
pub fn product_sold_bidding_category_level3(&self) -> &str
Returns the value of product_sold_bidding_category_level3
, or the default value if product_sold_bidding_category_level3
is unset.
sourcepub fn product_sold_bidding_category_level4(&self) -> &str
pub fn product_sold_bidding_category_level4(&self) -> &str
Returns the value of product_sold_bidding_category_level4
, or the default value if product_sold_bidding_category_level4
is unset.
sourcepub fn product_sold_bidding_category_level5(&self) -> &str
pub fn product_sold_bidding_category_level5(&self) -> &str
Returns the value of product_sold_bidding_category_level5
, or the default value if product_sold_bidding_category_level5
is unset.
sourcepub fn product_sold_brand(&self) -> &str
pub fn product_sold_brand(&self) -> &str
Returns the value of product_sold_brand
, or the default value if product_sold_brand
is unset.
sourcepub fn product_sold_condition(&self) -> ProductCondition
pub fn product_sold_condition(&self) -> ProductCondition
Returns the enum value of product_sold_condition
, or the default if the field is set to an invalid enum value.
sourcepub fn set_product_sold_condition(&mut self, value: ProductCondition)
pub fn set_product_sold_condition(&mut self, value: ProductCondition)
Sets product_sold_condition
to the provided enum value.
sourcepub fn product_sold_custom_attribute0(&self) -> &str
pub fn product_sold_custom_attribute0(&self) -> &str
Returns the value of product_sold_custom_attribute0
, or the default value if product_sold_custom_attribute0
is unset.
sourcepub fn product_sold_custom_attribute1(&self) -> &str
pub fn product_sold_custom_attribute1(&self) -> &str
Returns the value of product_sold_custom_attribute1
, or the default value if product_sold_custom_attribute1
is unset.
sourcepub fn product_sold_custom_attribute2(&self) -> &str
pub fn product_sold_custom_attribute2(&self) -> &str
Returns the value of product_sold_custom_attribute2
, or the default value if product_sold_custom_attribute2
is unset.
sourcepub fn product_sold_custom_attribute3(&self) -> &str
pub fn product_sold_custom_attribute3(&self) -> &str
Returns the value of product_sold_custom_attribute3
, or the default value if product_sold_custom_attribute3
is unset.
sourcepub fn product_sold_custom_attribute4(&self) -> &str
pub fn product_sold_custom_attribute4(&self) -> &str
Returns the value of product_sold_custom_attribute4
, or the default value if product_sold_custom_attribute4
is unset.
sourcepub fn product_sold_item_id(&self) -> &str
pub fn product_sold_item_id(&self) -> &str
Returns the value of product_sold_item_id
, or the default value if product_sold_item_id
is unset.
sourcepub fn product_sold_title(&self) -> &str
pub fn product_sold_title(&self) -> &str
Returns the value of product_sold_title
, or the default value if product_sold_title
is unset.
sourcepub fn product_sold_type_l1(&self) -> &str
pub fn product_sold_type_l1(&self) -> &str
Returns the value of product_sold_type_l1
, or the default value if product_sold_type_l1
is unset.
sourcepub fn product_sold_type_l2(&self) -> &str
pub fn product_sold_type_l2(&self) -> &str
Returns the value of product_sold_type_l2
, or the default value if product_sold_type_l2
is unset.
sourcepub fn product_sold_type_l3(&self) -> &str
pub fn product_sold_type_l3(&self) -> &str
Returns the value of product_sold_type_l3
, or the default value if product_sold_type_l3
is unset.
sourcepub fn product_sold_type_l4(&self) -> &str
pub fn product_sold_type_l4(&self) -> &str
Returns the value of product_sold_type_l4
, or the default value if product_sold_type_l4
is unset.
sourcepub fn product_sold_type_l5(&self) -> &str
pub fn product_sold_type_l5(&self) -> &str
Returns the value of product_sold_type_l5
, or the default value if product_sold_type_l5
is unset.
Trait Implementations§
source§impl Message for Segments
impl Message for Segments
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Segments
impl PartialEq for Segments
impl StructuralPartialEq for Segments
Auto Trait Implementations§
impl Freeze for Segments
impl RefUnwindSafe for Segments
impl Send for Segments
impl Sync for Segments
impl Unpin for Segments
impl UnwindSafe for Segments
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request