Class: Google::Apis::AdsenseplatformV1::Account

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/adsenseplatform_v1/classes.rb,
lib/google/apis/adsenseplatform_v1/representations.rb,
lib/google/apis/adsenseplatform_v1/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.



76
77
78
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 76

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/adsenseplatform_v1/classes.rb', line 32

def create_time
  @create_time
end

#creation_request_idString

Required. An opaque token that uniquely identifies the account among all the platform's accounts. This string may contain at most 64 non-whitespace ASCII characters, but otherwise has no predefined structure. However, it is expected to be a platform-specific identifier for the user creating the account, so that only a single account can be created for any given user. This field must not contain any information that is recognizable as personally identifiable information. e.g. it should not be an email address or login name. Once an account has been created, a second attempt to create an account using the same creation_request_id will result in an ALREADY_EXISTS error. Corresponds to the JSON property creationRequestId

Returns:

  • (String)


45
46
47
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 45

def creation_request_id
  @creation_request_id
end

#display_nameString

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

Returns:

  • (String)


50
51
52
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 50

def display_name
  @display_name
end

#nameString

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

Returns:

  • (String)


56
57
58
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 56

def name
  @name
end

#region_codeString

Required. Input only. CLDR region code of the country/region of the address. Set this to country code of the child account if known, otherwise to your own country code. Corresponds to the JSON property regionCode

Returns:

  • (String)


63
64
65
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 63

def region_code
  @region_code
end

#stateString

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

Returns:

  • (String)


68
69
70
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 68

def state
  @state
end

#time_zoneGoogle::Apis::AdsenseplatformV1::TimeZone

Represents a time zone from the IANA Time Zone Database. Corresponds to the JSON property timeZone



74
75
76
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 74

def time_zone
  @time_zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



81
82
83
84
85
86
87
88
89
# File 'lib/google/apis/adsenseplatform_v1/classes.rb', line 81

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @creation_request_id = args[:creation_request_id] if args.key?(:creation_request_id)
  @display_name = args[:display_name] if args.key?(:display_name)
  @name = args[:name] if args.key?(:name)
  @region_code = args[:region_code] if args.key?(:region_code)
  @state = args[:state] if args.key?(:state)
  @time_zone = args[:time_zone] if args.key?(:time_zone)
end