pub struct CreativeAsset {
Show 50 fields pub action_script3: Option<bool>, pub active: Option<bool>, pub additional_sizes: Option<Vec<Size>>, pub alignment: Option<String>, pub artwork_type: Option<String>, pub asset_identifier: Option<CreativeAssetId>, pub audio_bit_rate: Option<i32>, pub audio_sample_rate: Option<i32>, pub backup_image_exit: Option<CreativeCustomEvent>, pub bit_rate: Option<i32>, pub child_asset_type: Option<String>, pub collapsed_size: Option<Size>, pub companion_creative_ids: Option<Vec<i64>>, pub custom_start_time_value: Option<i32>, pub detected_features: Option<Vec<String>>, pub display_type: Option<String>, pub duration: Option<i32>, pub duration_type: Option<String>, pub expanded_dimension: Option<Size>, pub file_size: Option<i64>, pub flash_version: Option<i32>, pub frame_rate: Option<f32>, pub hide_flash_objects: Option<bool>, pub hide_selection_boxes: Option<bool>, pub horizontally_locked: Option<bool>, pub id: Option<i64>, pub id_dimension_value: Option<DimensionValue>, pub media_duration: Option<f32>, pub mime_type: Option<String>, pub offset: Option<OffsetPosition>, pub orientation: Option<String>, pub original_backup: Option<bool>, pub polite_load: Option<bool>, pub position: Option<OffsetPosition>, pub position_left_unit: Option<String>, pub position_top_unit: Option<String>, pub progressive_serving_url: Option<String>, pub pushdown: Option<bool>, pub pushdown_duration: Option<f32>, pub role: Option<String>, pub size: Option<Size>, pub ssl_compliant: Option<bool>, pub start_time_type: Option<String>, pub streaming_serving_url: Option<String>, pub transparency: Option<bool>, pub vertically_locked: Option<bool>, pub window_mode: Option<String>, pub z_index: Option<i32>, pub zip_filename: Option<String>, pub zip_filesize: Option<String>,
}
Expand description

Creative Asset.

§Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields§

§action_script3: Option<bool>

Whether ActionScript3 is enabled for the flash asset. This is a read-only field. Applicable to the following creative type: FLASH_INPAGE. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE.

§active: Option<bool>

Whether the video or audio asset is active. This is a read-only field for VPAID_NON_LINEAR_VIDEO assets. Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID.

§additional_sizes: Option<Vec<Size>>

Additional sizes associated with this creative asset. HTML5 asset generated by compatible software such as GWD will be able to support more sizes this creative asset can render.

§alignment: Option<String>

Possible alignments for an asset. This is a read-only field. Applicable to the following creative types: RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL .

§artwork_type: Option<String>

Artwork type of rich media creative. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA.

§asset_identifier: Option<CreativeAssetId>

Identifier of this asset. This is the same identifier returned during creative asset insert operation. This is a required field. Applicable to all but the following creative types: all REDIRECT and TRACKING_TEXT.

§audio_bit_rate: Option<i32>

Audio stream bit rate in kbps. This is a read-only field. Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID.

§audio_sample_rate: Option<i32>

Audio sample bit rate in hertz. This is a read-only field. Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID.

§backup_image_exit: Option<CreativeCustomEvent>

Exit event configured for the backup image. Applicable to the following creative types: all RICH_MEDIA.

§bit_rate: Option<i32>

Detected bit-rate for audio or video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID.

§child_asset_type: Option<String>

Rich media child asset type. This is a read-only field. Applicable to the following creative types: all VPAID.

§collapsed_size: Option<Size>

Size of an asset when collapsed. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA and all VPAID. Additionally, applicable to assets whose displayType is ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN.

§companion_creative_ids: Option<Vec<i64>>

List of companion creatives assigned to an in-stream video creative asset. Acceptable values include IDs of existing flash and image creatives. Applicable to INSTREAM_VIDEO creative type with dynamicAssetSelection set to true.

§custom_start_time_value: Option<i32>

