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.



19073
19074
19075
# File 'lib/google/apis/searchads360_v23/classes.rb', line 19073

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)


19066
19067
19068
# File 'lib/google/apis/searchads360_v23/classes.rb', line 19066

def country_code
  @country_code
end

#phone_numberString

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

Returns:

  • (String)


19071
19072
19073
# File 'lib/google/apis/searchads360_v23/classes.rb', line 19071

def phone_number
  @phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19078
19079
19080
19081
# File 'lib/google/apis/searchads360_v23/classes.rb', line 19078

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