#[repr(i32)]pub enum TargetingDimension {
Unspecified = 0,
Unknown = 1,
Keyword = 2,
Audience = 3,
Topic = 4,
Gender = 5,
AgeRange = 6,
Placement = 7,
ParentalStatus = 8,
IncomeRange = 9,
}
Expand description
Enum describing possible targeting dimensions.
Variants§
Unspecified = 0
Not specified.
Unknown = 1
Used for return value only. Represents value unknown in this version.
Keyword = 2
Keyword criteria, for example, ‘mars cruise’. KEYWORD may be used as a custom bid dimension. Keywords are always a targeting dimension, so may not be set as a target “ALL” dimension with TargetRestriction.
Audience = 3
Audience criteria, which include user list, user interest, custom affinity, and custom in market.
Topic = 4
Topic criteria for targeting categories of content, for example, ‘category::Animals>Pets’ Used for Display and Video targeting.
Gender = 5
Criteria for targeting gender.
AgeRange = 6
Criteria for targeting age ranges.
Placement = 7
Placement criteria, which include websites like ‘www.flowers4sale.com’, as well as mobile applications, mobile app categories, YouTube videos, and YouTube channels.
ParentalStatus = 8
Criteria for parental status targeting.
IncomeRange = 9
Criteria for income range targeting.
Implementations§
Source§impl TargetingDimension
impl TargetingDimension
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for TargetingDimension
impl Clone for TargetingDimension
Source§fn clone(&self) -> TargetingDimension
fn clone(&self) -> TargetingDimension
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TargetingDimension
impl Debug for TargetingDimension
Source§impl Default for TargetingDimension
impl Default for TargetingDimension
Source§fn default() -> TargetingDimension
fn default() -> TargetingDimension
Source§impl From<TargetingDimension> for i32
impl From<TargetingDimension> for i32
Source§fn from(value: TargetingDimension) -> i32
fn from(value: TargetingDimension) -> i32
Source§impl Hash for TargetingDimension
impl Hash for TargetingDimension
Source§impl Ord for TargetingDimension
impl Ord for TargetingDimension
Source§fn cmp(&self, other: &TargetingDimension) -> Ordering
fn cmp(&self, other: &TargetingDimension) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for TargetingDimension
impl PartialEq for TargetingDimension
Source§impl PartialOrd for TargetingDimension
impl PartialOrd for TargetingDimension
impl Copy for TargetingDimension
impl Eq for TargetingDimension
impl StructuralPartialEq for TargetingDimension
Auto Trait Implementations§
impl Freeze for TargetingDimension
impl RefUnwindSafe for TargetingDimension
impl Send for TargetingDimension
impl Sync for TargetingDimension
impl Unpin for TargetingDimension
impl UnwindSafe for TargetingDimension
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.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