pub struct Creative {
Show 21 fields pub account_id: Option<i64>, pub ad_choices_destination_url: Option<String>, pub advertiser_name: Option<String>, pub agency_id: Option<i64>, pub api_update_time: Option<DateTime<Utc>>, pub creative_format: Option<String>, pub creative_id: Option<String>, pub creative_serving_decision: Option<CreativeServingDecision>, pub deal_ids: Option<Vec<String>>, pub declared_attributes: Option<Vec<String>>, pub declared_click_through_urls: Option<Vec<String>>, pub declared_restricted_categories: Option<Vec<String>>, pub declared_vendor_ids: Option<Vec<i32>>, pub html: Option<HtmlContent>, pub impression_tracking_urls: Option<Vec<String>>, pub name: Option<String>, pub native: Option<NativeContent>, pub render_url: Option<String>, pub restricted_categories: Option<Vec<String>>, pub version: Option<i32>, pub video: Option<VideoContent>,
}
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§

§account_id: Option<i64>

Output only. ID of the buyer account that this creative is owned by. Can be used to filter the response of the creatives.list method with equality and inequality check.

§ad_choices_destination_url: Option<String>

The link to AdChoices destination page. This is only supported for native ads.

§advertiser_name: Option<String>

The name of the company being advertised in the creative. Can be used to filter the response of the creatives.list method.

§agency_id: Option<i64>

The agency ID for this creative.

§api_update_time: Option<DateTime<Utc>>

Output only. The last update timestamp of the creative through the API.

§creative_format: Option<String>

Output only. The format of this creative. Can be used to filter the response of the creatives.list method.

§creative_id: Option<String>

Buyer-specific creative ID that references this creative in bid responses. This field is Ignored in update operations. Can be used to filter the response of the creatives.list method. The maximum length of the creative ID is 128 bytes.

§creative_serving_decision: Option<CreativeServingDecision>

Output only. Top level status and detected attributes of a creative (for example domain, language, advertiser, product category, etc.) that affect whether (status) and where (context) a creative will be allowed to serve.

§deal_ids: Option<Vec<String>>

Output only. IDs of all of the deals with which this creative has been used in bidding. Can be used to filter the response of the creatives.list method.

§declared_attributes: Option<Vec<String>>

All declared attributes for the ads that may be shown from this creative. Can be used to filter the response of the creatives.list method. If the excluded_attribute field of a bid request contains one of the attributes that were declared or detected for a given creative, and a bid is submitted with that creative, the bid will be filtered before the auction.

§declared_click_through_urls: Option<Vec<String>>

The set of declared destination URLs for the creative. Can be used to filter the response of the creatives.list method.

§declared_restricted_categories: Option<Vec<String>>

All declared restricted categories for the ads that may be shown from this creative. Can be used to filter the response of the creatives.list method.

§declared_vendor_ids: Option<Vec<i32>>

IDs for the declared ad technology vendors that may be used by this creative. See https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt for possible values. Can be used to filter the response of the creatives.list method.

§html: Option<HtmlContent>

An HTML creative.

§impression_tracking_urls: Option<Vec<String>>

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

§name: Option<String>

Output only. Name of the creative. Follows the pattern buyers/{buyer}/creatives/{creative}, where {buyer} represents the account ID of the buyer who owns the creative, and {creative} is the buyer-specific creative ID that references this creative in the bid response.

§native: Option<NativeContent>

A native creative.

§render_url: Option<String>

Experimental field that can be used during the FLEDGE Origin Trial. The URL to fetch an interest group ad used in TURTLEDOVE on-device auction. This should be unique among all creatives for a given accountId. This URL should be the same as the URL returned by generateBid().

§restricted_categories: Option<Vec<String>>

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

§version: Option<i32>

Output only. The version of the creative. Version for a new creative is 1 and it increments during subsequent creative updates.

§video: Option<VideoContent>

A video creative.

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