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.



41877
41878
41879
# File 'lib/google/apis/searchads360_v23/classes.rb', line 41877

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)


41870
41871
41872
# File 'lib/google/apis/searchads360_v23/classes.rb', line 41870

def asset_field_type
  @asset_field_type
end

#textString

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

Returns:

  • (String)


41875
41876
41877
# File 'lib/google/apis/searchads360_v23/classes.rb', line 41875

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



41882
41883
41884
41885
# File 'lib/google/apis/searchads360_v23/classes.rb', line 41882

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