# IMAPodStreamRequest

    @interface IMAPodStreamRequest : https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/ios/reference/Classes/IMAStreamRequest.html

Data object describing a stream request for a pod serving stream.
- `


  ### [customAssetKey](https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/ios/reference/Classes/IMAPodStreamRequest#/c:objc(cs)IMAPodStreamRequest(py)customAssetKey)


  ` The custom asset key for the stream request.

  #### Declaration

  Swift

      var customAssetKey: String { get }

  Objective-C

      @property (nonatomic, copy, readonly) NSString *_Nonnull customAssetKey;

- `


  ### [-initWithNetworkCode:customAssetKey:adDisplayContainer:videoDisplay:userContext:](https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/ios/reference/Classes/IMAPodStreamRequest#/c:objc(cs)IMAPodStreamRequest(im)initWithNetworkCode:customAssetKey:adDisplayContainer:videoDisplay:userContext:)


  ` Initializes a stream request instance with the given network code and custom
  asset key. Uses the given ad display container to display the stream.

  #### Declaration

  Swift

      init(networkCode: String, customAssetKey: String, adDisplayContainer: https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/ios/reference/Classes/IMAAdDisplayContainer.html, videoDisplay: any https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/ios/reference/Protocols/IMAVideoDisplay.html, userContext: Any?)

  Objective-C

      - (nonnull instancetype)
          initWithNetworkCode:(nonnull NSString *)networkCode
               customAssetKey:(nonnull NSString *)customAssetKey
           adDisplayContainer:(nonnull https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/ios/reference/Classes/IMAAdDisplayContainer.html *)adDisplayContainer
                 videoDisplay:(nonnull id<https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/ios/reference/Protocols/IMAVideoDisplay.html>)videoDisplay
                  userContext:(nullable id)userContext;

  #### Parameters

  |---|---|
  | ` networkCode ` | The network code for the stream. |
  | ` customAssetKey ` | The asset key 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 IMAPodStreamRequest instance.
- `


  ### [-initWithNetworkCode:customAssetKey:adDisplayContainer:videoDisplay:pictureInPictureProxy:userContext:](https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/ios/reference/Classes/IMAPodStreamRequest#/c:objc(cs)IMAPodStreamRequest(im)initWithNetworkCode:customAssetKey:adDisplayContainer:videoDisplay:pictureInPictureProxy:userContext:)


  ` Initializes a stream request instance with the given network code and custom
  asset key. Uses the given ad display container to display the stream. Uses the picture in picture
  proxy to track PIP events.

  #### Declaration

  Swift

      init(networkCode: String, customAssetKey: String, adDisplayContainer: https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/ios/reference/Classes/IMAAdDisplayContainer.html, videoDisplay: any https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/ios/reference/Protocols/IMAVideoDisplay.html, pictureInPictureProxy: https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/ios/reference/Classes/IMAPictureInPictureProxy.html?, userContext: Any?)

  Objective-C

      - (nonnull instancetype)
            initWithNetworkCode:(nonnull NSString *)networkCode
                 customAssetKey:(nonnull NSString *)customAssetKey
             adDisplayContainer:(nonnull https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/ios/reference/Classes/IMAAdDisplayContainer.html *)adDisplayContainer
                   videoDisplay:(nonnull id<https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/ios/reference/Protocols/IMAVideoDisplay.html>)videoDisplay
          pictureInPictureProxy:
              (nullable https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/ios/reference/Classes/IMAPictureInPictureProxy.html *)pictureInPictureProxy
                    userContext:(nullable id)userContext;

  #### Parameters

  |---|---|
  | ` networkCode ` | The network code for the stream. |
  | ` customAssetKey ` | The asset key 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 IMAPodStreamRequest instance.