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.
1113 1114 1115 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 1113 def initialize(**args) update!(**args) end |
Instance Attribute Details
#averages ⇒ Google::Apis::AdsenseV2::Row
Row representation.
Corresponds to the JSON property averages
1059 1060 1061 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 1059 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
1071 1072 1073 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 1071 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
1077 1078 1079 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 1077 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
1083 1084 1085 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 1083 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
1095 1096 1097 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 1095 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
1100 1101 1102 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 1100 def total_matched_rows @total_matched_rows end |
#totals ⇒ Google::Apis::AdsenseV2::Row
Row representation.
Corresponds to the JSON property totals
1105 1106 1107 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 1105 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
1111 1112 1113 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 1111 def warnings @warnings end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 1118 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 |