Enum google_api_proto::google::ads::admob::v1::mediation_report_spec::Dimension
source · #[repr(i32)]pub enum Dimension {
Unspecified = 0,
Date = 1,
Month = 2,
Week = 3,
AdSource = 4,
AdSourceInstance = 5,
AdUnit = 6,
App = 7,
MediationGroup = 11,
Country = 8,
Format = 9,
Platform = 10,
}
Expand description
The dimensions of the mediation 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.
AdSource = 4
The unique ID of the ad source (for example, “5450213213286189855” and “AdMob Network” as label value).
AdSourceInstance = 5
The unique ID of the ad source instance (for example, “ca-app-pub-1234#5678” and “AdMob (default)” as label value).
AdUnit = 6
The unique ID of the ad unit (for example, “ca-app-pub-1234/8790”). If AD_UNIT dimension is specified, then APP is included automatically.
App = 7
The unique ID of the mobile application (for example, “ca-app-pub-1234~1234”).
MediationGroup = 11
The unique ID of the mediation group (for example, “ca-app-pub-1234:mg:1234” and “AdMob (default)” as label value).
Country = 8
CLDR country code of the place where the ad views/clicks occur (for example, “US” or “FR”). This is a geography dimension.
Format = 9
Format of the ad unit (for example, “banner”, “native”), an ad delivery dimension.
Platform = 10
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