Custom start time in seconds for making the asset visible. Applicable to the following creative types: all RICH_MEDIA. Value must be greater than or equal to 0.

§detected_features: Option<Vec<String>>

List of feature dependencies for the creative asset that are detected by Campaign Manager. Feature dependencies are features that a browser must be able to support in order to render your HTML5 creative correctly. This is a read-only, auto-generated field. Applicable to the following creative types: HTML5_BANNER. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE.

§display_type: Option<String>

Type of rich media asset. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA.

§duration: Option<i32>

Duration in seconds for which an asset will be displayed. Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and VPAID_LINEAR_VIDEO. Value must be greater than or equal to 1.

§duration_type: Option<String>

Duration type for which an asset will be displayed. Applicable to the following creative types: all RICH_MEDIA.

§expanded_dimension: Option<Size>

Detected expanded dimension for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID.

§file_size: Option<i64>

File size associated with this creative asset. This is a read-only field. Applicable to all but the following creative types: all REDIRECT and TRACKING_TEXT.

§flash_version: Option<i32>

Flash version of the asset. This is a read-only field. Applicable to the following creative types: FLASH_INPAGE, all RICH_MEDIA, and all VPAID. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE.

§frame_rate: Option<f32>

Video frame rate for video asset in frames per second. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID.

§hide_flash_objects: Option<bool>

Whether to hide Flash objects flag for an asset. Applicable to the following creative types: all RICH_MEDIA.

§hide_selection_boxes: Option<bool>

Whether to hide selection boxes flag for an asset. Applicable to the following creative types: all RICH_MEDIA.

§horizontally_locked: Option<bool>

Whether the asset is horizontally locked. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA.

§id: Option<i64>

Numeric ID of this creative asset. This is a required field and should not be modified. Applicable to all but the following creative types: all REDIRECT and TRACKING_TEXT.

§id_dimension_value: Option<DimensionValue>

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

§media_duration: Option<f32>

Detected duration for audio or video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID.

§mime_type: Option<String>

Detected MIME type for audio or video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID.

§offset: Option<OffsetPosition>

Offset position for an asset in collapsed mode. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA and all VPAID. Additionally, only applicable to assets whose displayType is ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN.

§orientation: Option<String>

Orientation of video asset. This is a read-only, auto-generated field.

§original_backup: Option<bool>

Whether the backup asset is original or changed by the user in Campaign Manager. Applicable to the following creative types: all RICH_MEDIA.

§polite_load: Option<bool>

Whether this asset is used as a polite load asset.

§position: Option<OffsetPosition>

Offset position for an asset. Applicable to the following creative types: all RICH_MEDIA.

§position_left_unit: Option<String>

Offset left unit for an asset. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA.

§position_top_unit: Option<String>

Offset top unit for an asset. This is a read-only field if the asset displayType is ASSET_DISPLAY_TYPE_OVERLAY. Applicable to the following creative types: all RICH_MEDIA.

§progressive_serving_url: Option<String>

Progressive URL for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID.

§pushdown: Option<bool>

Whether the asset pushes down other content. Applicable to the following creative types: all RICH_MEDIA. Additionally, only applicable when the asset offsets are 0, the collapsedSize.width matches size.width, and the collapsedSize.height is less than size.height.

§pushdown_duration: Option<f32>

Pushdown duration in seconds for an asset. Applicable to the following creative types: all RICH_MEDIA.Additionally, only applicable when the asset pushdown field is true, the offsets are 0, the collapsedSize.width matches size.width, and the collapsedSize.height is less than size.height. Acceptable values are 0 to 9.99, inclusive.

§role: Option<String>

