pub struct Pacing {
pub daily_max_impressions: Option<i64>,
pub daily_max_micros: Option<i64>,
pub pacing_period: Option<String>,
pub pacing_type: Option<String>,
}
Expand description
Settings that control the rate at which a budget is spent.
This type is not used in any activity, and only used as part of another schema.
Fields§
§daily_max_impressions: Option<i64>
Maximum number of impressions to serve every day. Applicable when the budget is impression based. Must be greater than 0.
daily_max_micros: Option<i64>
Maximum currency amount to spend every day in micros of advertiser’s currency. Applicable when the budget is currency based. Must be greater than 0. For example, for 1.5 standard unit of the currency, set this field to 1500000. The value assigned will be rounded to whole billable units for the relevant currency by the following rules: any positive value less than a single billable unit will be rounded up to one billable unit and any value larger than a single billable unit will be rounded down to the nearest billable value. For example, if the currency’s billable unit is 0.01, and this field is set to 10257770, it will round down to 10250000, a value of 10.25. If set to 505, it will round up to 10000, a value of 0.01.
pacing_period: Option<String>
Required. The time period in which the pacing budget will be spent. When automatic budget allocation is enabled at the insertion order via automationType, this field is output only and defaults to PACING_PERIOD_FLIGHT
.
pacing_type: Option<String>
Required. The type of pacing that defines how the budget amount will be spent across the pacing_period.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pacing
impl<'de> Deserialize<'de> for Pacing
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>,
impl Part for Pacing
Auto Trait Implementations§
impl Freeze for Pacing
impl RefUnwindSafe for Pacing
impl Send for Pacing
impl Sync for Pacing
impl Unpin for Pacing
impl UnwindSafe for Pacing
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