Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonWhatsappBusinessMessageInfo

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

Overview

Whatsapp information to use for messaging.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonWhatsappBusinessMessageInfo

Returns a new instance of GoogleAdsSearchads360V23CommonWhatsappBusinessMessageInfo.



13236
13237
13238
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13236

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

Instance Attribute Details

#country_codeString

Required. Two-letter country code of the phone number. Examples: 'US', 'us'. Corresponds to the JSON property countryCode

Returns:

  • (String)


13228
13229
13230
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13228

def country_code
  @country_code
end

#phone_numberString

Required. Whatsapp phone number of the business. Examples: '1234567890', '(123) 456-7890'. Corresponds to the JSON property phoneNumber

Returns:

  • (String)


13234
13235
13236
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13234

def phone_number
  @phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13241
13242
13243
13244
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13241

def update!(**args)
  @country_code = args[:country_code] if args.key?(:country_code)
  @phone_number = args[:phone_number] if args.key?(:phone_number)
end