Class LiveStreamRequest


Extends StreamRequest
A class for specifying properties of the live stream request.
Constructors
constructor
Properties
adTagParameters
You can override a limited set of ad tag parameters on your stream request.
apiKey
The stream request API key.
assetKey
Determines which stream to play.
authToken
The stream request authorization token.
enableNonce
Enables the addition of a nonce to the request.
format
The stream format to request.
networkCode
The stream request network code.
omidAccessModeRules
Settings object for mapping verification vendors to OMID Access Modes.
streamActivityMonitorId
The ID to be used to troubleshoot the stream with the stream activity monitor.

Constructors


constructor

new LiveStreamRequest(): LiveStreamRequest

Properties


adTagParameters

adTagParameters: {
  [key: string]: string;
}
You can override a limited set of ad tag parameters on your stream request. Values added must be strings. For details, see Supply targeting parameters to your stream. You can use the dai-ot and dai-ov parameters for stream variant preference. For details, see Override stream parameters.

apiKey

apiKey: string
The stream request API key. Configure your stream API key in the Google Ad Manager UI. For details, see Authenticate DAI video stream requests. Using the API key authenticates applications that attempt to access the stream.

assetKey

assetKey: string
Determines which stream to play. The live stream request asset key is an identifier you can find in the Ad Manager UI.

authToken

authToken: string
The stream request authorization token. Used in place of the API key for more secure content authorization. You can control individual content streams authorizations based on this token.

enableNonce

enableNonce: boolean
Enables the addition of a nonce to the request. You must set this parameter to transmit monetization signals to Google servers when you request ads server side from a third-party server. Defaults to a false value.

format

format: StreamFormat
The stream format to request. Accepts the following string values:
  • hls (default)
  • dash

networkCode

networkCode: string
The stream request network code. To find the network code, see Find Google Ad Manager account information.

omidAccessModeRules

omidAccessModeRules: {
  [key: string]: OmidAccessMode;
}
Settings object for mapping verification vendors to OMID Access Modes. The keys must be values from the OmidVerificationVendor enum, and the values must be values from the OmidAccessMode enum.

streamActivityMonitorId

streamActivityMonitorId: string
The ID to be used to troubleshoot the stream with the stream activity monitor. Use this ID to find a stream log in the stream activity monitor tool.