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.
4272 4273 4274 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 4272 def initialize(**args) update!(**args) end |
Instance Attribute Details
#date_range ⇒ Google::Apis::DisplayvideoV4::DateRange
A date range.
Corresponds to the JSON property dateRange
4265 4266 4267 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 4265 def date_range @date_range end |
#duration_days ⇒ Fixnum
Required. The number of days the plan covers.
Corresponds to the JSON property durationDays
4270 4271 4272 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 4270 def duration_days @duration_days end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4277 4278 4279 4280 |
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 4277 def update!(**args) @date_range = args[:date_range] if args.key?(:date_range) @duration_days = args[:duration_days] if args.key?(:duration_days) end |