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.



13110
13111
13112
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13110

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)


13102
13103
13104
# File 'lib/google/apis/searchads360_v23/classes.rb', line 13102

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)


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