Class: Google::Apis::DisplayvideoV1::LineItem
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV1::LineItem
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/displayvideo_v1/classes.rb,
generated/google/apis/displayvideo_v1/representations.rb,
generated/google/apis/displayvideo_v1/representations.rb
Overview
A single line item.
Instance Attribute Summary collapse
-
#advertiser_id ⇒ Fixnum
Output only.
-
#bid_strategy ⇒ Google::Apis::DisplayvideoV1::BiddingStrategy
Settings that control the bid strategy.
-
#budget ⇒ Google::Apis::DisplayvideoV1::LineItemBudget
Settings that control how budget is allocated.
-
#campaign_id ⇒ Fixnum
Output only.
-
#conversion_counting ⇒ Google::Apis::DisplayvideoV1::ConversionCountingConfig
Settings that control how conversions are counted.
-
#creative_ids ⇒ Array<Fixnum>
The IDs of the creatives associated with the line item.
-
#display_name ⇒ String
Required.
-
#entity_status ⇒ String
Required.
-
#flight ⇒ Google::Apis::DisplayvideoV1::LineItemFlight
Settings that control the active duration of a line item.
-
#frequency_cap ⇒ Google::Apis::DisplayvideoV1::FrequencyCap
Settings that control the number of times a user may be shown with the same ad during a given time period.
-
#insertion_order_id ⇒ Fixnum
Required.
-
#integration_details ⇒ Google::Apis::DisplayvideoV1::IntegrationDetails
Integration details of an entry.
-
#inventory_source_ids ⇒ Array<Fixnum>
The IDs of the private inventory sources assigned to the line item.
-
#line_item_id ⇒ Fixnum
Output only.
-
#line_item_type ⇒ String
Required.
-
#name ⇒ String
Output only.
-
#pacing ⇒ Google::Apis::DisplayvideoV1::Pacing
Settings that control the rate at which a budget is spent.
-
#partner_costs ⇒ Array<Google::Apis::DisplayvideoV1::PartnerCost>
The partner costs associated with the line item.
-
#partner_revenue_model ⇒ Google::Apis::DisplayvideoV1::PartnerRevenueModel
Settings that control how partner revenue is calculated.
-
#targeting_expansion ⇒ Google::Apis::DisplayvideoV1::TargetingExpansionConfig
Settings that control the targeting expansion of the line item.
-
#update_time ⇒ String
Output only.
-
#warning_messages ⇒ Array<String>
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LineItem
constructor
A new instance of LineItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LineItem
Returns a new instance of LineItem.
5393 5394 5395 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5393 def initialize(**args) update!(**args) end |
Instance Attribute Details
#advertiser_id ⇒ Fixnum
Output only. The unique ID of the advertiser the line item belongs to.
Corresponds to the JSON property advertiserId
5268 5269 5270 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5268 def advertiser_id @advertiser_id end |
#bid_strategy ⇒ Google::Apis::DisplayvideoV1::BiddingStrategy
Settings that control the bid strategy. Bid strategy determines the bid price.
Corresponds to the JSON property bidStrategy
5273 5274 5275 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5273 def bid_strategy @bid_strategy end |
#budget ⇒ Google::Apis::DisplayvideoV1::LineItemBudget
Settings that control how budget is allocated.
Corresponds to the JSON property budget
5278 5279 5280 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5278 def budget @budget end |
#campaign_id ⇒ Fixnum
Output only. The unique ID of the campaign that the line item belongs to.
Corresponds to the JSON property campaignId
5283 5284 5285 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5283 def campaign_id @campaign_id end |
#conversion_counting ⇒ Google::Apis::DisplayvideoV1::ConversionCountingConfig
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
5290 5291 5292 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5290 def conversion_counting @conversion_counting end |
#creative_ids ⇒ Array<Fixnum>
The IDs of the creatives associated with the line item.
Corresponds to the JSON property creativeIds
5295 5296 5297 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5295 def creative_ids @creative_ids end |
#display_name ⇒ String
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
5301 5302 5303 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5301 def display_name @display_name end |
#entity_status ⇒ 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
.
Corresponds to the JSON property entityStatus
5312 5313 5314 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5312 def entity_status @entity_status end |
#flight ⇒ Google::Apis::DisplayvideoV1::LineItemFlight
Settings that control the active duration of a line item.
Corresponds to the JSON property flight
5317 5318 5319 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5317 def flight @flight end |
#frequency_cap ⇒ Google::Apis::DisplayvideoV1::FrequencyCap
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
5323 5324 5325 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5323 def frequency_cap @frequency_cap end |
#insertion_order_id ⇒ Fixnum
Required. Immutable. The unique ID of the insertion order that the line item
belongs to.
Corresponds to the JSON property insertionOrderId
5329 5330 5331 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5329 def insertion_order_id @insertion_order_id end |
#integration_details ⇒ Google::Apis::DisplayvideoV1::IntegrationDetails
Integration details of an entry.
Corresponds to the JSON property integrationDetails
5334 5335 5336 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5334 def integration_details @integration_details end |
#inventory_source_ids ⇒ Array<Fixnum>
The IDs of the private inventory sources assigned to the line item.
Corresponds to the JSON property inventorySourceIds
5339 5340 5341 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5339 def inventory_source_ids @inventory_source_ids end |
#line_item_id ⇒ Fixnum
Output only. The unique ID of the line item. Assigned by the system.
Corresponds to the JSON property lineItemId
5344 5345 5346 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5344 def line_item_id @line_item_id end |
#line_item_type ⇒ String
Required. Immutable. The type of the line item.
Corresponds to the JSON property lineItemType
5349 5350 5351 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5349 def line_item_type @line_item_type end |
#name ⇒ String
Output only. The resource name of the line item.
Corresponds to the JSON property name
5354 5355 5356 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5354 def name @name end |
#pacing ⇒ Google::Apis::DisplayvideoV1::Pacing
Settings that control the rate at which a budget is spent.
Corresponds to the JSON property pacing
5359 5360 5361 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5359 def pacing @pacing end |
#partner_costs ⇒ Array<Google::Apis::DisplayvideoV1::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.
Corresponds to the JSON property partnerCosts
5366 5367 5368 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5366 def partner_costs @partner_costs end |
#partner_revenue_model ⇒ Google::Apis::DisplayvideoV1::PartnerRevenueModel
Settings that control how partner revenue is calculated.
Corresponds to the JSON property partnerRevenueModel
5371 5372 5373 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5371 def partner_revenue_model @partner_revenue_model end |
#targeting_expansion ⇒ Google::Apis::DisplayvideoV1::TargetingExpansionConfig
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
5378 5379 5380 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5378 def targeting_expansion @targeting_expansion end |
#update_time ⇒ String
Output only. The timestamp when the line item was last updated. Assigned by
the system.
Corresponds to the JSON property updateTime
5384 5385 5386 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5384 def update_time @update_time end |
#warning_messages ⇒ Array<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.
Corresponds to the JSON property warningMessages
5391 5392 5393 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5391 def @warning_messages end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 5398 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) @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 |