Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonWhatsappBusinessMessageInfo
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonWhatsappBusinessMessageInfo
- 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
-
#country_code ⇒ String
Required.
-
#phone_number ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonWhatsappBusinessMessageInfo
constructor
A new instance of GoogleAdsSearchads360V23CommonWhatsappBusinessMessageInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonWhatsappBusinessMessageInfo
Returns a new instance of GoogleAdsSearchads360V23CommonWhatsappBusinessMessageInfo.
13110 13111 13112 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13110 def initialize(**args) update!(**args) end |
Instance Attribute Details
#country_code ⇒ String
Required. Two-letter country code of the phone number. Examples: 'US', 'us'.
Corresponds to the JSON property countryCode
13102 13103 13104 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13102 def country_code @country_code end |
#phone_number ⇒ String
Required. Whatsapp phone number of the business. Examples: '1234567890', '(123)
456-7890'.
Corresponds to the JSON property phoneNumber
13108 13109 13110 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13108 def phone_number @phone_number end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13115 13116 13117 13118 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13115 def update!(**args) @country_code = args[:country_code] if args.key?(:country_code) @phone_number = args[:phone_number] if args.key?(:phone_number) end |