Class: Google::Apis::AdsenseV2::Account
- Inherits:
-
Object
- Object
- Google::Apis::AdsenseV2::Account
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/adsense_v2/classes.rb,
lib/google/apis/adsense_v2/representations.rb,
lib/google/apis/adsense_v2/representations.rb
Overview
Representation of an account.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#display_name ⇒ String
Output only.
-
#name ⇒ String
Output only.
-
#pending_tasks ⇒ Array<String>
Output only.
-
#premium ⇒ Boolean
(also: #premium?)
Output only.
-
#state ⇒ String
Output only.
-
#time_zone ⇒ Google::Apis::AdsenseV2::TimeZone
Represents a time zone from the IANA Time Zone Database.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Account
constructor
A new instance of Account.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Account
Returns a new instance of Account.
68 69 70 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 68 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Creation time of the account.
Corresponds to the JSON property createTime
32 33 34 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 32 def create_time @create_time end |
#display_name ⇒ String
Output only. Display name of this account.
Corresponds to the JSON property displayName
37 38 39 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 37 def display_name @display_name end |
#name ⇒ String
Output only. Resource name of the account. Format: accounts/pub-[0-9]+
Corresponds to the JSON property name
42 43 44 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 42 def name @name end |
#pending_tasks ⇒ Array<String>
Output only. Outstanding tasks that need to be completed as part of the sign-
up process for a new account. e.g. "billing-profile-creation", "phone-pin-
verification".
Corresponds to the JSON property pendingTasks
49 50 51 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 49 def pending_tasks @pending_tasks end |
#premium ⇒ Boolean Also known as:
Output only. Whether this account is premium.
Corresponds to the JSON property premium
54 55 56 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 54 def premium @premium end |
#state ⇒ String
Output only. State of the account.
Corresponds to the JSON property state
60 61 62 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 60 def state @state end |
#time_zone ⇒ Google::Apis::AdsenseV2::TimeZone
Represents a time zone from the IANA Time Zone Database.
Corresponds to the JSON property timeZone
66 67 68 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 66 def time_zone @time_zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
73 74 75 76 77 78 79 80 81 |
# File 'lib/google/apis/adsense_v2/classes.rb', line 73 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @display_name = args[:display_name] if args.key?(:display_name) @name = args[:name] if args.key?(:name) @pending_tasks = args[:pending_tasks] if args.key?(:pending_tasks) @premium = args[:premium] if args.key?(:premium) @state = args[:state] if args.key?(:state) @time_zone = args[:time_zone] if args.key?(:time_zone) end |