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.
855 856 857 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 855 def initialize(**args) update!(**args) end |
Instance Attribute Details
#averages ⇒ Google::Apis::AdsenseV2::Row
Row representation.
Corresponds to the JSON property averages
801 802 803 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 801 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, with a zero year (e.g., an anniversary) * A year on its own, with a
zero month and a zero day * A year and month, with a zero day (e.g., a credit
card expiration date) Related types: * google.type.TimeOfDay * google.type.
DateTime * google.protobuf.Timestamp
Corresponds to the JSON property endDate
813 814 815 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 813 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
819 820 821 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 819 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
825 826 827 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 825 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, with a zero year (e.g., an anniversary) * A year on its own, with a
zero month and a zero day * A year and month, with a zero day (e.g., a credit
card expiration date) Related types: * google.type.TimeOfDay * google.type.
DateTime * google.protobuf.Timestamp
Corresponds to the JSON property startDate
837 838 839 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 837 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
842 843 844 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 842 def total_matched_rows @total_matched_rows end |
#totals ⇒ Google::Apis::AdsenseV2::Row
Row representation.
Corresponds to the JSON property totals
847 848 849 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 847 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
853 854 855 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 853 def warnings @warnings end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
860 861 862 863 864 865 866 867 868 869 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 860 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 |