Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23ServicesHotelTextAsset

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 single text asset suggestion for a hotel.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23ServicesHotelTextAsset

Returns a new instance of GoogleAdsSearchads360V23ServicesHotelTextAsset.



42642
42643
42644
# File 'lib/google/apis/searchads360_v23/classes.rb', line 42642

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

Instance Attribute Details

#asset_field_typeString

The text asset type. For example, HEADLINE, DESCRIPTION, etc. Corresponds to the JSON property assetFieldType

Returns:

  • (String)


42635
42636
42637
# File 'lib/google/apis/searchads360_v23/classes.rb', line 42635

def asset_field_type
  @asset_field_type
end

#textString

Asset text in requested language. Corresponds to the JSON property text

Returns:

  • (String)


42640
42641
42642
# File 'lib/google/apis/searchads360_v23/classes.rb', line 42640

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



42647
42648
42649
42650
# File 'lib/google/apis/searchads360_v23/classes.rb', line 42647

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