Google Cloud Video Stitcher V1 Client - Class CompanionAds (0.5.1)

Reference documentation and code samples for the Google Cloud Video Stitcher V1 Client class CompanionAds.

Metadata for companion ads.

Generated from protobuf message google.cloud.video.stitcher.v1.CompanionAds

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ display_requirement int

Indicates how many of the companions should be displayed with the ad.

↳ companions array<Google\Cloud\Video\Stitcher\V1\Companion>

List of companion ads.

getDisplayRequirement

Indicates how many of the companions should be displayed with the ad.

Returns
TypeDescription
int

setDisplayRequirement

Indicates how many of the companions should be displayed with the ad.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getCompanions

List of companion ads.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setCompanions

List of companion ads.

Parameter
NameDescription
var array<Google\Cloud\Video\Stitcher\V1\Companion>
Returns
TypeDescription
$this