Class: Google::Apis::DisplayvideoV4::CampaignDuration
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV4::CampaignDuration
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/displayvideo_v4/classes.rb,
lib/google/apis/displayvideo_v4/representations.rb,
lib/google/apis/displayvideo_v4/representations.rb
Overview
The duration of the reach plan.
Instance Attribute Summary collapse
-
#date_range ⇒ Google::Apis::DisplayvideoV4::DateRange
A date range.
-
#duration_days ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CampaignDuration
constructor
A new instance of CampaignDuration.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CampaignDuration
Returns a new instance of CampaignDuration.
4289 4290 4291 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 4289 def initialize(**args) update!(**args) end |
Instance Attribute Details
#date_range ⇒ Google::Apis::DisplayvideoV4::DateRange
A date range.
Corresponds to the JSON property dateRange
4282 4283 4284 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 4282 def date_range @date_range end |
#duration_days ⇒ Fixnum
Required. The number of days the plan covers.
Corresponds to the JSON property durationDays
4287 4288 4289 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 4287 def duration_days @duration_days end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4294 4295 4296 4297 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 4294 def update!(**args) @date_range = args[:date_range] if args.key?(:date_range) @duration_days = args[:duration_days] if args.key?(:duration_days) end |