pub struct PartnerCost {
pub cost_type: Option<String>,
pub fee_amount: Option<i64>,
pub fee_percentage_millis: Option<i64>,
pub fee_type: Option<String>,
pub invoice_type: Option<String>,
}
Expand description
Settings that control a partner cost. A partner cost is any type of expense involved in running a campaign, other than the costs of purchasing impressions (which is called the media cost) and using third-party audience segment data (data fee). Some examples of partner costs include the fees for using DV360, a third-party ad server, or a third-party ad serving verification service.
This type is not used in any activity, and only used as part of another schema.
Fields§
§cost_type: Option<String>
Required. The type of the partner cost.
fee_amount: Option<i64>
The CPM fee amount in micros of advertiser’s currency. Applicable when the fee_type is PARTNER_FEE_TYPE_CPM_FEE
. Must be greater than or equal to 0. For example, for 1.5 standard unit of the advertiser’s currency, set this field to 1500000.
fee_percentage_millis: Option<i64>
The media fee percentage in millis (1/1000 of a percent). Applicable when the fee_type is PARTNER_FEE_TYPE_MEDIA_FEE
. Must be greater than or equal to 0. For example: 100 represents 0.1%.
fee_type: Option<String>
Required. The fee type for this partner cost.
invoice_type: Option<String>
The invoice type for this partner cost. * Required when cost_type is one of: - PARTNER_COST_TYPE_ADLOOX
- PARTNER_COST_TYPE_DOUBLE_VERIFY
- PARTNER_COST_TYPE_INTEGRAL_AD_SCIENCE
. * Output only for other types.
Trait Implementations§
Source§impl Clone for PartnerCost
impl Clone for PartnerCost
Source§fn clone(&self) -> PartnerCost
fn clone(&self) -> PartnerCost
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PartnerCost
impl Debug for PartnerCost
Source§impl Default for PartnerCost
impl Default for PartnerCost
Source§fn default() -> PartnerCost
fn default() -> PartnerCost
Source§impl<'de> Deserialize<'de> for PartnerCost
impl<'de> Deserialize<'de> for PartnerCost
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for PartnerCost
impl Serialize for PartnerCost
impl Part for PartnerCost
Auto Trait Implementations§
impl Freeze for PartnerCost
impl RefUnwindSafe for PartnerCost
impl Send for PartnerCost
impl Sync for PartnerCost
impl Unpin for PartnerCost
impl UnwindSafe for PartnerCost
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more