Struct google_api_proto::google::ads::googleads::v17::resources::recommendation::RecommendationMetrics
source · pub struct RecommendationMetrics {
pub impressions: Option<f64>,
pub clicks: Option<f64>,
pub cost_micros: Option<i64>,
pub conversions: Option<f64>,
pub conversions_value: Option<f64>,
pub video_views: Option<f64>,
}
Expand description
Weekly account performance metrics. For some recommendation types, these are averaged over the past 90-day period and hence can be fractional.
Fields§
§impressions: Option<f64>
Output only. Number of ad impressions.
clicks: Option<f64>
Output only. Number of ad clicks.
cost_micros: Option<i64>
Output only. Cost (in micros) for advertising, in the local currency for the account.
conversions: Option<f64>
Output only. Number of conversions.
conversions_value: Option<f64>
Output only. Sum of the conversion value of the conversions.
video_views: Option<f64>
Output only. Number of video views for a video ad campaign.
Implementations§
source§impl RecommendationMetrics
impl RecommendationMetrics
sourcepub fn impressions(&self) -> f64
pub fn impressions(&self) -> f64
Returns the value of impressions
, or the default value if impressions
is unset.
sourcepub fn clicks(&self) -> f64
pub fn clicks(&self) -> f64
Returns the value of clicks
, or the default value if clicks
is unset.
sourcepub fn cost_micros(&self) -> i64
pub fn cost_micros(&self) -> i64
Returns the value of cost_micros
, or the default value if cost_micros
is unset.
sourcepub fn conversions(&self) -> f64
pub fn conversions(&self) -> f64
Returns the value of conversions
, or the default value if conversions
is unset.
sourcepub fn video_views(&self) -> f64
pub fn video_views(&self) -> f64
Returns the value of video_views
, or the default value if video_views
is unset.
sourcepub fn conversions_value(&self) -> f64
pub fn conversions_value(&self) -> f64
Returns the value of conversions_value
, or the default value if conversions_value
is unset.
Trait Implementations§
source§impl Clone for RecommendationMetrics
impl Clone for RecommendationMetrics
source§fn clone(&self) -> RecommendationMetrics
fn clone(&self) -> RecommendationMetrics
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RecommendationMetrics
impl Debug for RecommendationMetrics
source§impl Default for RecommendationMetrics
impl Default for RecommendationMetrics
source§impl Message for RecommendationMetrics
impl Message for RecommendationMetrics
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 RecommendationMetrics
impl PartialEq for RecommendationMetrics
source§fn eq(&self, other: &RecommendationMetrics) -> bool
fn eq(&self, other: &RecommendationMetrics) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for RecommendationMetrics
impl StructuralPartialEq for RecommendationMetrics
Auto Trait Implementations§
impl Freeze for RecommendationMetrics
impl RefUnwindSafe for RecommendationMetrics
impl Send for RecommendationMetrics
impl Sync for RecommendationMetrics
impl Unpin for RecommendationMetrics
impl UnwindSafe for RecommendationMetrics
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