CreativeAssignment

Struct CreativeAssignment 

Source
pub struct CreativeAssignment {
Show 13 fields pub weight: Option<i32>, pub sequence: Option<i32>, pub click_through_url: Option<ClickThroughUrl>, pub rich_media_exit_overrides: Option<Vec<RichMediaExitOverride>>, pub apply_event_tags: Option<bool>, pub creative_group_assignments: Option<Vec<CreativeGroupAssignment>>, pub companion_creative_overrides: Option<Vec<CompanionClickThroughOverride>>, pub start_time: Option<String>, pub ssl_compliant: Option<bool>, pub active: Option<bool>, pub creative_id: Option<String>, pub end_time: Option<String>, pub creative_id_dimension_value: Option<DimensionValue>,
}
Expand description

Creative Assignment.

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

Fields§

§weight: Option<i32>

Weight of the creative assignment, applicable when the rotation type is CREATIVE_ROTATION_TYPE_RANDOM.

§sequence: Option<i32>

Sequence number of the creative assignment, applicable when the rotation type is CREATIVE_ROTATION_TYPE_SEQUENTIAL.

§click_through_url: Option<ClickThroughUrl>

Click-through URL of the creative assignment.

§rich_media_exit_overrides: Option<Vec<RichMediaExitOverride>>

Rich media exit overrides for this creative assignment. Applicable when the creative type is any of the following:

  • RICH_MEDIA_INPAGE
  • RICH_MEDIA_INPAGE_FLOATING
  • RICH_MEDIA_IM_EXPAND
  • RICH_MEDIA_EXPANDING
  • RICH_MEDIA_INTERSTITIAL_FLOAT
  • RICH_MEDIA_MOBILE_IN_APP
  • RICH_MEDIA_MULTI_FLOATING
  • RICH_MEDIA_PEEL_DOWN
  • ADVANCED_BANNER
  • VPAID_LINEAR
  • VPAID_NON_LINEAR
§apply_event_tags: Option<bool>

Whether applicable event tags should fire when this creative assignment is rendered. If this value is unset when the ad is inserted or updated, it will default to true for all creative types EXCEPT for INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and INSTREAM_VIDEO.

§creative_group_assignments: Option<Vec<CreativeGroupAssignment>>

Creative group assignments for this creative assignment. Only one assignment per creative group number is allowed for a maximum of two assignments.

§companion_creative_overrides: Option<Vec<CompanionClickThroughOverride>>

Companion creative overrides for this creative assignment. Applicable to video ads.

§start_time: Option<String>

Date and time that the assigned creative should start serving.

§ssl_compliant: Option<bool>

Whether the creative to be assigned is SSL-compliant. This is a read-only field that is auto-generated when the ad is inserted or updated.

§active: Option<bool>

Whether this creative assignment is active. When true, the creative will be included in the ad’s rotation.

§creative_id: Option<String>

ID of the creative to be assigned. This is a required field.

§end_time: Option<String>

Date and time that the assigned creative should stop serving. Must be later than the start time.

§creative_id_dimension_value: Option<DimensionValue>

Dimension value for the ID of the creative. This is a read-only, auto-generated field.

Trait Implementations§

Source§

impl Clone for CreativeAssignment

Source§

fn clone(&self) -> CreativeAssignment

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CreativeAssignment

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CreativeAssignment

Source§

fn default() -> CreativeAssignment

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for CreativeAssignment

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for CreativeAssignment

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Part for CreativeAssignment

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Typeable for T
where T: Any,

Source§

fn get_type(&self) -> TypeId

Get the TypeId of this object.
Source§

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