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).
- line items create advertisers (request|response)
- line items generate default advertisers (response)
- line items get advertisers (response)
- line items patch advertisers (request|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<'de> Deserialize<'de> for LineItem
impl<'de> Deserialize<'de> for LineItem
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>,
impl RequestValue for LineItem
impl ResponseResult for LineItem
Auto Trait Implementations§
impl Freeze for LineItem
impl RefUnwindSafe for LineItem
impl Send for LineItem
impl Sync for LineItem
impl Unpin for LineItem
impl UnwindSafe for LineItem
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