Struct LineItem

Source
pub struct LineItem {
Show 25 fields pub advertiser_id: Option<i64>, pub bid_strategy: Option<BiddingStrategy>, pub budget: Option<LineItemBudget>, pub campaign_id: Option<i64>, pub conversion_counting: Option<ConversionCountingConfig>, pub creative_ids: Option<Vec<i64>>, pub display_name: Option<String>, pub entity_status: Option<String>, pub exclude_new_exchanges: Option<bool>, pub flight: Option<LineItemFlight>, pub frequency_cap: Option<FrequencyCap>, pub insertion_order_id: Option<i64>, pub integration_details: Option<IntegrationDetails>, pub inventory_source_ids: Option<Vec<i64>>, pub line_item_id: Option<i64>, pub line_item_type: Option<String>, pub mobile_app: Option<MobileApp>, pub name: Option<String>, pub pacing: Option<Pacing>, pub partner_costs: Option<Vec<PartnerCost>>, pub partner_revenue_model: Option<PartnerRevenueModel>, pub reservation_type: Option<String>, pub targeting_expansion: Option<TargetingExpansionConfig>, pub update_time: Option<DateTime<Utc>>, pub warning_messages: Option<Vec<String>>,
}
Expand description

A single line item.

§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 line item belongs to.

§bid_strategy: Option<BiddingStrategy>

Required. The bidding strategy of the line item.

§budget: Option<LineItemBudget>

Required. The budget allocation setting of the line item.

§campaign_id: Option<i64>

Output only. The unique ID of the campaign that the line item belongs to.

§conversion_counting: Option<ConversionCountingConfig>

The conversion tracking setting of the line item.

§creative_ids: Option<Vec<i64>>

The IDs of the creatives associated with the line item.

§display_name: Option<String>

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

§entity_status: Option<String>

Required. Controls whether or not the line item can spend its budget and bid on inventory. * For CreateLineItem method, only ENTITY_STATUS_DRAFT is allowed. To activate a line item, use UpdateLineItem method and update the status to ENTITY_STATUS_ACTIVE after creation. * A line item cannot be changed back to ENTITY_STATUS_DRAFT status from any other status. * If the line item’s parent insertion order is not active, the line item can’t spend its budget even if its own status is ENTITY_STATUS_ACTIVE.

§exclude_new_exchanges: Option<bool>

Whether to exclude new exchanges from automatically being targeted by the line item. This field is false by default.

§flight: Option<LineItemFlight>

Required. The start and end time of the line item’s flight.

§frequency_cap: Option<FrequencyCap>

Required. The impression frequency cap settings of the line item. The max_impressions field in this settings object must be used if assigning a limited cap.

§insertion_order_id: Option<i64>

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

§integration_details: Option<IntegrationDetails>

Integration details of the line item.

§inventory_source_ids: Option<Vec<i64>>

The IDs of the private inventory sources assigned to the line item.

§line_item_id: Option<i64>

Output only. The unique ID of the line item. Assigned by the system.

§line_item_type: Option<String>

Required. Immutable. The type of the line item.

§mobile_app: Option<MobileApp>

The mobile app promoted by the line item. This is applicable only when line_item_type is either LINE_ITEM_TYPE_DISPLAY_MOBILE_APP_INSTALL or LINE_ITEM_TYPE_VIDEO_MOBILE_APP_INSTALL.

§name: Option<String>

Output only. The resource name of the line item.

§pacing: Option<Pacing>

Required. The budget spending speed setting of the line item.

§partner_costs: Option<Vec<PartnerCost>>

The partner costs associated with the line item. If absent or empty in CreateLineItem method, the newly created line item will inherit partner costs from its parent insertion order.

§partner_revenue_model: Option<PartnerRevenueModel>

Required. The partner revenue model setting of the line item.

§reservation_type: Option<String>

Output only. The reservation type of the line item.

§targeting_expansion: Option<TargetingExpansionConfig>

The optimized targeting settings of the line item. This config is only applicable for display, video, or audio line items that use automated bidding and positively target eligible audience lists.

§update_time: Option<DateTime<Utc>>

Output only. The timestamp when the line item was last updated. Assigned by the system.

§warning_messages: Option<Vec<String>>

Output only. The warning messages generated by the line item. These warnings do not block saving the line item, but some may block the line item from running.

Trait Implementations§

Source§

impl Clone for LineItem

Source§

fn clone(&self) -> LineItem

Returns a duplicate 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 LineItem

Source§

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

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

impl Default for LineItem

Source§

fn default() -> LineItem

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

impl<'de> Deserialize<'de> for LineItem

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 LineItem

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 LineItem

Source§

impl ResponseResult for LineItem

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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

impl<T> ToOwned for T
where T: Clone,

Source§

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

Source§

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

Source§

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

Source§

impl<T> ErasedDestructor for T
where T: 'static,