# Video Stitcher V1 API - Class Google::Cloud::Video::Stitcher::V1::VodSessionAd (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.10.0 0.9.0 0.8.2 0.7.0 0.6.2 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Video Stitcher V1 API class Google::Cloud::Video::Stitcher::V1::VodSessionAd.

Metadata for an inserted ad in a VOD session.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #activity_events

    def activity_events() -> ::Array<::Google::Cloud::Video::Stitcher::V1::Event>

**Returns**

- (::Array\<[::Google::Cloud::Video::Stitcher::V1::Event](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-stitcher-v1/latest/Google-Cloud-Video-Stitcher-V1-Event)\>) --- The list of progress tracking events for the ad break. These can be of the following IAB types: `MUTE`, `UNMUTE`, `PAUSE`, `CLICK`, `CLICK_THROUGH`, `REWIND`, `RESUME`, `ERROR`, `FULLSCREEN`, `EXIT_FULLSCREEN`, `EXPAND`, `COLLAPSE`, `ACCEPT_INVITATION_LINEAR`, `CLOSE_LINEAR`, `SKIP`.

### #activity_events=

    def activity_events=(value) -> ::Array<::Google::Cloud::Video::Stitcher::V1::Event>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Video::Stitcher::V1::Event](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-stitcher-v1/latest/Google-Cloud-Video-Stitcher-V1-Event)\>) --- The list of progress tracking events for the ad break. These can be of the following IAB types: `MUTE`, `UNMUTE`, `PAUSE`, `CLICK`, `CLICK_THROUGH`, `REWIND`, `RESUME`, `ERROR`, `FULLSCREEN`, `EXIT_FULLSCREEN`, `EXPAND`, `COLLAPSE`, `ACCEPT_INVITATION_LINEAR`, `CLOSE_LINEAR`, `SKIP`.
**Returns**

- (::Array\<[::Google::Cloud::Video::Stitcher::V1::Event](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-stitcher-v1/latest/Google-Cloud-Video-Stitcher-V1-Event)\>) --- The list of progress tracking events for the ad break. These can be of the following IAB types: `MUTE`, `UNMUTE`, `PAUSE`, `CLICK`, `CLICK_THROUGH`, `REWIND`, `RESUME`, `ERROR`, `FULLSCREEN`, `EXIT_FULLSCREEN`, `EXPAND`, `COLLAPSE`, `ACCEPT_INVITATION_LINEAR`, `CLOSE_LINEAR`, `SKIP`.

### #companion_ads

    def companion_ads() -> ::Google::Cloud::Video::Stitcher::V1::CompanionAds

**Returns**

- ([::Google::Cloud::Video::Stitcher::V1::CompanionAds](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-stitcher-v1/latest/Google-Cloud-Video-Stitcher-V1-CompanionAds)) --- Metadata of companion ads associated with the ad.

### #companion_ads=

    def companion_ads=(value) -> ::Google::Cloud::Video::Stitcher::V1::CompanionAds

**Parameter**

- **value** ([::Google::Cloud::Video::Stitcher::V1::CompanionAds](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-stitcher-v1/latest/Google-Cloud-Video-Stitcher-V1-CompanionAds)) --- Metadata of companion ads associated with the ad.
**Returns**

- ([::Google::Cloud::Video::Stitcher::V1::CompanionAds](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-stitcher-v1/latest/Google-Cloud-Video-Stitcher-V1-CompanionAds)) --- Metadata of companion ads associated with the ad.

### #duration

    def duration() -> ::Google::Protobuf::Duration

**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-stitcher-v1/latest/Google-Protobuf-Duration)) --- Duration in seconds of the ad.

### #duration=

    def duration=(value) -> ::Google::Protobuf::Duration

**Parameter**

- **value** ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-stitcher-v1/latest/Google-Protobuf-Duration)) --- Duration in seconds of the ad.
**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-stitcher-v1/latest/Google-Protobuf-Duration)) --- Duration in seconds of the ad.