Class: Google::Apis::AdsenseV2::Account

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_timeString

Output only. Creation time of the account. Corresponds to the JSON property createTime

Returns:

  • (String)


32
33
34
# File 'lib/google/apis/adsense_v2/classes.rb', line 32

def create_time
  @create_time
end

#display_nameString

Output only. Display name of this account. Corresponds to the JSON property displayName

Returns:

  • (String)


37
38
39
# File 'lib/google/apis/adsense_v2/classes.rb', line 37

def display_name
  @display_name
end

#nameString

Output only. Resource name of the account. Format: accounts/pub-[0-9]+ Corresponds to the JSON property name

Returns:

  • (String)


42
43
44
# File 'lib/google/apis/adsense_v2/classes.rb', line 42

def name
  @name
end

#pending_tasksArray<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

Returns:

  • (Array<String>)


49
50
51
# File 'lib/google/apis/adsense_v2/classes.rb', line 49

def pending_tasks
  @pending_tasks
end

#premiumBoolean Also known as: premium?

Output only. Whether this account is premium. Corresponds to the JSON property premium

Returns:

  • (Boolean)


54
55
56
# File 'lib/google/apis/adsense_v2/classes.rb', line 54

def premium
  @premium
end

#stateString

Output only. State of the account. Corresponds to the JSON property state

Returns:

  • (String)


60
61
62
# File 'lib/google/apis/adsense_v2/classes.rb', line 60

def state
  @state
end

#time_zoneGoogle::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