Class: Google::Apis::RealtimebiddingV1::VideoContent

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

Overview

Video content for a creative.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VideoContent

Returns a new instance of VideoContent.



2258
2259
2260
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 2258

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

Instance Attribute Details

#video_metadataGoogle::Apis::RealtimebiddingV1::VideoMetadata

Video metadata for a creative. Corresponds to the JSON property videoMetadata



2244
2245
2246
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 2244

def 
  @video_metadata
end

#video_urlString

The URL to fetch a video ad. The URL should return an XML response that conforms to the VAST 2.0, 3.0 or 4.x standard. Corresponds to the JSON property videoUrl

Returns:

  • (String)


2250
2251
2252
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 2250

def video_url
  @video_url
end

#video_vast_xmlString

The contents of a VAST document for a video ad. This document should conform to the VAST 2.0, 3.0, or 4.x standard. Corresponds to the JSON property videoVastXml

Returns:

  • (String)


2256
2257
2258
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 2256

def video_vast_xml
  @video_vast_xml
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2263
2264
2265
2266
2267
# File 'lib/google/apis/realtimebidding_v1/classes.rb', line 2263

def update!(**args)
  @video_metadata = args[:video_metadata] if args.key?(:video_metadata)
  @video_url = args[:video_url] if args.key?(:video_url)
  @video_vast_xml = args[:video_vast_xml] if args.key?(:video_vast_xml)
end