Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonHotelCalloutAsset

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

An asset representing a hotel callout.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonHotelCalloutAsset

Returns a new instance of GoogleAdsSearchads360V23CommonHotelCalloutAsset.



5359
5360
5361
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5359

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

Instance Attribute Details

#language_codeString

Required. The language of the hotel callout. Represented as BCP 47 language tag. Corresponds to the JSON property languageCode

Returns:

  • (String)


5351
5352
5353
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5351

def language_code
  @language_code
end

#textString

Required. The text of the hotel callout asset. The length of this string should be between 1 and 25, inclusive. Corresponds to the JSON property text

Returns:

  • (String)


5357
5358
5359
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5357

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5364
5365
5366
5367
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5364

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