Class: Google::Apis::DfareportingV4::TvCampaignTimepoint
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV4::TvCampaignTimepoint
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dfareporting_v4/classes.rb,
lib/google/apis/dfareporting_v4/representations.rb,
lib/google/apis/dfareporting_v4/representations.rb
Overview
A single data point for TvCampaignDetail, which holds information about the TV campaign for a specific start date and date window.
Instance Attribute Summary collapse
-
#date_window ⇒ String
The date window of the timepoint.
-
#spend ⇒ Float
The spend within the time range of the timepoint.
-
#start_date ⇒ String
The start date of the timepoint.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TvCampaignTimepoint
constructor
A new instance of TvCampaignTimepoint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TvCampaignTimepoint
Returns a new instance of TvCampaignTimepoint.
12740 12741 12742 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12740 def initialize(**args) update!(**args) end |
Instance Attribute Details
#date_window ⇒ String
The date window of the timepoint.
Corresponds to the JSON property dateWindow
12728 12729 12730 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12728 def date_window @date_window end |
#spend ⇒ Float
The spend within the time range of the timepoint.
Corresponds to the JSON property spend
12733 12734 12735 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12733 def spend @spend end |
#start_date ⇒ String
The start date of the timepoint. A string in the format of "yyyy-MM-dd".
Corresponds to the JSON property startDate
12738 12739 12740 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12738 def start_date @start_date end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12745 12746 12747 12748 12749 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12745 def update!(**args) @date_window = args[:date_window] if args.key?(:date_window) @spend = args[:spend] if args.key?(:spend) @start_date = args[:start_date] if args.key?(:start_date) end |