Class: Google::Apis::MybusinessV3::AdWordsLocationExtensions

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

Overview

Additional information that is surfaced in AdWords.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AdWordsLocationExtensions

Returns a new instance of AdWordsLocationExtensions



1063
1064
1065
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1063

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

Instance Attribute Details

#ad_phoneString

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)


1061
1062
1063
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1061

def ad_phone
  @ad_phone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1068
1069
1070
# File 'generated/google/apis/mybusiness_v3/classes.rb', line 1068

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