Google Ads Ad Manager V1 Client - Class VideoSettings (0.14.1)

Reference documentation and code samples for the Google Ads Ad Manager V1 Client class VideoSettings.

Information about the video settings of an encoding profile.

Generated from protobuf message google.ads.admanager.v1.VideoSettings

Namespace

Google \ Ads \ AdManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ codec string

Required. The RFC6381 codec string of the video.

↳ bitrate int|string

Required. The bitrate of the video, in bits per second. This value must be between 32kbps and 250 Mbps.

↳ frames_per_second float

Required. The frames per second of the video. This value will be truncated to three decimal places.

↳ resolution Size

Required. The resolution of the video, in pixels.

getCodec

Required. The RFC6381 codec string of the video.

Returns
Type Description
string

hasCodec

clearCodec

setCodec

Required. The RFC6381 codec string of the video.

Parameter
Name Description
var string
Returns
Type Description
$this

getBitrate

Required. The bitrate of the video, in bits per second. This value must be between 32kbps and 250 Mbps.

Returns
Type Description
int|string

hasBitrate

clearBitrate

setBitrate

Required. The bitrate of the video, in bits per second. This value must be between 32kbps and 250 Mbps.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getFramesPerSecond

Required. The frames per second of the video. This value will be truncated to three decimal places.

Returns
Type Description
float

hasFramesPerSecond

clearFramesPerSecond

setFramesPerSecond

Required. The frames per second of the video. This value will be truncated to three decimal places.

Parameter
Name Description
var float
Returns
Type Description
$this

getResolution

Required. The resolution of the video, in pixels.

Returns
Type Description
Size|null

hasResolution

clearResolution

setResolution

Required. The resolution of the video, in pixels.

Parameter
Name Description
var Size
Returns
Type Description
$this