Class: Google::Apis::RealtimebiddingV1::VideoMetadata
- Inherits:
-
Object
- Object
- Google::Apis::RealtimebiddingV1::VideoMetadata
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/realtimebidding_v1/classes.rb,
generated/google/apis/realtimebidding_v1/representations.rb,
generated/google/apis/realtimebidding_v1/representations.rb
Overview
Video metadata for a creative.
Instance Attribute Summary collapse
-
#duration ⇒ String
The duration of the ad.
-
#is_valid_vast ⇒ Boolean
(also: #is_valid_vast?)
Is this a valid VAST ad? Can be used to filter the response of the creatives.
-
#is_vpaid ⇒ Boolean
(also: #is_vpaid?)
Is this a VPAID ad? Can be used to filter the response of the creatives.list method.
-
#media_files ⇒ Array<Google::Apis::RealtimebiddingV1::MediaFile>
The list of all media files declared in the VAST.
-
#skip_offset ⇒ String
The minimum duration that the user has to watch before being able to skip this ad.
-
#vast_version ⇒ String
The maximum VAST version across all wrapped VAST documents.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VideoMetadata
constructor
A new instance of VideoMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VideoMetadata
Returns a new instance of VideoMetadata.
1786 1787 1788 |
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 1786 def initialize(**args) update!(**args) end |
Instance Attribute Details
#duration ⇒ String
The duration of the ad. Can be used to filter the response of the creatives.
list method.
Corresponds to the JSON property duration
1749 1750 1751 |
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 1749 def duration @duration end |
#is_valid_vast ⇒ Boolean Also known as: is_valid_vast?
Is this a valid VAST ad? Can be used to filter the response of the creatives.
list method.
Corresponds to the JSON property isValidVast
1755 1756 1757 |
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 1755 def is_valid_vast @is_valid_vast end |
#is_vpaid ⇒ Boolean Also known as: is_vpaid?
Is this a VPAID ad? Can be used to filter the response of the creatives.list
method.
Corresponds to the JSON property isVpaid
1762 1763 1764 |
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 1762 def is_vpaid @is_vpaid end |
#media_files ⇒ Array<Google::Apis::RealtimebiddingV1::MediaFile>
The list of all media files declared in the VAST. If there are multiple VASTs
in a wrapper chain, this includes the media files from the deepest one in the
chain.
Corresponds to the JSON property mediaFiles
1770 1771 1772 |
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 1770 def media_files @media_files end |
#skip_offset ⇒ String
The minimum duration that the user has to watch before being able to skip this
ad. If the field is not set, the ad is not skippable. If the field is set, the
ad is skippable. Can be used to filter the response of the creatives.list
method.
Corresponds to the JSON property skipOffset
1778 1779 1780 |
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 1778 def skip_offset @skip_offset end |
#vast_version ⇒ String
The maximum VAST version across all wrapped VAST documents. Can be used to
filter the response of the creatives.list method.
Corresponds to the JSON property vastVersion
1784 1785 1786 |
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 1784 def vast_version @vast_version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1791 1792 1793 1794 1795 1796 1797 1798 |
# File 'generated/google/apis/realtimebidding_v1/classes.rb', line 1791 def update!(**args) @duration = args[:duration] if args.key?(:duration) @is_valid_vast = args[:is_valid_vast] if args.key?(:is_valid_vast) @is_vpaid = args[:is_vpaid] if args.key?(:is_vpaid) @media_files = args[:media_files] if args.key?(:media_files) @skip_offset = args[:skip_offset] if args.key?(:skip_offset) @vast_version = args[:vast_version] if args.key?(:vast_version) end |