Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ServicesSuggestTravelAssetsRequest

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

Request message for TravelAssetSuggestionService.SuggestTravelAssets.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23ServicesSuggestTravelAssetsRequest

Returns a new instance of GoogleAdsSearchads360V23ServicesSuggestTravelAssetsRequest.



54743
54744
54745
# File 'lib/google/apis/searchads360_v23/classes.rb', line 54743

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

Instance Attribute Details

#language_optionString

Required. The language specifications in BCP 47 format (for example, en-US, zh- CN, etc.) for the asset suggestions. Text will be in this language. Usually matches one of the campaign target languages. Corresponds to the JSON property languageOption

Returns:

  • (String)


54735
54736
54737
# File 'lib/google/apis/searchads360_v23/classes.rb', line 54735

def language_option
  @language_option
end

#place_idsArray<String>

The Google Maps Place IDs of hotels for which assets are requested. See https:/ /developers.google.com/places/web-service/place-id for more information. Corresponds to the JSON property placeIds

Returns:

  • (Array<String>)


54741
54742
54743
# File 'lib/google/apis/searchads360_v23/classes.rb', line 54741

def place_ids
  @place_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



54748
54749
54750
54751
# File 'lib/google/apis/searchads360_v23/classes.rb', line 54748

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