[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Video Stitcher V1 API - Class Google::Cloud::Video::Stitcher::V1::CompanionAds (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-video-stitcher-v1/latest/Google-Cloud-Video-Stitcher-V1-CompanionAds)\n- [1.2.1](/ruby/docs/reference/google-cloud-video-stitcher-v1/1.2.1/Google-Cloud-Video-Stitcher-V1-CompanionAds)\n- [1.1.0](/ruby/docs/reference/google-cloud-video-stitcher-v1/1.1.0/Google-Cloud-Video-Stitcher-V1-CompanionAds)\n- [1.0.1](/ruby/docs/reference/google-cloud-video-stitcher-v1/1.0.1/Google-Cloud-Video-Stitcher-V1-CompanionAds)\n- [0.10.0](/ruby/docs/reference/google-cloud-video-stitcher-v1/0.10.0/Google-Cloud-Video-Stitcher-V1-CompanionAds)\n- [0.9.0](/ruby/docs/reference/google-cloud-video-stitcher-v1/0.9.0/Google-Cloud-Video-Stitcher-V1-CompanionAds)\n- [0.8.2](/ruby/docs/reference/google-cloud-video-stitcher-v1/0.8.2/Google-Cloud-Video-Stitcher-V1-CompanionAds)\n- [0.7.0](/ruby/docs/reference/google-cloud-video-stitcher-v1/0.7.0/Google-Cloud-Video-Stitcher-V1-CompanionAds)\n- [0.6.2](/ruby/docs/reference/google-cloud-video-stitcher-v1/0.6.2/Google-Cloud-Video-Stitcher-V1-CompanionAds)\n- [0.5.0](/ruby/docs/reference/google-cloud-video-stitcher-v1/0.5.0/Google-Cloud-Video-Stitcher-V1-CompanionAds)\n- [0.4.0](/ruby/docs/reference/google-cloud-video-stitcher-v1/0.4.0/Google-Cloud-Video-Stitcher-V1-CompanionAds)\n- [0.3.0](/ruby/docs/reference/google-cloud-video-stitcher-v1/0.3.0/Google-Cloud-Video-Stitcher-V1-CompanionAds)\n- [0.2.0](/ruby/docs/reference/google-cloud-video-stitcher-v1/0.2.0/Google-Cloud-Video-Stitcher-V1-CompanionAds)\n- [0.1.0](/ruby/docs/reference/google-cloud-video-stitcher-v1/0.1.0/Google-Cloud-Video-Stitcher-V1-CompanionAds) \nReference documentation and code samples for the Video Stitcher V1 API class Google::Cloud::Video::Stitcher::V1::CompanionAds.\n\nMetadata for companion ads. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #companions\n\n def companions() -\u003e ::Array\u003c::Google::Cloud::Video::Stitcher::V1::Companion\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Video::Stitcher::V1::Companion](./Google-Cloud-Video-Stitcher-V1-Companion)\\\u003e) --- List of companion ads.\n\n### #companions=\n\n def companions=(value) -\u003e ::Array\u003c::Google::Cloud::Video::Stitcher::V1::Companion\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::Video::Stitcher::V1::Companion](./Google-Cloud-Video-Stitcher-V1-Companion)\\\u003e) --- List of companion ads. \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Video::Stitcher::V1::Companion](./Google-Cloud-Video-Stitcher-V1-Companion)\\\u003e) --- List of companion ads.\n\n### #display_requirement\n\n def display_requirement() -\u003e ::Google::Cloud::Video::Stitcher::V1::CompanionAds::DisplayRequirement\n\n**Returns**\n\n- ([::Google::Cloud::Video::Stitcher::V1::CompanionAds::DisplayRequirement](./Google-Cloud-Video-Stitcher-V1-CompanionAds-DisplayRequirement)) --- Indicates how many of the companions should be displayed with the ad.\n\n### #display_requirement=\n\n def display_requirement=(value) -\u003e ::Google::Cloud::Video::Stitcher::V1::CompanionAds::DisplayRequirement\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Video::Stitcher::V1::CompanionAds::DisplayRequirement](./Google-Cloud-Video-Stitcher-V1-CompanionAds-DisplayRequirement)) --- Indicates how many of the companions should be displayed with the ad. \n**Returns**\n\n- ([::Google::Cloud::Video::Stitcher::V1::CompanionAds::DisplayRequirement](./Google-Cloud-Video-Stitcher-V1-CompanionAds-DisplayRequirement)) --- Indicates how many of the companions should be displayed with the ad."]]