Class: Google::Apis::DisplayvideoV1::LineItemFlight

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/displayvideo_v1/classes.rb,
lib/google/apis/displayvideo_v1/representations.rb,
lib/google/apis/displayvideo_v1/representations.rb

Overview

Settings that control the active duration of a line item.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LineItemFlight

Returns a new instance of LineItemFlight.



7085
7086
7087
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 7085

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#date_rangeGoogle::Apis::DisplayvideoV1::DateRange

A date range. Corresponds to the JSON property dateRange



7065
7066
7067
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 7065

def date_range
  @date_range
end

#flight_date_typeString

Required. The type of the line item's flight dates. Corresponds to the JSON property flightDateType

Returns:

  • (String)


7070
7071
7072
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 7070

def flight_date_type
  @flight_date_type
end

#trigger_idFixnum

The ID of the manual trigger associated with the line item. * Required when flight_date_type is LINE_ITEM_FLIGHT_DATE_TYPE_TRIGGER. Must not be set otherwise. * When set, the line item's flight dates are inherited from its parent insertion order. * Active line items will spend when the selected trigger is activated within the parent insertion order's flight dates. ** Warning:** Line Items using manual triggers no longer serve in Display & Video

  1. This field will sunset on August 1, 2023. Read our feature deprecation announcement for more information. Corresponds to the JSON property triggerId

Returns:

  • (Fixnum)


7083
7084
7085
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 7083

def trigger_id
  @trigger_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7090
7091
7092
7093
7094
# File 'lib/google/apis/displayvideo_v1/classes.rb', line 7090

def update!(**args)
  @date_range = args[:date_range] if args.key?(:date_range)
  @flight_date_type = args[:flight_date_type] if args.key?(:flight_date_type)
  @trigger_id = args[:trigger_id] if args.key?(:trigger_id)
end