Class: Google::Apis::AdsenseV2::ReportResult
- Inherits:
-
Object
- Object
- Google::Apis::AdsenseV2::ReportResult
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/adsense_v2/classes.rb,
lib/google/apis/adsense_v2/representations.rb,
lib/google/apis/adsense_v2/representations.rb
Overview
Result of a generated report.
Instance Attribute Summary collapse
-
#averages ⇒ Google::Apis::AdsenseV2::Row
Row representation.
-
#end_date ⇒ Google::Apis::AdsenseV2::Date
Represents a whole or partial calendar date, such as a birthday.
-
#headers ⇒ Array<Google::Apis::AdsenseV2::Header>
The header information; one for each dimension in the request, followed by one for each metric in the request.
-
#rows ⇒ Array<Google::Apis::AdsenseV2::Row>
The output rows of the report.
-
#start_date ⇒ Google::Apis::AdsenseV2::Date
Represents a whole or partial calendar date, such as a birthday.
-
#total_matched_rows ⇒ Fixnum
The total number of rows matched by the report request.
-
#totals ⇒ Google::Apis::AdsenseV2::Row
Row representation.
-
#warnings ⇒ Array<String>
Any warnings associated with generation of the report.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReportResult
constructor
A new instance of ReportResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ReportResult
Returns a new instance of ReportResult.
851 852 853 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 851 def initialize(**args) update!(**args) end |
Instance Attribute Details
#averages ⇒ Google::Apis::AdsenseV2::Row
Row representation.
Corresponds to the JSON property averages
797 798 799 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 797 def averages @averages end |
#end_date ⇒ Google::Apis::AdsenseV2::Date
Represents a whole or partial calendar date, such as a birthday. The time of
day and time zone are either specified elsewhere or are insignificant. The
date is relative to the Gregorian Calendar. This can represent one of the
following: * A full date, with non-zero year, month, and day values * A month
and day value, with a zero year, such as an anniversary * A year on its own,
with zero month and day values * A year and month value, with a zero day, such
as a credit card expiration date Related types are google.type.TimeOfDay and
google.protobuf.Timestamp.
Corresponds to the JSON property endDate
809 810 811 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 809 def end_date @end_date end |
#headers ⇒ Array<Google::Apis::AdsenseV2::Header>
The header information; one for each dimension in the request, followed by one
for each metric in the request.
Corresponds to the JSON property headers
815 816 817 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 815 def headers @headers end |
#rows ⇒ Array<Google::Apis::AdsenseV2::Row>
The output rows of the report. Each row is a list of cells; one for each
dimension in the request, followed by one for each metric in the request.
Corresponds to the JSON property rows
821 822 823 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 821 def rows @rows end |
#start_date ⇒ Google::Apis::AdsenseV2::Date
Represents a whole or partial calendar date, such as a birthday. The time of
day and time zone are either specified elsewhere or are insignificant. The
date is relative to the Gregorian Calendar. This can represent one of the
following: * A full date, with non-zero year, month, and day values * A month
and day value, with a zero year, such as an anniversary * A year on its own,
with zero month and day values * A year and month value, with a zero day, such
as a credit card expiration date Related types are google.type.TimeOfDay and
google.protobuf.Timestamp.
Corresponds to the JSON property startDate
833 834 835 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 833 def start_date @start_date end |
#total_matched_rows ⇒ Fixnum
The total number of rows matched by the report request.
Corresponds to the JSON property totalMatchedRows
838 839 840 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 838 def total_matched_rows @total_matched_rows end |
#totals ⇒ Google::Apis::AdsenseV2::Row
Row representation.
Corresponds to the JSON property totals
843 844 845 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 843 def totals @totals end |
#warnings ⇒ Array<String>
Any warnings associated with generation of the report. These warnings are
always returned in English.
Corresponds to the JSON property warnings
849 850 851 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 849 def warnings @warnings end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
856 857 858 859 860 861 862 863 864 865 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 856 def update!(**args) @averages = args[:averages] if args.key?(:averages) @end_date = args[:end_date] if args.key?(:end_date) @headers = args[:headers] if args.key?(:headers) @rows = args[:rows] if args.key?(:rows) @start_date = args[:start_date] if args.key?(:start_date) @total_matched_rows = args[:total_matched_rows] if args.key?(:total_matched_rows) @totals = args[:totals] if args.key?(:totals) @warnings = args[:warnings] if args.key?(:warnings) end |