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 (nonatomic, readonly) IMAAdDisplayContainer *_Nonnull adDisplayContainer;
-
The video display where the stream can be played.
Declaration
Objective-C
@property (nonatomic, readonly) id<IMAVideoDisplay> _Nonnull 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 (nonatomic, copy, nullable) 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 (nonatomic, copy, nullable) 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 (nonatomic, copy, nullable) 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: [String : String]? { get set }
Objective-C
@property (nonatomic, copy, nullable) NSDictionary<NSString *, NSString *> *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 (nonatomic, copy, nullable) NSString *manifestURLSuffix;
-
Specifies the universal link to the content’s screen. If provided, this parameter is passed to the OM SDK. See Apple documentation for more information.
Declaration
Swift
var contentURL: URL? { get set }
Objective-C
@property (nonatomic, copy, nullable) NSURL *contentURL;
-
The user context.
Declaration
Swift
var userContext: Any? { get }
Objective-C
@property (nonatomic, readonly, nullable) id userContext;