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

Details for an in-stream ad.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InStreamAd

Returns a new instance of InStreamAd.



5965
5966
5967
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 5965

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

Instance Attribute Details

#common_in_stream_attributeGoogle::Apis::DisplayvideoV2::CommonInStreamAttribute

Common attributes for in-stream, non-skippable and bumper ads. Corresponds to the JSON property commonInStreamAttribute



5958
5959
5960
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 5958

def common_in_stream_attribute
  @common_in_stream_attribute
end

#custom_parametersHash<String,String>

The custom parameters and accompanying values to add to the tracking URL. Corresponds to the JSON property customParameters

Returns:

  • (Hash<String,String>)


5963
5964
5965
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 5963

def custom_parameters
  @custom_parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5970
5971
5972
5973
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 5970

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