GoogleInteractiveMediaAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
IMAPodVODStreamRequest
Data object describing a stream request for a third party stitched server-side ad insertion pod
serving VOD stream.
-
Initializes a stream request instance with the given network. Uses the given ad display container
to display the stream.
Declaration
Objective-C
- (nonnull instancetype)
initWithNetworkCode:(nonnull NSString *)networkCode
adDisplayContainer:(nonnull IMAAdDisplayContainer *)adDisplayContainer
videoDisplay:(nonnull id<IMAVideoDisplay>)videoDisplay
userContext:(nullable id)userContext;
Parameters
networkCode
|
The network code for the stream.
|
adDisplayContainer
|
The IMAAdDisplayContainer for rendering the ad UI.
|
videoDisplay
|
The IMAVideoDisplay where the stream will be played.
|
userContext
|
The user context for tracking requests (optional)
|
Return Value
The IMAPodVODStreamRequest instance.
-
Initializes a stream request instance with the given network code. Uses the given ad display
container to display the stream. Uses the picture in picture proxy to track PIP events.
Declaration
Objective-C
- (nonnull instancetype)
initWithNetworkCode:(nonnull NSString *)networkCode
adDisplayContainer:(nonnull IMAAdDisplayContainer *)adDisplayContainer
videoDisplay:(nonnull id<IMAVideoDisplay>)videoDisplay
pictureInPictureProxy:
(nullable IMAPictureInPictureProxy *)pictureInPictureProxy
userContext:(nullable id)userContext;
Parameters
networkCode
|
The network code for the stream.
|
adDisplayContainer
|
The IMAAdDisplayContainer for rendering the ad UI.
|
videoDisplay
|
The IMAVideoDisplay where the stream will be played.
|
pictureInPictureProxy
|
The IMAPictureInPictureProxy for tracking PIP events.
|
userContext
|
The user context for tracking requests (optional)
|
Return Value
The IMAPodVODStreamRequest instance.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[null,null,["Last updated 2025-08-20 UTC."],[[["\u003cp\u003e\u003ccode\u003eIMAPodVODStreamRequest\u003c/code\u003e is a data object used for requesting VOD streams with server-side ad insertion from third-party providers.\u003c/p\u003e\n"],["\u003cp\u003eIt requires a network code, an ad display container for the UI, and a video display for playback.\u003c/p\u003e\n"],["\u003cp\u003eInitialization can optionally include a user context for tracking and a picture-in-picture proxy for PIP events.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003enetworkCode\u003c/code\u003e property provides read-only access to the stream's network code.\u003c/p\u003e\n"]]],["The `IMAPodVODStreamRequest` object manages requests for server-side ad-inserted VOD streams. It initializes with a `networkCode`, `adDisplayContainer` for ad UI, and `videoDisplay` for the stream. Optionally, it accepts a `userContext` for tracking. A second initializer includes a `pictureInPictureProxy` to track picture-in-picture events. These initializers create an `IMAPodVODStreamRequest` instance for handling the stream request.\n"],null,["# GoogleInteractiveMediaAds Framework Reference\n\nIMAPodVODStreamRequest\n======================\n\n @interface IMAPodVODStreamRequest : ../Classes/IMAStreamRequest.html\n\nData object describing a stream request for a third party stitched server-side ad insertion pod\nserving VOD stream.\n- `\n ``\n ``\n `\n\n ### [-initWithNetworkCode:adDisplayContainer:videoDisplay:userContext:](#/c:objc(cs)IMAPodVODStreamRequest(im)initWithNetworkCode:adDisplayContainer:videoDisplay:userContext:)\n\n `\n ` \n Initializes a stream request instance with the given network. Uses the given ad display container\n to display the stream. \n\n #### Declaration\n\n Swift \n\n init(networkCode: String, adDisplayContainer: ../Classes/IMAAdDisplayContainer.html, videoDisplay: any ../Protocols/IMAVideoDisplay.html, userContext: Any?)\n\n Objective-C \n\n - (nonnull instancetype)\n initWithNetworkCode:(nonnull 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 | ` `*networkCode*` ` | The network code for the stream. |\n | ` `*adDisplayContainer*` ` | The IMAAdDisplayContainer for rendering the ad UI. |\n | ` `*videoDisplay*` ` | The IMAVideoDisplay where the stream will be played. |\n | ` `*userContext*` ` | The user context for tracking requests (optional) |\n\n #### Return Value\n\n The IMAPodVODStreamRequest instance.\n- `\n ``\n ``\n `\n\n ### [-initWithNetworkCode:adDisplayContainer:videoDisplay:pictureInPictureProxy:userContext:](#/c:objc(cs)IMAPodVODStreamRequest(im)initWithNetworkCode:adDisplayContainer:videoDisplay:pictureInPictureProxy:userContext:)\n\n `\n ` \n Initializes a stream request instance with the given network code. 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(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 initWithNetworkCode:(nonnull 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 | ` `*networkCode*` ` | The network code for the stream. |\n | ` `*adDisplayContainer*` ` | The IMAAdDisplayContainer for rendering the ad UI. |\n | ` `*videoDisplay*` ` | The IMAVideoDisplay where the stream will be played. |\n | ` `*pictureInPictureProxy*` ` | The IMAPictureInPictureProxy for tracking PIP events. |\n | ` `*userContext*` ` | The user context for tracking requests (optional) |\n\n #### Return Value\n\n The IMAPodVODStreamRequest instance."]]