Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonHotelCalloutAsset
- Inherits:
-
Object
- Object
- Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonHotelCalloutAsset
- 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
-
#language_code ⇒ String
Required.
-
#text ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonHotelCalloutAsset
constructor
A new instance of GoogleAdsSearchads360V23CommonHotelCalloutAsset.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_code ⇒ String
Required. The language of the hotel callout. Represented as BCP 47 language
tag.
Corresponds to the JSON property languageCode
5351 5352 5353 |
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5351 def language_code @language_code end |
#text ⇒ String
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
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 |