Class: Google::Apis::DisplayvideoV2::ContactInfo
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV2::ContactInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/displayvideo_v2/classes.rb,
lib/google/apis/displayvideo_v2/representations.rb,
lib/google/apis/displayvideo_v2/representations.rb
Overview
Contact information defining a Customer Match audience member.
Instance Attribute Summary collapse
-
#country_code ⇒ String
Country code of the member.
-
#hashed_emails ⇒ Array<String>
A list of SHA256 hashed email of the member.
-
#hashed_first_name ⇒ String
SHA256 hashed first name of the member.
-
#hashed_last_name ⇒ String
SHA256 hashed last name of the member.
-
#hashed_phone_numbers ⇒ Array<String>
A list of SHA256 hashed phone numbers of the member.
-
#zip_codes ⇒ Array<String>
A list of zip codes of the member.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ContactInfo
constructor
A new instance of ContactInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ContactInfo
Returns a new instance of ContactInfo.
3166 3167 3168 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 3166 def initialize(**args) update!(**args) end |
Instance Attribute Details
#country_code ⇒ String
Country code of the member. Must also be set with the following fields: *
hashed_first_name * hashed_last_name * zip_codes
Corresponds to the JSON property countryCode
3131 3132 3133 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 3131 def country_code @country_code end |
#hashed_emails ⇒ Array<String>
A list of SHA256 hashed email of the member. Before hashing, remove all
whitespace and make sure the string is all lowercase.
Corresponds to the JSON property hashedEmails
3137 3138 3139 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 3137 def hashed_emails @hashed_emails end |
#hashed_first_name ⇒ String
SHA256 hashed first name of the member. Before hashing, remove all whitespace
and make sure the string is all lowercase. Must also be set with the following
fields: * country_code * hashed_last_name * zip_codes
Corresponds to the JSON property hashedFirstName
3144 3145 3146 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 3144 def hashed_first_name @hashed_first_name end |
#hashed_last_name ⇒ String
SHA256 hashed last name of the member. Before hashing, remove all whitespace
and make sure the string is all lowercase. Must also be set with the following
fields: * country_code * hashed_first_name * zip_codes
Corresponds to the JSON property hashedLastName
3151 3152 3153 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 3151 def hashed_last_name @hashed_last_name end |
#hashed_phone_numbers ⇒ Array<String>
A list of SHA256 hashed phone numbers of the member. Before hashing, all phone
numbers must be formatted using the E.164 format and include the country calling code.
Corresponds to the JSON property hashedPhoneNumbers
3158 3159 3160 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 3158 def hashed_phone_numbers @hashed_phone_numbers end |
#zip_codes ⇒ Array<String>
A list of zip codes of the member. Must also be set with the following fields:
- country_code * hashed_first_name * hashed_last_name
Corresponds to the JSON property
zipCodes
3164 3165 3166 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 3164 def zip_codes @zip_codes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3171 3172 3173 3174 3175 3176 3177 3178 |
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 3171 def update!(**args) @country_code = args[:country_code] if args.key?(:country_code) @hashed_emails = args[:hashed_emails] if args.key?(:hashed_emails) @hashed_first_name = args[:hashed_first_name] if args.key?(:hashed_first_name) @hashed_last_name = args[:hashed_last_name] if args.key?(:hashed_last_name) @hashed_phone_numbers = args[:hashed_phone_numbers] if args.key?(:hashed_phone_numbers) @zip_codes = args[:zip_codes] if args.key?(:zip_codes) end |