pub struct PretargetingConfig {
Show 24 fields pub billing_id: Option<i64>, pub config_id: Option<i64>, pub config_name: Option<String>, pub creative_type: Option<Vec<String>>, pub dimensions: Option<Vec<PretargetingConfigDimensions>>, pub excluded_content_labels: Option<Vec<i64>>, pub excluded_geo_criteria_ids: Option<Vec<i64>>, pub excluded_placements: Option<Vec<PretargetingConfigExcludedPlacements>>, pub excluded_user_lists: Option<Vec<i64>>, pub excluded_verticals: Option<Vec<i64>>, pub geo_criteria_ids: Option<Vec<i64>>, pub is_active: Option<bool>, pub kind: Option<String>, pub languages: Option<Vec<String>>, pub maximum_qps: Option<i64>, pub mobile_carriers: Option<Vec<i64>>, pub mobile_devices: Option<Vec<i64>>, pub mobile_operating_system_versions: Option<Vec<i64>>, pub placements: Option<Vec<PretargetingConfigPlacements>>, pub platforms: Option<Vec<String>>, pub supported_creative_attributes: Option<Vec<i64>>, pub user_lists: Option<Vec<i64>>, pub vendor_types: Option<Vec<i64>>, pub verticals: Option<Vec<i64>>,
}
Expand description

There is no detailed description.

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

§billing_id: Option<i64>

The id for billing purposes, provided for reference. Leave this field blank for insert requests; the id will be generated automatically.

§config_id: Option<i64>

The config id; generated automatically. Leave this field blank for insert requests.

§config_name: Option<String>

The name of the config. Must be unique. Required for all requests.

§creative_type: Option<Vec<String>>

List must contain exactly one of PRETARGETING_CREATIVE_TYPE_HTML or PRETARGETING_CREATIVE_TYPE_VIDEO.

§dimensions: Option<Vec<PretargetingConfigDimensions>>

Requests which allow one of these (width, height) pairs will match. All pairs must be supported ad dimensions.

§excluded_content_labels: Option<Vec<i64>>

Requests with any of these content labels will not match. Values are from content-labels.txt in the downloadable files section.

§excluded_geo_criteria_ids: Option<Vec<i64>>

Requests containing any of these geo criteria ids will not match.

§excluded_placements: Option<Vec<PretargetingConfigExcludedPlacements>>

Requests containing any of these placements will not match.

§excluded_user_lists: Option<Vec<i64>>

Requests containing any of these users list ids will not match.

§excluded_verticals: Option<Vec<i64>>

Requests containing any of these vertical ids will not match. Values are from the publisher-verticals.txt file in the downloadable files section.

§geo_criteria_ids: Option<Vec<i64>>

Requests containing any of these geo criteria ids will match.

§is_active: Option<bool>

Whether this config is active. Required for all requests.

§kind: Option<String>

The kind of the resource, i.e. “adexchangebuyer#pretargetingConfig”.

§languages: Option<Vec<String>>

Request containing any of these language codes will match.

§maximum_qps: Option<i64>

The maximum QPS allocated to this pretargeting configuration, used for pretargeting-level QPS limits. By default, this is not set, which indicates that there is no QPS limit at the configuration level (a global or account-level limit may still be imposed).

§mobile_carriers: Option<Vec<i64>>

Requests containing any of these mobile carrier ids will match. Values are from mobile-carriers.csv in the downloadable files section.

§mobile_devices: Option<Vec<i64>>

Requests containing any of these mobile device ids will match. Values are from mobile-devices.csv in the downloadable files section.

§mobile_operating_system_versions: Option<Vec<i64>>

Requests containing any of these mobile operating system version ids will match. Values are from mobile-os.csv in the downloadable files section.

§placements: Option<Vec<PretargetingConfigPlacements>>

Requests containing any of these placements will match.

§platforms: Option<Vec<String>>

Requests matching any of these platforms will match. Possible values are PRETARGETING_PLATFORM_MOBILE, PRETARGETING_PLATFORM_DESKTOP, and PRETARGETING_PLATFORM_TABLET.

§supported_creative_attributes: Option<Vec<i64>>

Creative attributes should be declared here if all creatives corresponding to this pretargeting configuration have that creative attribute. Values are from pretargetable-creative-attributes.txt in the downloadable files section.

§user_lists: Option<Vec<i64>>

Requests containing any of these user list ids will match.

§vendor_types: Option<Vec<i64>>

Requests that allow any of these vendor ids will match. Values are from vendors.txt in the downloadable files section.

§verticals: Option<Vec<i64>>

Requests containing any of these vertical ids will match.

Trait Implementations§

source§

impl Clone for PretargetingConfig

source§

fn clone(&self) -> PretargetingConfig

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 PretargetingConfig

source§

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

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

impl Default for PretargetingConfig

source§

fn default() -> PretargetingConfig

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

impl<'de> Deserialize<'de> for PretargetingConfig

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 PretargetingConfig

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 PretargetingConfig

source§

impl ResponseResult for PretargetingConfig

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