Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonHotelPropertyAsset

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

A hotel property asset.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonHotelPropertyAsset

Returns a new instance of GoogleAdsSearchads360V23CommonHotelPropertyAsset.



5615
5616
5617
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5615

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

Instance Attribute Details

#hotel_addressString

Address of the hotel. Read-only. Corresponds to the JSON property hotelAddress

Returns:

  • (String)


5601
5602
5603
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5601

def hotel_address
  @hotel_address
end

#hotel_nameString

Name of the hotel. Read-only. Corresponds to the JSON property hotelName

Returns:

  • (String)


5606
5607
5608
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5606

def hotel_name
  @hotel_name
end

#place_idString

Place IDs uniquely identify a place in the Google Places database and on Google Maps. See https://developers.google.com/places/web-service/place-id to learn more. Corresponds to the JSON property placeId

Returns:

  • (String)


5613
5614
5615
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5613

def place_id
  @place_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5620
5621
5622
5623
5624
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5620

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