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
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
impl Clone for CreativeAssignment
Source§fn clone(&self) -> CreativeAssignment
fn clone(&self) -> CreativeAssignment
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CreativeAssignment
impl Debug for CreativeAssignment
Source§impl Default for CreativeAssignment
impl Default for CreativeAssignment
Source§fn default() -> CreativeAssignment
fn default() -> CreativeAssignment
Source§impl<'de> Deserialize<'de> for CreativeAssignment
impl<'de> Deserialize<'de> for CreativeAssignment
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 CreativeAssignment
impl Serialize for CreativeAssignment
impl Part for CreativeAssignment
Auto Trait Implementations§
impl Freeze for CreativeAssignment
impl RefUnwindSafe for CreativeAssignment
impl Send for CreativeAssignment
impl Sync for CreativeAssignment
impl Unpin for CreativeAssignment
impl UnwindSafe for CreativeAssignment
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> 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