# Video Stitcher V1 API - Class Google::Cloud::Video::Stitcher::V1::CompanionAds (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::CompanionAds.

Metadata for companion ads.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #companions

    def companions() -> ::Array<::Google::Cloud::Video::Stitcher::V1::Companion>

**Returns**

- (::Array\<[::Google::Cloud::Video::Stitcher::V1::Companion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-stitcher-v1/latest/Google-Cloud-Video-Stitcher-V1-Companion)\>) --- List of companion ads.

### #companions=

    def companions=(value) -> ::Array<::Google::Cloud::Video::Stitcher::V1::Companion>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Video::Stitcher::V1::Companion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-stitcher-v1/latest/Google-Cloud-Video-Stitcher-V1-Companion)\>) --- List of companion ads.
**Returns**

- (::Array\<[::Google::Cloud::Video::Stitcher::V1::Companion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-stitcher-v1/latest/Google-Cloud-Video-Stitcher-V1-Companion)\>) --- List of companion ads.

### #display_requirement

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

**Returns**

- ([::Google::Cloud::Video::Stitcher::V1::CompanionAds::DisplayRequirement](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-stitcher-v1/latest/Google-Cloud-Video-Stitcher-V1-CompanionAds-DisplayRequirement)) --- Indicates how many of the companions should be displayed with the ad.

### #display_requirement=

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

**Parameter**

- **value** ([::Google::Cloud::Video::Stitcher::V1::CompanionAds::DisplayRequirement](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-stitcher-v1/latest/Google-Cloud-Video-Stitcher-V1-CompanionAds-DisplayRequirement)) --- Indicates how many of the companions should be displayed with the ad.
**Returns**

- ([::Google::Cloud::Video::Stitcher::V1::CompanionAds::DisplayRequirement](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-video-stitcher-v1/latest/Google-Cloud-Video-Stitcher-V1-CompanionAds-DisplayRequirement)) --- Indicates how many of the companions should be displayed with the ad.