Class: Google::Apis::AdmobV1beta::PublisherAccount
- Inherits:
-
Object
- Object
- Google::Apis::AdmobV1beta::PublisherAccount
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/admob_v1beta/classes.rb,
generated/google/apis/admob_v1beta/representations.rb,
generated/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
-
#currency_code ⇒ String
Currency code of the earning-related metrics, which is the 3-letter code defined in ISO 4217.
-
#name ⇒ String
Resource name of this account.
-
#publisher_id ⇒ String
The unique ID by which this publisher account can be identified in the API requests (for example, pub-1234567890).
-
#reporting_time_zone ⇒ String
The time zone that is used in reports that are generated for this account.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PublisherAccount
constructor
A new instance of PublisherAccount.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PublisherAccount
Returns a new instance of PublisherAccount.
830 831 832 |
# File 'generated/google/apis/admob_v1beta/classes.rb', line 830 def initialize(**args) update!(**args) end |
Instance Attribute Details
#currency_code ⇒ String
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
810 811 812 |
# File 'generated/google/apis/admob_v1beta/classes.rb', line 810 def currency_code @currency_code end |
#name ⇒ String
Resource name of this account. Format is accounts/publisher_id
.
Corresponds to the JSON property name
815 816 817 |
# File 'generated/google/apis/admob_v1beta/classes.rb', line 815 def name @name end |
#publisher_id ⇒ String
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
821 822 823 |
# File 'generated/google/apis/admob_v1beta/classes.rb', line 821 def publisher_id @publisher_id end |
#reporting_time_zone ⇒ String
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
828 829 830 |
# File 'generated/google/apis/admob_v1beta/classes.rb', line 828 def reporting_time_zone @reporting_time_zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
835 836 837 838 839 840 |
# File 'generated/google/apis/admob_v1beta/classes.rb', line 835 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 |