Class: Google::Apis::DisplayvideoV2::InStreamAd

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/displayvideo_v2/classes.rb,
lib/google/apis/displayvideo_v2/representations.rb,
lib/google/apis/displayvideo_v2/representations.rb

Overview

Ad details for InStreamAd

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InStreamAd

Returns a new instance of InStreamAd.



6260
6261
6262
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6260

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

Instance Attribute Details

#common_in_stream_attributeGoogle::Apis::DisplayvideoV2::CommonInStreamAttribute

The common attributes for InStreamAd, NonSkippableAd and BumperAd. Corresponds to the JSON property commonInStreamAttribute



6253
6254
6255
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6253

def common_in_stream_attribute
  @common_in_stream_attribute
end

#custom_parametersHash<String,String>

The custom parameters to pass custom values to tracking url template. Corresponds to the JSON property customParameters

Returns:

  • (Hash<String,String>)


6258
6259
6260
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6258

def custom_parameters
  @custom_parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6265
6266
6267
6268
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 6265

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