Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ServicesHotelAssetSuggestion

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

Message containing the asset suggestions for a hotel.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23ServicesHotelAssetSuggestion

Returns a new instance of GoogleAdsSearchads360V23ServicesHotelAssetSuggestion.



41821
41822
41823
# File 'lib/google/apis/searchads360_v23/classes.rb', line 41821

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

Instance Attribute Details

#call_to_actionString

Call to action type. Corresponds to the JSON property callToAction

Returns:

  • (String)


41789
41790
41791
# File 'lib/google/apis/searchads360_v23/classes.rb', line 41789

def call_to_action
  @call_to_action
end

#final_urlString

Suggested final URL for an AssetGroup. Corresponds to the JSON property finalUrl

Returns:

  • (String)


41794
41795
41796
# File 'lib/google/apis/searchads360_v23/classes.rb', line 41794

def final_url
  @final_url
end

#hotel_nameString

Hotel name in requested language. Corresponds to the JSON property hotelName

Returns:

  • (String)


41799
41800
41801
# File 'lib/google/apis/searchads360_v23/classes.rb', line 41799

def hotel_name
  @hotel_name
end

#image_assetsArray<Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ServicesHotelImageAsset>

Image assets such as landscape/portrait/square, etc. Corresponds to the JSON property imageAssets



41804
41805
41806
# File 'lib/google/apis/searchads360_v23/classes.rb', line 41804

def image_assets
  @image_assets
end

#place_idString

Google Places ID of the hotel. Corresponds to the JSON property placeId

Returns:

  • (String)


41809
41810
41811
# File 'lib/google/apis/searchads360_v23/classes.rb', line 41809

def place_id
  @place_id
end

#statusString

The status of the hotel asset suggestion. Corresponds to the JSON property status

Returns:

  • (String)


41814
41815
41816
# File 'lib/google/apis/searchads360_v23/classes.rb', line 41814

def status
  @status
end

#text_assetsArray<Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ServicesHotelTextAsset>

Text assets such as headline, description, etc. Corresponds to the JSON property textAssets



41819
41820
41821
# File 'lib/google/apis/searchads360_v23/classes.rb', line 41819

def text_assets
  @text_assets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



41826
41827
41828
41829
41830
41831
41832
41833
41834
# File 'lib/google/apis/searchads360_v23/classes.rb', line 41826

def update!(**args)
  @call_to_action = args[:call_to_action] if args.key?(:call_to_action)
  @final_url = args[:final_url] if args.key?(:final_url)
  @hotel_name = args[:hotel_name] if args.key?(:hotel_name)
  @image_assets = args[:image_assets] if args.key?(:image_assets)
  @place_id = args[:place_id] if args.key?(:place_id)
  @status = args[:status] if args.key?(:status)
  @text_assets = args[:text_assets] if args.key?(:text_assets)
end