Class: Google::Apis::AdmobV1::LocalizationSettings

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

Localization settings for reports, such as currency and language. It affects how metrics are calculated.

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

Returns a new instance of LocalizationSettings.



383
384
385
# File 'generated/google/apis/admob_v1/classes.rb', line 383

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

Instance Attribute Details

#currency_codeString

Currency code of the earning related metrics, which is the 3-letter code defined in ISO 4217. The daily average rate is used for the currency conversion. Defaults to the account currency code if unspecified. Corresponds to the JSON property currencyCode

Returns:

  • (String)


374
375
376
# File 'generated/google/apis/admob_v1/classes.rb', line 374

def currency_code
  @currency_code
end

#language_codeString

Language used for any localized text, such as some dimension value display labels. The language tag defined in the IETF BCP47. Defaults to 'en-US' if unspecified. Corresponds to the JSON property languageCode

Returns:

  • (String)


381
382
383
# File 'generated/google/apis/admob_v1/classes.rb', line 381

def language_code
  @language_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



388
389
390
391
# File 'generated/google/apis/admob_v1/classes.rb', line 388

def update!(**args)
  @currency_code = args[:currency_code] if args.key?(:currency_code)
  @language_code = args[:language_code] if args.key?(:language_code)
end