[][src]Struct google_displayvideo1::FrequencyCap

pub struct FrequencyCap {
    pub time_unit: Option<String>,
    pub time_unit_count: Option<i32>,
    pub unlimited: Option<bool>,
    pub max_impressions: Option<i32>,
}

Settings that control the number of times a user may be shown with the same ad during a given time period.

This type is not used in any activity, and only used as part of another schema.

Fields

time_unit: Option<String>

The time unit in which the frequency cap will be applied.

Applicable when unlimited is false.

time_unit_count: Option<i32>

The number of time_unit the frequency cap will last.

Applicable when unlimited is false. The following restrictions apply based on the value of time_unit:

  • TIME_UNIT_LIFETIME - this field is output only and will default to 1
  • TIME_UNIT_MONTHS - must be between 1 and 2
  • TIME_UNIT_WEEKS - must be between 1 and 4
  • TIME_UNIT_DAYS - must be between 1 and 6
  • TIME_UNIT_HOURS - must be between 1 and 23
  • TIME_UNIT_MINUTES - must be between 1 and 59
unlimited: Option<bool>

Whether unlimited frequency capping is applied. When this field is set to true, the remaining frequency cap fields are not applicable.

max_impressions: Option<i32>

The maximum number of times a user may be shown with the same ad during this period. Must be greater than 0.

Applicable when unlimited is false.

Trait Implementations

impl Clone for FrequencyCap[src]

impl Debug for FrequencyCap[src]

impl Default for FrequencyCap[src]

impl<'de> Deserialize<'de> for FrequencyCap[src]

impl Part for FrequencyCap[src]

impl Serialize for FrequencyCap[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any