Class: Google::Apis::DfareportingV4::UserIdentifier

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

Overview

User identifying information. Exactly one type of identifier must be specified.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserIdentifier

Returns a new instance of UserIdentifier.



12833
12834
12835
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12833

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#address_infoGoogle::Apis::DfareportingV4::OfflineUserAddressInfo

Identify a user by name and address. Corresponds to the JSON property addressInfo



12820
12821
12822
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12820

def address_info
  @address_info
end

#hashed_emailString

Hashed email address using SHA-256 hash function after normalization. Corresponds to the JSON property hashedEmail

Returns:

  • (String)


12825
12826
12827
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12825

def hashed_email
  @hashed_email
end

#hashed_phone_numberString

Hashed phone number using SHA-256 hash function after normalization (E164 standard). Corresponds to the JSON property hashedPhoneNumber

Returns:

  • (String)


12831
12832
12833
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12831

def hashed_phone_number
  @hashed_phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12838
12839
12840
12841
12842
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 12838

def update!(**args)
  @address_info = args[:address_info] if args.key?(:address_info)
  @hashed_email = args[:hashed_email] if args.key?(:hashed_email)
  @hashed_phone_number = args[:hashed_phone_number] if args.key?(:hashed_phone_number)
end