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.
928 929 930 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 928 def initialize(**args) update!(**args) end |
Instance Attribute Details
#averages ⇒ Google::Apis::AdsenseV2::Row
Row representation.
Corresponds to the JSON property averages
874 875 876 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 874 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 (for example, an anniversary). * A year on its own,
with a zero month and a zero day. * A year and month, with a zero day (for
example, a credit card expiration date). Related types: * google.type.
TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
Corresponds to the JSON property endDate
886 887 888 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 886 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
892 893 894 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 892 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
898 899 900 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 898 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 (for example, an anniversary). * A year on its own,
with a zero month and a zero day. * A year and month, with a zero day (for
example, a credit card expiration date). Related types: * google.type.
TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
Corresponds to the JSON property startDate
910 911 912 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 910 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
915 916 917 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 915 def total_matched_rows @total_matched_rows end |
#totals ⇒ Google::Apis::AdsenseV2::Row
Row representation.
Corresponds to the JSON property totals
920 921 922 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 920 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
926 927 928 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 926 def warnings @warnings end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
933 934 935 936 937 938 939 940 941 942 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 933 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 |