Class: Google::Apis::AdmobV1::GenerateNetworkReportResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/admob_v1/classes.rb,
generated/google/apis/admob_v1/representations.rb,
generated/google/apis/admob_v1/representations.rb

Overview

The streaming response for the AdMob Network report where the first response contains the report header, then a stream of row responses, and finally a footer as the last response message. For example: ["header": "dateRange": "startDate":"year": 2018, "month": 9, "day": 1, "endDate":"year": 2018, " month": 9, "day": 1, "localizationSettings": "currencyCode": "USD", " languageCode": "en-US" , "row": "dimensionValues": "DATE":"value": "20180918", "APP": "value": "ca-app-pub-8123415297019784~1001342552", displayLabel: "My app name!" , "metricValues": "ESTIMATED_EARNINGS":" microsValue": 6500000 , "footer":"matchingRowCount": 1]

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GenerateNetworkReportResponse

Returns a new instance of GenerateNetworkReportResponse.


239
240
241
# File 'generated/google/apis/admob_v1/classes.rb', line 239

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

Groups data available after report generation, for example, warnings and row counts. Always sent as the last message in the stream response. Corresponds to the JSON property footer


226
227
228
# File 'generated/google/apis/admob_v1/classes.rb', line 226

def footer
  @footer
end

#headerGoogle::Apis::AdmobV1::ReportHeader

Groups data helps to treat the generated report. Always sent as a first message in the stream response. Corresponds to the JSON property header


232
233
234
# File 'generated/google/apis/admob_v1/classes.rb', line 232

def header
  @header
end

#rowGoogle::Apis::AdmobV1::ReportRow

A row of the returning report. Corresponds to the JSON property row


237
238
239
# File 'generated/google/apis/admob_v1/classes.rb', line 237

def row
  @row
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


244
245
246
247
248
# File 'generated/google/apis/admob_v1/classes.rb', line 244

def update!(**args)
  @footer = args[:footer] if args.key?(:footer)
  @header = args[:header] if args.key?(:header)
  @row = args[:row] if args.key?(:row)
end