Initializes a live stream request instance with the given assetKey. Uses the given ad display
container to display the stream. Uses the picture in picture proxy to track PIP events.
Use initWithAssetKey:networkCode:adDisplayContainer:videoDisplay:pictureInPictureProxy:userContext: instead.
Initializes a live stream request instance with the given assetKey. Uses the given ad display
container to display the stream. Uses the picture in picture proxy to track PIP events.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[[["\u003cp\u003e\u003ccode\u003eIMALiveStreamRequest\u003c/code\u003e is a data object that encapsulates the information needed to request and play a live stream.\u003c/p\u003e\n"],["\u003cp\u003eIt uses an \u003ccode\u003eassetKey\u003c/code\u003e to identify the stream, which can be found in the DFP UI.\u003c/p\u003e\n"],["\u003cp\u003eYou can initialize a request with an \u003ccode\u003eassetKey\u003c/code\u003e, \u003ccode\u003eadDisplayContainer\u003c/code\u003e, \u003ccode\u003evideoDisplay\u003c/code\u003e, and optionally, \u003ccode\u003euserContext\u003c/code\u003e and \u003ccode\u003epictureInPictureProxy\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eadDisplayContainer\u003c/code\u003e is used to render ad UI, while the \u003ccode\u003evideoDisplay\u003c/code\u003e handles stream playback.\u003c/p\u003e\n"],["\u003cp\u003eThe optional \u003ccode\u003epictureInPictureProxy\u003c/code\u003e enables tracking of Picture-in-Picture events.\u003c/p\u003e\n"]]],[],null,["# GoogleInteractiveMediaAds Framework Reference\n\nIMALiveStreamRequest\n====================\n\n @interface IMALiveStreamRequest : ../Classes/IMAStreamRequest.html\n\nData object describing a live stream request.\n- `\n ``\n ``\n `\n\n ### [assetKey](#/c:objc(cs)IMALiveStreamRequest(py)assetKey)\n\n `\n ` \n This is used to determine which stream should be played.\n The live stream request asset key is an identifier which can be\n [found in the DFP UI](https://goo.gl/wjL9DI).\n\n @type {!string} \n\n #### Declaration\n\n Swift \n\n var assetKey: String { get }\n\n Objective-C \n\n @property (nonatomic, copy, readonly) NSString *_Nonnull assetKey;\n\n- `\n ``\n ``\n `\n\n ### [-initWithAssetKey:networkCode:adDisplayContainer:videoDisplay:userContext:](#/c:objc(cs)IMALiveStreamRequest(im)initWithAssetKey:networkCode:adDisplayContainer:videoDisplay:userContext:)\n\n `\n ` \n Initializes a live stream request instance with the given assetKey. Uses the given ad display\n container to display the stream. \n\n #### Declaration\n\n Swift \n\n init(assetKey: String, networkCode: String?, adDisplayContainer: ../Classes/IMAAdDisplayContainer.html, videoDisplay: any ../Protocols/IMAVideoDisplay.html, userContext: Any?)\n\n Objective-C \n\n - (nonnull instancetype)\n initWithAssetKey:(nonnull NSString *)assetKey\n networkCode:(nullable NSString *)networkCode\n adDisplayContainer:(nonnull ../Classes/IMAAdDisplayContainer.html *)adDisplayContainer\n videoDisplay:(nonnull id\u003c../Protocols/IMAVideoDisplay.html\u003e)videoDisplay\n userContext:(nullable id)userContext;\n\n #### Parameters\n\n |----------------------------|-------------------------------------------------------------|\n | ` `*assetKey*` ` | the stream assetKey |\n | ` `*networkCode*` ` | the network code for the stream (optional but recommended). |\n | ` `*adDisplayContainer*` ` | the IMAAdDisplayContainer for rendering the ad UI |\n | ` `*videoDisplay*` ` | the IMAVideoDisplay for playing the stream |\n | ` `*userContext*` ` | The user context for tracking requests (optional) |\n\n #### Return Value\n\n the IMALiveStreamRequest instance\n- `\n ``\n ``\n `\n\n ### [-initWithAssetKey:networkCode:adDisplayContainer:videoDisplay:pictureInPictureProxy:userContext:](#/c:objc(cs)IMALiveStreamRequest(im)initWithAssetKey:networkCode:adDisplayContainer:videoDisplay:pictureInPictureProxy:userContext:)\n\n `\n ` \n Initializes a live stream request instance with the given assetKey. Uses the given ad display\n container to display the stream. Uses the picture in picture proxy to track PIP events. \n\n #### Declaration\n\n Swift \n\n init(assetKey: String, networkCode: String?, adDisplayContainer: ../Classes/IMAAdDisplayContainer.html, videoDisplay: any ../Protocols/IMAVideoDisplay.html, pictureInPictureProxy: ../Classes/IMAPictureInPictureProxy.html?, userContext: Any?)\n\n Objective-C \n\n - (nonnull instancetype)\n initWithAssetKey:(nonnull NSString *)assetKey\n networkCode:(nullable NSString *)networkCode\n adDisplayContainer:(nonnull ../Classes/IMAAdDisplayContainer.html *)adDisplayContainer\n videoDisplay:(nonnull id\u003c../Protocols/IMAVideoDisplay.html\u003e)videoDisplay\n pictureInPictureProxy:\n (nullable ../Classes/IMAPictureInPictureProxy.html *)pictureInPictureProxy\n userContext:(nullable id)userContext;\n\n #### Parameters\n\n |-------------------------------|-------------------------------------------------------------|\n | ` `*assetKey*` ` | the stream assetKey |\n | ` `*networkCode*` ` | the network code for the stream (optional but recommended). |\n | ` `*adDisplayContainer*` ` | the IMAAdDisplayContainer for rendering the ad UI |\n | ` `*videoDisplay*` ` | the IMAVideoDisplay for playing the stream |\n | ` `*pictureInPictureProxy*` ` | the IMAPictureInPictureProxy for tracking PIP events |\n | ` `*userContext*` ` | The user context for tracking requests (optional) |\n\n #### Return Value\n\n the IMALiveStreamRequest instance\n- `\n ``\n ``\n `\n\n ### [-initWithAssetKey:adDisplayContainer:videoDisplay:userContext:](#/c:objc(cs)IMALiveStreamRequest(im)initWithAssetKey:adDisplayContainer:videoDisplay:userContext:)\n\n `\n ` \n Deprecated\n\n Use initWithAssetKey:networkCode:adDisplayContainer:videoDisplay:userContext: instead. \n Initializes a live stream request instance with the given assetKey. Uses the given ad display\n container to display the stream. \n\n #### Declaration\n\n Swift \n\n init(assetKey: String, adDisplayContainer: ../Classes/IMAAdDisplayContainer.html, videoDisplay: any ../Protocols/IMAVideoDisplay.html, userContext: Any?)\n\n Objective-C \n\n - (nonnull instancetype)\n initWithAssetKey:(nonnull NSString *)assetKey\n adDisplayContainer:(nonnull ../Classes/IMAAdDisplayContainer.html *)adDisplayContainer\n videoDisplay:(nonnull id\u003c../Protocols/IMAVideoDisplay.html\u003e)videoDisplay\n userContext:(nullable id)userContext;\n\n #### Parameters\n\n |----------------------------|---------------------------------------------------|\n | ` `*assetKey*` ` | the stream assetKey |\n | ` `*adDisplayContainer*` ` | the IMAAdDisplayContainer for rendering the ad UI |\n | ` `*videoDisplay*` ` | the IMAVideoDisplay for playing the stream |\n | ` `*userContext*` ` | The user context for tracking requests (optional) |\n\n #### Return Value\n\n the IMALiveStreamRequest instance\n- `\n ``\n ``\n `\n\n ### [-initWithAssetKey:adDisplayContainer:videoDisplay:pictureInPictureProxy:userContext:](#/c:objc(cs)IMALiveStreamRequest(im)initWithAssetKey:adDisplayContainer:videoDisplay:pictureInPictureProxy:userContext:)\n\n `\n ` \n Deprecated\n\n Use initWithAssetKey:networkCode:adDisplayContainer:videoDisplay:pictureInPictureProxy:userContext: instead. \n Initializes a live stream request instance with the given assetKey. Uses the given ad display\n container to display the stream. Uses the picture in picture proxy to track PIP events. \n\n #### Declaration\n\n Swift \n\n init(assetKey: String, adDisplayContainer: ../Classes/IMAAdDisplayContainer.html, videoDisplay: any ../Protocols/IMAVideoDisplay.html, pictureInPictureProxy: ../Classes/IMAPictureInPictureProxy.html?, userContext: Any?)\n\n Objective-C \n\n - (nonnull instancetype)\n initWithAssetKey:(nonnull NSString *)assetKey\n adDisplayContainer:(nonnull ../Classes/IMAAdDisplayContainer.html *)adDisplayContainer\n videoDisplay:(nonnull id\u003c../Protocols/IMAVideoDisplay.html\u003e)videoDisplay\n pictureInPictureProxy:\n (nullable ../Classes/IMAPictureInPictureProxy.html *)pictureInPictureProxy\n userContext:(nullable id)userContext;\n\n #### Parameters\n\n |-------------------------------|------------------------------------------------------|\n | ` `*assetKey*` ` | the stream assetKey |\n | ` `*adDisplayContainer*` ` | the IMAAdDisplayContainer for rendering the ad UI |\n | ` `*videoDisplay*` ` | the IMAVideoDisplay for playing the stream |\n | ` `*pictureInPictureProxy*` ` | the IMAPictureInPictureProxy for tracking PIP events |\n | ` `*userContext*` ` | The user context for tracking requests (optional) |\n\n #### Return Value\n\n the IMALiveStreamRequest instance"]]