Enum google_api_proto::google::ads::admob::v1::network_report_spec::Dimension
source · #[repr(i32)]pub enum Dimension {
Unspecified = 0,
Date = 1,
Month = 2,
Week = 3,
AdUnit = 4,
App = 5,
AdType = 6,
Country = 7,
Format = 8,
Platform = 9,
}
Expand description
The dimensions of the network report. Dimensions are data attributes to break down or refine the quantitative measurements (metrics) by certain attributes, such as the ad format or the platform an ad was viewed on.
Variants§
Unspecified = 0
Default value for an unset field. Do not use.
Date = 1
A date in the YYYY-MM-DD format (for example, “2018-12-21”). Requests can specify at most one time dimension.
Month = 2
A month in the YYYY-MM format (for example, “2018-12”). Requests can specify at most one time dimension.
Week = 3
The date of the first day of a week in the YYYY-MM-DD format (for example, “2018-12-21”). Requests can specify at most one time dimension.
AdUnit = 4
The unique ID of the ad unit (for example, “ca-app-pub-1234/1234”). If AD_UNIT dimension is specified, then APP is included automatically.
App = 5
The unique ID of the mobile application (for example, “ca-app-pub-1234~1234”).
AdType = 6
Type of the ad (for example, “text” or “image”), an ad delivery dimension.
Warning: The dimension is incompatible with AD_REQUESTS, MATCH_RATE and IMPRESSION_RPM metrics.
Country = 7
CLDR country code of the place where the ad views/clicks occur (for example, “US” or “FR”). This is a geography dimension.
Format = 8
Format of the ad unit (for example, “banner”, “native”), an ad delivery dimension.
Platform = 9
Mobile OS platform of the app (for example, “Android” or “iOS”).
Implementations§
source§impl Dimension
impl Dimension
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 Ord for Dimension
impl Ord for Dimension
source§impl PartialEq for Dimension
impl PartialEq for Dimension
source§impl PartialOrd for Dimension
impl PartialOrd for Dimension
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for Dimension
impl TryFrom<i32> for Dimension
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
impl Copy for Dimension
impl Eq for Dimension
impl StructuralPartialEq for Dimension
Auto Trait Implementations§
impl Freeze for Dimension
impl RefUnwindSafe for Dimension
impl Send for Dimension
impl Sync for Dimension
impl Unpin for Dimension
impl UnwindSafe for Dimension
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<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.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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