pub struct Creative {
Show 31 fields pub html_snippet: Option<String>, pub account_id: Option<i32>, pub ad_choices_destination_url: Option<String>, 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 creative_status_identity_type: Option<String>, pub deals_status: Option<String>, pub detected_domains: Option<Vec<String>>, pub filtering_reasons: Option<CreativeFilteringReasons>, pub height: Option<i32>, pub impression_tracking_url: Option<Vec<String>>, pub kind: Option<String>, pub languages: Option<Vec<String>>, pub native_ad: Option<CreativeNativeAd>, pub open_auction_status: Option<String>, pub product_categories: Option<Vec<i32>>, pub restricted_categories: Option<Vec<i32>>, pub sensitive_categories: Option<Vec<i32>>, pub serving_restrictions: Option<Vec<CreativeServingRestrictions>>, pub vendor_type: Option<Vec<i32>>, pub version: Option<i32>, pub video_url: Option<String>, pub video_vast_xml: 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, videoVastXML, and nativeAd should not be set.

§account_id: Option<i32>

Account id.

§ad_choices_destination_url: Option<String>

The link to the Ad Preferences page. This is only supported for native ads.

§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. A list of advertisers is provided in the advertisers.txt file.

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

List of buyer selectable attributes for the ads that may be shown from this snippet. Each attribute is represented by an integer as defined in buyer-declarable-creative-attributes.txt.

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

§creative_status_identity_type: Option<String>

Creative status identity type that the creative item applies to. Ad Exchange real-time bidding is migrating to the sizeless creative verification. Originally, Ad Exchange assigned creative verification status to a unique combination of a buyer creative ID and creative dimensions. Post-migration, a single verification status will be assigned at the buyer creative ID level. This field allows to distinguish whether a given creative status applies to a unique combination of a buyer creative ID and creative dimensions, or to a buyer creative ID as a whole.

§deals_status: Option<String>

Top-level deals status. Read-only. This field should not be set in requests. If disapproved, an entry for auctionType=DIRECT_DEALS (or ALL) in servingRestrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case it may be preferable to read from servingRestrictions directly.

§detected_domains: Option<Vec<String>>

Detected domains for this creative. 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.

§languages: Option<Vec<String>>

Detected languages for this creative. Read-only. This field should not be set in requests.

§native_ad: Option<CreativeNativeAd>

If nativeAd is set, HTMLSnippet, videoVastXML, and the videoURL outside of nativeAd should not be set. (The videoURL inside nativeAd can be set.)

§open_auction_status: Option<String>

Top-level open auction status. Read-only. This field should not be set in requests. If disapproved, an entry for auctionType=OPEN_AUCTION (or ALL) in servingRestrictions will also exist. Note that this may be nuanced with other contextual restrictions, in which case it may be preferable to read from ServingRestrictions directly.

§product_categories: Option<Vec<i32>>

Detected product categories, if any. Each category is represented by an integer as defined in ad-product-categories.txt. 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. Each category is represented by an integer as defined in the ad-restricted-categories.txt.

§sensitive_categories: Option<Vec<i32>>

Detected sensitive categories, if any. Each category is represented by an integer as defined in ad-sensitive-categories.txt. Read-only. This field should not be set in requests.

§serving_restrictions: Option<Vec<CreativeServingRestrictions>>

The granular status of this ad in specific contexts. A context here relates to where something ultimately serves (for example, a physical location, a platform, an HTTPS vs HTTP request, or the type of auction). Read-only. This field should not be set in requests. See the examples in the Creatives guide for more details.

§vendor_type: Option<Vec<i32>>

List of vendor types for the ads that may be shown from this snippet. Each vendor type is represented by an integer as defined in vendors.txt.

§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, videoVastXML, and nativeAd should not be set. Note, this is different from resource.native_ad.video_url above.

§video_vast_xml: Option<String>

The contents of a VAST document for a video ad. This document should conform to the VAST 2.0 or 3.0 standard. If set, HTMLSnippet, videoURL, and nativeAd and 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 Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · 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 Twhere U: From<T>,

const: unstable · 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 Twhere 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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · 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 Twhere T: for<'de> Deserialize<'de>,