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).
- insertion orders create advertisers (request|response)
- insertion orders get advertisers (response)
- insertion orders patch advertisers (request|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
impl Clone for InsertionOrder
Source§fn clone(&self) -> InsertionOrder
fn clone(&self) -> InsertionOrder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for InsertionOrder
impl Debug for InsertionOrder
Source§impl Default for InsertionOrder
impl Default for InsertionOrder
Source§fn default() -> InsertionOrder
fn default() -> InsertionOrder
Source§impl<'de> Deserialize<'de> for InsertionOrder
impl<'de> Deserialize<'de> for InsertionOrder
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for InsertionOrder
impl Serialize for InsertionOrder
impl RequestValue for InsertionOrder
impl ResponseResult for InsertionOrder
Auto Trait Implementations§
impl Freeze for InsertionOrder
impl RefUnwindSafe for InsertionOrder
impl Send for InsertionOrder
impl Sync for InsertionOrder
impl Unpin for InsertionOrder
impl UnwindSafe for InsertionOrder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more