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.



42570
42571
42572
# File 'lib/google/apis/searchads360_v23/classes.rb', line 42570

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)


42563
42564
42565
# File 'lib/google/apis/searchads360_v23/classes.rb', line 42563

def asset_field_type
  @asset_field_type
end

#textString

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

Returns:

  • (String)


42568
42569
42570
# File 'lib/google/apis/searchads360_v23/classes.rb', line 42568

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



42575
42576
42577
42578
# File 'lib/google/apis/searchads360_v23/classes.rb', line 42575

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