pub struct PlannableTargeting {
pub age_ranges: Vec<i32>,
pub genders: Vec<GenderInfo>,
pub devices: Vec<DeviceInfo>,
pub networks: Vec<i32>,
pub youtube_select_lineups: Vec<YouTubeSelectLineUp>,
pub surface_targeting: Option<SurfaceTargetingCombinations>,
}
Expand description
The targeting for which traffic metrics will be reported.
Fields§
§age_ranges: Vec<i32>
Allowed plannable age ranges for the product for which metrics will be reported. Actual targeting is computed by mapping this age range onto standard Google common.AgeRangeInfo values.
genders: Vec<GenderInfo>
Targetable genders for the ad product.
devices: Vec<DeviceInfo>
Targetable devices for the ad product. TABLET device targeting is automatically applied to reported metrics when MOBILE targeting is selected for CPM_MASTHEAD, GOOGLE_PREFERRED_BUMPER, and GOOGLE_PREFERRED_SHORT products.
networks: Vec<i32>
Targetable networks for the ad product.
youtube_select_lineups: Vec<YouTubeSelectLineUp>
Targetable YouTube Select Lineups for the ad product.
surface_targeting: Option<SurfaceTargetingCombinations>
Targetable surface combinations for the ad product.
Implementations§
Source§impl PlannableTargeting
impl PlannableTargeting
Sourcepub fn age_ranges(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<ReachPlanAgeRange>>
pub fn age_ranges( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<ReachPlanAgeRange>>
Returns an iterator which yields the valid enum values contained in age_ranges
.
Sourcepub fn push_age_ranges(&mut self, value: ReachPlanAgeRange)
pub fn push_age_ranges(&mut self, value: ReachPlanAgeRange)
Appends the provided enum value to age_ranges
.
Sourcepub fn networks(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<ReachPlanNetwork>>
pub fn networks( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<ReachPlanNetwork>>
Returns an iterator which yields the valid enum values contained in networks
.
Sourcepub fn push_networks(&mut self, value: ReachPlanNetwork)
pub fn push_networks(&mut self, value: ReachPlanNetwork)
Appends the provided enum value to networks
.
Trait Implementations§
Source§impl Clone for PlannableTargeting
impl Clone for PlannableTargeting
Source§fn clone(&self) -> PlannableTargeting
fn clone(&self) -> PlannableTargeting
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PlannableTargeting
impl Debug for PlannableTargeting
Source§impl Default for PlannableTargeting
impl Default for PlannableTargeting
Source§impl Message for PlannableTargeting
impl Message for PlannableTargeting
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for PlannableTargeting
impl PartialEq for PlannableTargeting
impl StructuralPartialEq for PlannableTargeting
Auto Trait Implementations§
impl Freeze for PlannableTargeting
impl RefUnwindSafe for PlannableTargeting
impl Send for PlannableTargeting
impl Sync for PlannableTargeting
impl Unpin for PlannableTargeting
impl UnwindSafe for PlannableTargeting
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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