Class: Google::Apis::AdmobV1::ReportHeader

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

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

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) ⇒ ReportHeader

Returns a new instance of ReportHeader.


679
680
681
# File 'generated/google/apis/admob_v1/classes.rb', line 679

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

Instance Attribute Details

#date_rangeGoogle::Apis::AdmobV1::DateRange

Specification of a single date range. Both dates are inclusive. Corresponds to the JSON property dateRange


665
666
667
# File 'generated/google/apis/admob_v1/classes.rb', line 665

def date_range
  @date_range
end

#localization_settingsGoogle::Apis::AdmobV1::LocalizationSettings

Localization settings for reports, such as currency and language. It affects how metrics are calculated. Corresponds to the JSON property localizationSettings


671
672
673
# File 'generated/google/apis/admob_v1/classes.rb', line 671

def localization_settings
  @localization_settings
end

#reporting_time_zoneString

The report time zone. The value is a time-zone ID as specified by the CLDR project, for example, "America/Los_Angeles". Corresponds to the JSON property reportingTimeZone

Returns:

  • (String)

677
678
679
# File 'generated/google/apis/admob_v1/classes.rb', line 677

def reporting_time_zone
  @reporting_time_zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


684
685
686
687
688
# File 'generated/google/apis/admob_v1/classes.rb', line 684

def update!(**args)
  @date_range = args[:date_range] if args.key?(:date_range)
  @localization_settings = args[:localization_settings] if args.key?(:localization_settings)
  @reporting_time_zone = args[:reporting_time_zone] if args.key?(:reporting_time_zone)
end