Enum google_api_proto::google::ads::admanager::v1::unit_type_enum::UnitType
source · #[repr(i32)]pub enum UnitType {
Unspecified = 0,
Impressions = 1,
Clicks = 2,
ClickThroughCpaConversions = 3,
ViewThroughCpaConversions = 4,
TotalCpaConversions = 5,
ViewableImpressions = 6,
InTargetImpressions = 7,
}
Expand description
Indicates the type of unit used for defining a reservation. The [LineItem.cost_type][google.ads.admanager.v1.LineItem.cost_type] can differ from the UnitType - an ad can have an impression goal, but be billed by its click. Usually CostType and UnitType will refer to the same unit.
Variants§
Unspecified = 0
Default value. This value is unused.
Impressions = 1
The number of impressions served by creatives associated with the line item.
Clicks = 2
The number of clicks reported by creatives associated with the line item. The line item [type][google.ads.admanager.v1.LineItem.line_item_type] must be one of:
- [LineItemTypeEnum.LineItemType.STANDARD][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.STANDARD]
- [LineItemTypeEnum.LineItemType.BULK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.BULK]
- [LineItemTypeEnum.LineItemType.PRICE_PRIORITY][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.PRICE_PRIORITY]
ClickThroughCpaConversions = 3
The number of view-through Cost-Per-Action (CPA) conversions from creatives associated with the line item. This is only supported as secondary goal and the [LineItem.cost_type][google.ads.admanager.v1.LineItem.cost_type] must be [CostTypeEnum.CostType.CPA][].
ViewThroughCpaConversions = 4
The number of view-through Cost-Per-Action (CPA) conversions from creatives associated with the line item. This is only supported as secondary goal and the [LineItem.cost_type][google.ads.admanager.v1.LineItem.cost_type] must be [CostTypeEnum.CostType.CPA}.
TotalCpaConversions = 5
The number of total Cost-Per-Action (CPA) conversions from creatives associated with the line item. This is only supported as secondary goal and the [LineItem.cost_type} must be [CostTypeEnum.CostType.CPA}.
ViewableImpressions = 6
The number of viewable impressions reported by creatives associated with the line item. The [LineItem.line_item_type][google.ads.admanager.v1.LineItem.line_item_type] must be [LineItemTypeEnum.LineItemType.STANDARD][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.STANDARD].
InTargetImpressions = 7
The number of in-target impressions reported by third party measurements. The [LineItem.line_item_type][google.ads.admanager.v1.LineItem.line_item_type] must be [LineItemTypeEnum.LineItemType.STANDARD][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.STANDARD].
Implementations§
source§impl UnitType
impl UnitType
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 UnitType
impl Ord for UnitType
source§impl PartialEq for UnitType
impl PartialEq for UnitType
source§impl PartialOrd for UnitType
impl PartialOrd for UnitType
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 UnitType
impl TryFrom<i32> for UnitType
§type Error = DecodeError
type Error = DecodeError
impl Copy for UnitType
impl Eq for UnitType
impl StructuralPartialEq for UnitType
Auto Trait Implementations§
impl Freeze for UnitType
impl RefUnwindSafe for UnitType
impl Send for UnitType
impl Sync for UnitType
impl Unpin for UnitType
impl UnwindSafe for UnitType
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