class Google::Apis::DisplayvideoV1::LineItem

A single line item.

Attributes

advertiser_id[RW]

Output only. The unique ID of the advertiser the line item belongs to. Corresponds to the JSON property `advertiserId` @return [Fixnum]

bid_strategy[RW]

Settings that control the bid strategy. Bid strategy determines the bid price. Corresponds to the JSON property `bidStrategy` @return [Google::Apis::DisplayvideoV1::BiddingStrategy]

budget[RW]

Settings that control how budget is allocated. Corresponds to the JSON property `budget` @return [Google::Apis::DisplayvideoV1::LineItemBudget]

campaign_id[RW]

Output only. The unique ID of the campaign that the line item belongs to. Corresponds to the JSON property `campaignId` @return [Fixnum]

conversion_counting[RW]

Settings that control how conversions are counted. All post-click conversions will be counted. A percentage value can be set for post-view conversions counting. Corresponds to the JSON property `conversionCounting` @return [Google::Apis::DisplayvideoV1::ConversionCountingConfig]

creative_ids[RW]

The IDs of the creatives associated with the line item. Corresponds to the JSON property `creativeIds` @return [Array<Fixnum>]

display_name[RW]

Required. The display name of the line item. Must be UTF-8 encoded with a maximum size of 240 bytes. Corresponds to the JSON property `displayName` @return [String]

entity_status[RW]

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`. Corresponds to the JSON property `entityStatus` @return [String]

flight[RW]

Settings that control the active duration of a line item. Corresponds to the JSON property `flight` @return [Google::Apis::DisplayvideoV1::LineItemFlight]

frequency_cap[RW]

Settings that control the number of times a user may be shown with the same ad during a given time period. Corresponds to the JSON property `frequencyCap` @return [Google::Apis::DisplayvideoV1::FrequencyCap]

insertion_order_id[RW]

Required. Immutable. The unique ID of the insertion order that the line item belongs to. Corresponds to the JSON property `insertionOrderId` @return [Fixnum]

integration_details[RW]

Integration details of an entry. Corresponds to the JSON property `integrationDetails` @return [Google::Apis::DisplayvideoV1::IntegrationDetails]

inventory_source_ids[RW]

The IDs of the private inventory sources assigned to the line item. Corresponds to the JSON property `inventorySourceIds` @return [Array<Fixnum>]

line_item_id[RW]

Output only. The unique ID of the line item. Assigned by the system. Corresponds to the JSON property `lineItemId` @return [Fixnum]

line_item_type[RW]

Required. Immutable. The type of the line item. Corresponds to the JSON property `lineItemType` @return [String]

mobile_app[RW]

A mobile app promoted by a mobile app install line item. Corresponds to the JSON property `mobileApp` @return [Google::Apis::DisplayvideoV1::MobileApp]

name[RW]

Output only. The resource name of the line item. Corresponds to the JSON property `name` @return [String]

pacing[RW]

Settings that control the rate at which a budget is spent. Corresponds to the JSON property `pacing` @return [Google::Apis::DisplayvideoV1::Pacing]

partner_costs[RW]

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. Corresponds to the JSON property `partnerCosts` @return [Array<Google::Apis::DisplayvideoV1::PartnerCost>]

partner_revenue_model[RW]

Settings that control how partner revenue is calculated. Corresponds to the JSON property `partnerRevenueModel` @return [Google::Apis::DisplayvideoV1::PartnerRevenueModel]

targeting_expansion[RW]

Settings that control the targeting expansion of the line item. Targeting expansion allows the line item to reach a larger audience based on the original audience list and the targeting expansion level. Corresponds to the JSON property `targetingExpansion` @return [Google::Apis::DisplayvideoV1::TargetingExpansionConfig]

update_time[RW]

Output only. The timestamp when the line item was last updated. Assigned by the system. Corresponds to the JSON property `updateTime` @return [String]

warning_messages[RW]

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. Corresponds to the JSON property `warningMessages` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/displayvideo_v1/classes.rb, line 6040
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/displayvideo_v1/classes.rb, line 6045
def update!(**args)
  @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
  @bid_strategy = args[:bid_strategy] if args.key?(:bid_strategy)
  @budget = args[:budget] if args.key?(:budget)
  @campaign_id = args[:campaign_id] if args.key?(:campaign_id)
  @conversion_counting = args[:conversion_counting] if args.key?(:conversion_counting)
  @creative_ids = args[:creative_ids] if args.key?(:creative_ids)
  @display_name = args[:display_name] if args.key?(:display_name)
  @entity_status = args[:entity_status] if args.key?(:entity_status)
  @flight = args[:flight] if args.key?(:flight)
  @frequency_cap = args[:frequency_cap] if args.key?(:frequency_cap)
  @insertion_order_id = args[:insertion_order_id] if args.key?(:insertion_order_id)
  @integration_details = args[:integration_details] if args.key?(:integration_details)
  @inventory_source_ids = args[:inventory_source_ids] if args.key?(:inventory_source_ids)
  @line_item_id = args[:line_item_id] if args.key?(:line_item_id)
  @line_item_type = args[:line_item_type] if args.key?(:line_item_type)
  @mobile_app = args[:mobile_app] if args.key?(:mobile_app)
  @name = args[:name] if args.key?(:name)
  @pacing = args[:pacing] if args.key?(:pacing)
  @partner_costs = args[:partner_costs] if args.key?(:partner_costs)
  @partner_revenue_model = args[:partner_revenue_model] if args.key?(:partner_revenue_model)
  @targeting_expansion = args[:targeting_expansion] if args.key?(:targeting_expansion)
  @update_time = args[:update_time] if args.key?(:update_time)
  @warning_messages = args[:warning_messages] if args.key?(:warning_messages)
end