Class: Google::Apis::AdmobV1beta::PublisherAccount

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

Overview

A publisher account contains information relevant to the use of this API, such as the time zone used for the reports.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PublisherAccount

Returns a new instance of PublisherAccount.



1620
1621
1622
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1620

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. Corresponds to the JSON property currencyCode

Returns:

  • (String)


1600
1601
1602
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1600

def currency_code
  @currency_code
end

#nameString

Resource name of this account. Format is accounts/publisher_id. Corresponds to the JSON property name

Returns:

  • (String)


1605
1606
1607
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1605

def name
  @name
end

#publisher_idString

The unique ID by which this publisher account can be identified in the API requests (for example, pub-1234567890). Corresponds to the JSON property publisherId

Returns:

  • (String)


1611
1612
1613
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1611

def publisher_id
  @publisher_id
end

#reporting_time_zoneString

The time zone that is used in reports that are generated for this account. 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)


1618
1619
1620
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1618

def reporting_time_zone
  @reporting_time_zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1625
1626
1627
1628
1629
1630
# File 'lib/google/apis/admob_v1beta/classes.rb', line 1625

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