pub struct Creative {
Show 25 fields pub html_snippet: Option<String>, pub account_id: Option<i32>, pub ad_technology_providers: Option<CreativeAdTechnologyProviders>, pub advertiser_id: Option<Vec<i64>>, pub advertiser_name: Option<String>, pub agency_id: Option<i64>, pub api_upload_timestamp: Option<DateTime<Utc>>, pub attribute: Option<Vec<i32>>, pub buyer_creative_id: Option<String>, pub click_through_url: Option<Vec<String>>, pub corrections: Option<Vec<CreativeCorrections>>, pub disapproval_reasons: Option<Vec<CreativeDisapprovalReasons>>, pub filtering_reasons: Option<CreativeFilteringReasons>, pub height: Option<i32>, pub impression_tracking_url: Option<Vec<String>>, pub kind: Option<String>, pub native_ad: Option<CreativeNativeAd>, pub product_categories: Option<Vec<i32>>, pub restricted_categories: Option<Vec<i32>>, pub sensitive_categories: Option<Vec<i32>>, pub status: Option<String>, pub vendor_type: Option<Vec<i32>>, pub version: Option<i32>, pub video_url: Option<String>, pub width: Option<i32>,
}
Expand description

A creative and its classification data.

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

§html_snippet: Option<String>

The HTML snippet that displays the ad when inserted in the web page. If set, videoURL should not be set.

§account_id: Option<i32>

Account id.

§ad_technology_providers: Option<CreativeAdTechnologyProviders>

no description provided

§advertiser_id: Option<Vec<i64>>

Detected advertiser id, if any. Read-only. This field should not be set in requests.

§advertiser_name: Option<String>

The name of the company being advertised in the creative.

§agency_id: Option<i64>

The agency id for this creative.

§api_upload_timestamp: Option<DateTime<Utc>>

The last upload timestamp of this creative if it was uploaded via API. Read-only. The value of this field is generated, and will be ignored for uploads. (formatted RFC 3339 timestamp).

§attribute: Option<Vec<i32>>

All attributes for the ads that may be shown from this snippet.

§buyer_creative_id: Option<String>

A buyer-specific id identifying the creative in this ad.

§click_through_url: Option<Vec<String>>

The set of destination urls for the snippet.

§corrections: Option<Vec<CreativeCorrections>>

Shows any corrections that were applied to this creative. Read-only. This field should not be set in requests.

§disapproval_reasons: Option<Vec<CreativeDisapprovalReasons>>

The reasons for disapproval, if any. Note that not all disapproval reasons may be categorized, so it is possible for the creative to have a status of DISAPPROVED with an empty list for disapproval_reasons. In this case, please reach out to your TAM to help debug the issue. Read-only. This field should not be set in requests.

§filtering_reasons: Option<CreativeFilteringReasons>

The filtering reasons for the creative. Read-only. This field should not be set in requests.

§height: Option<i32>

Ad height.

§impression_tracking_url: Option<Vec<String>>

The set of urls to be called to record an impression.

§kind: Option<String>

Resource type.

§native_ad: Option<CreativeNativeAd>

If nativeAd is set, HTMLSnippet and videoURL should not be set.

§product_categories: Option<Vec<i32>>

Detected product categories, if any. Read-only. This field should not be set in requests.

§restricted_categories: Option<Vec<i32>>

All restricted categories for the ads that may be shown from this snippet.

§sensitive_categories: Option<Vec<i32>>

Detected sensitive categories, if any. Read-only. This field should not be set in requests.

§status: Option<String>

Creative serving status. Read-only. This field should not be set in requests.

§vendor_type: Option<Vec<i32>>

All vendor types for the ads that may be shown from this snippet.

§version: Option<i32>

The version for this creative. Read-only. This field should not be set in requests.

§video_url: Option<String>

The URL to fetch a video ad. If set, HTMLSnippet and the nativeAd should not be set.

§width: Option<i32>

Ad width.

Trait Implementations§

source§

impl Clone for Creative

source§

fn clone(&self) -> Creative

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 Creative

source§

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

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

impl Default for Creative

source§

fn default() -> Creative

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

impl<'de> Deserialize<'de> for Creative

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 Creative

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 RequestValue for Creative

source§

impl Resource for Creative

source§

impl ResponseResult for Creative

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