IMAStreamRequest

@interface IMAStreamRequest : NSObject

Data class describing the stream request.

  • The stream display container for displaying the ad UI.

    Declaration

    Swift

    var adDisplayContainer: IMAAdDisplayContainer! { get }

    Objective-C

    @property (readonly, strong, nonatomic)
        IMAAdDisplayContainer *adDisplayContainer;
  • The video display where the stream can be played.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) id<IMAVideoDisplay> videoDisplay;
  • The stream request API key. It’s configured through the DFP Admin UI and provided to the publisher to unlock their content. It verifies the applications that are attempting to access the content.

    Declaration

    Swift

    var apiKey: String! { get set }

    Objective-C

    @property (readwrite, copy, nonatomic) NSString *apiKey;
  • The stream request authorization token. This is used in place of the API key for stricter content authorization. The publisher can control individual content streams authorized based on this token.

    Declaration

    Swift

    var authToken: String! { get set }

    Objective-C

    @property (readwrite, copy, nonatomic) NSString *authToken;
  • The ID to be used to debug the stream with the stream activity monitor. This is used to provide a convenient way to allow publishers to find a stream log in the stream activity monitor tool.

    Declaration

    Swift

    var streamActivityMonitorID: String! { get set }

    Objective-C

    @property (readwrite, copy, nonatomic) NSString *streamActivityMonitorID;
  • You can override a limited set of ad tag parameters on your stream request. Supply targeting parameters to your stream provides more information.

    You can use the dai-ot and dai-ov parameters for stream variant preference. See Override Stream Variant Parameters for more information.

    Declaration

    Swift

    var adTagParameters: [AnyHashable : Any]! { get set }

    Objective-C

    @property (readwrite, copy, nonatomic) NSDictionary *adTagParameters;
  • The suffix that the SDK will append to the query of the stream manifest URL. Do not include the ‘?’ separator at the start. The SDK will account for the existence of parameters in the URL already, removing existing ones that collide with ones supplied here. This suffix needs to be sanitized and encoded as the SDK will not do this.

    Declaration

    Swift

    var manifestURLSuffix: String! { get set }

    Objective-C

    @property (readwrite, copy, nonatomic) NSString *manifestURLSuffix;