Class: Google::Apis::MybusinessbusinessinformationV1::AdWordsLocationExtensions

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

Overview

Additional information that is surfaced in AdWords.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AdWordsLocationExtensions

Returns a new instance of AdWordsLocationExtensions.



35
36
37
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 35

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

Instance Attribute Details

#ad_phoneString

Required. An alternate phone number to display on AdWords location extensions instead of the location's primary phone number. Corresponds to the JSON property adPhone

Returns:

  • (String)


33
34
35
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 33

def ad_phone
  @ad_phone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



40
41
42
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 40

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