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.



42514
42515
42516
# File 'lib/google/apis/searchads360_v23/classes.rb', line 42514

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

Instance Attribute Details

#call_to_actionString

Call to action type. Corresponds to the JSON property callToAction

Returns:

  • (String)


42482
42483
42484
# File 'lib/google/apis/searchads360_v23/classes.rb', line 42482

def call_to_action
  @call_to_action
end

#final_urlString

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

Returns:

  • (String)


42487
42488
42489
# File 'lib/google/apis/searchads360_v23/classes.rb', line 42487

def final_url
  @final_url
end

#hotel_nameString

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

Returns:

  • (String)


42492
42493
42494
# File 'lib/google/apis/searchads360_v23/classes.rb', line 42492

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



42497
42498
42499
# File 'lib/google/apis/searchads360_v23/classes.rb', line 42497

def image_assets
  @image_assets
end

#place_idString

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

Returns:

  • (String)


42502
42503
42504
# File 'lib/google/apis/searchads360_v23/classes.rb', line 42502

def place_id
  @place_id
end

#statusString

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

Returns:

  • (String)


42507
42508
42509
# File 'lib/google/apis/searchads360_v23/classes.rb', line 42507

def status
  @status
end

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

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



42512
42513
42514
# File 'lib/google/apis/searchads360_v23/classes.rb', line 42512

def text_assets
  @text_assets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



42519
42520
42521
42522
42523
42524
42525
42526
42527
# File 'lib/google/apis/searchads360_v23/classes.rb', line 42519

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