Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ResourcesSmartCampaignSettingPhoneNumber

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

Phone number and country code in smart campaign settings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23ResourcesSmartCampaignSettingPhoneNumber

Returns a new instance of GoogleAdsSearchads360V23ResourcesSmartCampaignSettingPhoneNumber.



19199
19200
19201
# File 'lib/google/apis/searchads360_v23/classes.rb', line 19199

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

Instance Attribute Details

#country_codeString

Upper-case, two-letter country code as defined by ISO-3166. Corresponds to the JSON property countryCode

Returns:

  • (String)


19192
19193
19194
# File 'lib/google/apis/searchads360_v23/classes.rb', line 19192

def country_code
  @country_code
end

#phone_numberString

Phone number of the smart campaign. Corresponds to the JSON property phoneNumber

Returns:

  • (String)


19197
19198
19199
# File 'lib/google/apis/searchads360_v23/classes.rb', line 19197

def phone_number
  @phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19204
19205
19206
19207
# File 'lib/google/apis/searchads360_v23/classes.rb', line 19204

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