pub struct Placement {
Show 41 fields pub account_id: Option<i64>, pub ad_blocking_opt_out: Option<bool>, pub additional_sizes: Option<Vec<Size>>, pub advertiser_id: Option<i64>, pub advertiser_id_dimension_value: Option<DimensionValue>, pub archived: Option<bool>, pub campaign_id: Option<i64>, pub campaign_id_dimension_value: Option<DimensionValue>, pub comment: Option<String>, pub compatibility: Option<String>, pub content_category_id: Option<i64>, pub create_info: Option<LastModifiedInfo>, pub directory_site_id: Option<i64>, pub directory_site_id_dimension_value: Option<DimensionValue>, pub external_id: Option<String>, pub id: Option<i64>, pub id_dimension_value: Option<DimensionValue>, pub key_name: Option<String>, pub kind: Option<String>, pub last_modified_info: Option<LastModifiedInfo>, pub lookback_configuration: Option<LookbackConfiguration>, pub name: Option<String>, pub payment_approved: Option<bool>, pub payment_source: Option<String>, pub placement_group_id: Option<i64>, pub placement_group_id_dimension_value: Option<DimensionValue>, pub placement_strategy_id: Option<i64>, pub pricing_schedule: Option<PricingSchedule>, pub primary: Option<bool>, pub publisher_update_info: Option<LastModifiedInfo>, pub site_id: Option<i64>, pub site_id_dimension_value: Option<DimensionValue>, pub size: Option<Size>, pub ssl_required: Option<bool>, pub status: Option<String>, pub subaccount_id: Option<i64>, pub tag_formats: Option<Vec<String>>, pub tag_setting: Option<TagSetting>, pub video_active_view_opt_out: Option<bool>, pub video_settings: Option<VideoSettings>, pub vpaid_adapter_choice: Option<String>,
}
Expand description

Contains properties of a placement.

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

Account ID of this placement. This field can be left blank.

§ad_blocking_opt_out: Option<bool>

Whether this placement opts out of ad blocking. When true, ad blocking is disabled for this placement. When false, the campaign and site settings take effect.

§additional_sizes: Option<Vec<Size>>

Additional sizes associated with this placement. When inserting or updating a placement, only the size ID field is used.

§advertiser_id: Option<i64>

Advertiser ID of this placement. This field can be left blank.

§advertiser_id_dimension_value: Option<DimensionValue>

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

§archived: Option<bool>

Whether this placement is archived.

§campaign_id: Option<i64>

Campaign ID of this placement. This field is a required field on insertion.

§campaign_id_dimension_value: Option<DimensionValue>

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

§comment: Option<String>

Comments for this placement.

§compatibility: Option<String>

Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering on desktop, on mobile devices or in mobile apps for regular or interstitial ads respectively. APP and APP_INTERSTITIAL are no longer allowed for new placement insertions. Instead, use DISPLAY or DISPLAY_INTERSTITIAL. IN_STREAM_VIDEO refers to rendering in in-stream video ads developed with the VAST standard. This field is required on insertion.

§content_category_id: Option<i64>

ID of the content category assigned to this placement.

§create_info: Option<LastModifiedInfo>

Information about the creation of this placement. This is a read-only field.

§directory_site_id: Option<i64>

Directory site ID of this placement. On insert, you must set either this field or the siteId field to specify the site associated with this placement. This is a required field that is read-only after insertion.

§directory_site_id_dimension_value: Option<DimensionValue>

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

§external_id: Option<String>

External ID for this placement.

§id: Option<i64>

ID of this placement. This is a read-only, auto-generated field.

§id_dimension_value: Option<DimensionValue>

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

§key_name: Option<String>

Key name of this placement. This is a read-only, auto-generated field.

§kind: Option<String>

Identifies what kind of resource this is. Value: the fixed string “dfareporting#placement”.

§last_modified_info: Option<LastModifiedInfo>

Information about the most recent modification of this placement. This is a read-only field.

§lookback_configuration: Option<LookbackConfiguration>

Lookback window settings for this placement.

§name: Option<String>

Name of this placement.This is a required field and must be less than 256 characters long.

§payment_approved: Option<bool>

Whether payment was approved for this placement. This is a read-only field relevant only to publisher-paid placements.

§payment_source: Option<String>

Payment source for this placement. This is a required field that is read-only after insertion.

§placement_group_id: Option<i64>

ID of this placement’s group, if applicable.

§placement_group_id_dimension_value: Option<DimensionValue>

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

§placement_strategy_id: Option<i64>

ID of the placement strategy assigned to this placement.

§pricing_schedule: Option<PricingSchedule>

Pricing schedule of this placement. This field is required on insertion, specifically subfields startDate, endDate and pricingType.

§primary: Option<bool>

Whether this placement is the primary placement of a roadblock (placement group). You cannot change this field from true to false. Setting this field to true will automatically set the primary field on the original primary placement of the roadblock to false, and it will automatically set the roadblock’s primaryPlacementId field to the ID of this placement.

§publisher_update_info: Option<LastModifiedInfo>

Information about the last publisher update. This is a read-only field.

§site_id: Option<i64>

Site ID associated with this placement. On insert, you must set either this field or the directorySiteId field to specify the site associated with this placement. This is a required field that is read-only after insertion.

§site_id_dimension_value: Option<DimensionValue>

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

§size: Option<Size>

Size associated with this placement. When inserting or updating a placement, only the size ID field is used. This field is required on insertion.

§ssl_required: Option<bool>

Whether creatives assigned to this placement must be SSL-compliant.

§status: Option<String>

Third-party placement status.

§subaccount_id: Option<i64>

Subaccount ID of this placement. This field can be left blank.

§tag_formats: Option<Vec<String>>

Tag formats to generate for this placement. This field is required on insertion. Acceptable values are:

  • “PLACEMENT_TAG_STANDARD”
  • “PLACEMENT_TAG_IFRAME_JAVASCRIPT”
  • “PLACEMENT_TAG_IFRAME_ILAYER”
  • “PLACEMENT_TAG_INTERNAL_REDIRECT”
  • “PLACEMENT_TAG_JAVASCRIPT”
  • “PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT”
  • “PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT”
  • “PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT”
  • “PLACEMENT_TAG_CLICK_COMMANDS”
  • “PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH”
  • “PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3”
  • “PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4”
  • “PLACEMENT_TAG_TRACKING”
  • “PLACEMENT_TAG_TRACKING_IFRAME”
  • “PLACEMENT_TAG_TRACKING_JAVASCRIPT”
§tag_setting: Option<TagSetting>

Tag settings for this placement.

§video_active_view_opt_out: Option<bool>

Whether Verification and ActiveView are disabled for in-stream video creatives for this placement. The same setting videoActiveViewOptOut exists on the site level – the opt out occurs if either of these settings are true. These settings are distinct from DirectorySites.settings.activeViewOptOut or Sites.siteSettings.activeViewOptOut which only apply to display ads. However, Accounts.activeViewOptOut opts out both video traffic, as well as display ads, from Verification and ActiveView.

§video_settings: Option<VideoSettings>

A collection of settings which affect video creatives served through this placement. Applicable to placements with IN_STREAM_VIDEO compatibility.

§vpaid_adapter_choice: Option<String>

VPAID adapter setting for this placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to this placement.

Note: Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH.

Trait Implementations§

source§

impl Clone for Placement

source§

fn clone(&self) -> Placement

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 Placement

source§

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

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

impl Default for Placement

source§

fn default() -> Placement

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

impl<'de> Deserialize<'de> for Placement

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 Placement

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 Placement

source§

impl Resource for Placement

source§

impl ResponseResult for Placement

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