pub struct InsertionOrder {
Show 17 fields pub advertiser_id: Option<i64>, pub bid_strategy: Option<BiddingStrategy>, pub billable_outcome: Option<String>, pub budget: Option<InsertionOrderBudget>, pub campaign_id: Option<i64>, pub display_name: Option<String>, pub entity_status: Option<String>, pub frequency_cap: Option<FrequencyCap>, pub insertion_order_id: Option<i64>, pub insertion_order_type: Option<String>, pub integration_details: Option<IntegrationDetails>, pub name: Option<String>, pub pacing: Option<Pacing>, pub partner_costs: Option<Vec<PartnerCost>>, pub performance_goal: Option<PerformanceGoal>, pub reservation_type: Option<String>, pub update_time: Option<DateTime<Utc>>,
}
Expand description

A single insertion order.

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

§advertiser_id: Option<i64>

Output only. The unique ID of the advertiser the insertion order belongs to.

§bid_strategy: Option<BiddingStrategy>

The bidding strategy of the insertion order. By default, fixed_bid is set.

§billable_outcome: Option<String>

Immutable. The billable outcome of the insertion order. Outcome based buying is deprecated. BILLABLE_OUTCOME_PAY_PER_IMPRESSION is the only valid value.

§budget: Option<InsertionOrderBudget>

Required. The budget allocation settings of the insertion order.

§campaign_id: Option<i64>

Required. Immutable. The unique ID of the campaign that the insertion order belongs to.

§display_name: Option<String>

Required. The display name of the insertion order. Must be UTF-8 encoded with a maximum size of 240 bytes.

§entity_status: Option<String>

Required. Controls whether or not the insertion order can spend its budget and bid on inventory. * For CreateInsertionOrder method, only ENTITY_STATUS_DRAFT is allowed. To activate an insertion order, use UpdateInsertionOrder method and update the status to ENTITY_STATUS_ACTIVE after creation. * An insertion order cannot be changed back to ENTITY_STATUS_DRAFT status from any other status. * An insertion order cannot be set to ENTITY_STATUS_ACTIVE if its parent campaign is not active.

§frequency_cap: Option<FrequencyCap>

Required. The frequency capping setting of the insertion order.

§insertion_order_id: Option<i64>

Output only. The unique ID of the insertion order. Assigned by the system.

§insertion_order_type: Option<String>

The type of insertion order. If this field is unspecified in creation, the value defaults to RTB.

§integration_details: Option<IntegrationDetails>

Additional integration details of the insertion order.

§name: Option<String>

Output only. The resource name of the insertion order.

§pacing: Option<Pacing>

Required. The budget spending speed setting of the insertion order.

§partner_costs: Option<Vec<PartnerCost>>

The partner costs associated with the insertion order. If absent or empty in CreateInsertionOrder method, the newly created insertion order will inherit partner costs from the partner settings.

§performance_goal: Option<PerformanceGoal>

Required. Performance goal of the insertion order.

§reservation_type: Option<String>

Output only. The reservation type of the insertion order.

§update_time: Option<DateTime<Utc>>

Output only. The timestamp when the insertion order was last updated. Assigned by the system.

Trait Implementations§

source§

impl Clone for InsertionOrder

source§

fn clone(&self) -> InsertionOrder

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 InsertionOrder

source§

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

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

impl Default for InsertionOrder

source§

fn default() -> InsertionOrder

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

impl<'de> Deserialize<'de> for InsertionOrder

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 InsertionOrder

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 InsertionOrder

source§

impl ResponseResult for InsertionOrder

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