Role of the asset in relation to creative. Applicable to all but the following creative types: all REDIRECT and TRACKING_TEXT. This is a required field. PRIMARY applies to DISPLAY, FLASH_INPAGE, HTML5_BANNER, IMAGE, DISPLAY_IMAGE_GALLERY, all RICH_MEDIA (which may contain multiple primary assets), and all VPAID creatives. BACKUP_IMAGE applies to FLASH_INPAGE, HTML5_BANNER, all RICH_MEDIA, and all VPAID creatives. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE. ADDITIONAL_IMAGE and ADDITIONAL_FLASH apply to FLASH_INPAGE creatives. OTHER refers to assets from sources other than Campaign Manager, such as Studio uploaded assets, applicable to all RICH_MEDIA and all VPAID creatives. PARENT_VIDEO refers to videos uploaded by the user in Campaign Manager and is applicable to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO creatives. TRANSCODED_VIDEO refers to videos transcoded by Campaign Manager from PARENT_VIDEO assets and is applicable to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO creatives. ALTERNATE_VIDEO refers to the Campaign Manager representation of child asset videos from Studio, and is applicable to VPAID_LINEAR_VIDEO creatives. These cannot be added or removed within Campaign Manager. For VPAID_LINEAR_VIDEO creatives, PARENT_VIDEO, TRANSCODED_VIDEO and ALTERNATE_VIDEO assets that are marked active serve as backup in case the VPAID creative cannot be served. Only PARENT_VIDEO assets can be added or removed for an INSTREAM_VIDEO or VPAID_LINEAR_VIDEO creative. PARENT_AUDIO refers to audios uploaded by the user in Campaign Manager and is applicable to INSTREAM_AUDIO creatives. TRANSCODED_AUDIO refers to audios transcoded by Campaign Manager from PARENT_AUDIO assets and is applicable to INSTREAM_AUDIO creatives.

§size: Option<Size>

Size associated with this creative asset. This is a required field when applicable; however for IMAGE and FLASH_INPAGE, creatives if left blank, this field will be automatically set using the actual size of the associated image asset. Applicable to the following creative types: DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all RICH_MEDIA. Applicable to DISPLAY when the primary asset type is not HTML_IMAGE.

§ssl_compliant: Option<bool>

Whether the asset is SSL-compliant. This is a read-only field. Applicable to all but the following creative types: all REDIRECT and TRACKING_TEXT.

§start_time_type: Option<String>

Initial wait time type before making the asset visible. Applicable to the following creative types: all RICH_MEDIA.

§streaming_serving_url: Option<String>

Streaming URL for video asset. This is a read-only field. Applicable to the following creative types: INSTREAM_VIDEO and all VPAID.

§transparency: Option<bool>

Whether the asset is transparent. Applicable to the following creative types: all RICH_MEDIA. Additionally, only applicable to HTML5 assets.

§vertically_locked: Option<bool>

Whether the asset is vertically locked. This is a read-only field. Applicable to the following creative types: all RICH_MEDIA.

§window_mode: Option<String>

Window mode options for flash assets. Applicable to the following creative types: FLASH_INPAGE, RICH_MEDIA_DISPLAY_EXPANDING, RICH_MEDIA_IM_EXPAND, RICH_MEDIA_DISPLAY_BANNER, and RICH_MEDIA_INPAGE_FLOATING.

§z_index: Option<i32>

zIndex value of an asset. Applicable to the following creative types: all RICH_MEDIA.Additionally, only applicable to assets whose displayType is NOT one of the following types: ASSET_DISPLAY_TYPE_INPAGE or ASSET_DISPLAY_TYPE_OVERLAY. Acceptable values are -999999999 to 999999999, inclusive.

§zip_filename: Option<String>

File name of zip file. This is a read-only field. Applicable to the following creative types: HTML5_BANNER.

§zip_filesize: Option<String>

Size of zip file. This is a read-only field. Applicable to the following creative types: HTML5_BANNER.

Trait Implementations§

source§

impl Clone for CreativeAsset

source§

fn clone(&self) -> CreativeAsset

Returns a copy 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 CreativeAsset

source§

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

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

impl Default for CreativeAsset

source§

fn default() -> CreativeAsset

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

impl<'de> Deserialize<'de> for CreativeAsset

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 CreativeAsset

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 Resource for CreativeAsset

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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> ToOwned for T
where T: Clone,

§

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>,

§

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>,

§

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> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

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