public class AdSessionConfiguration
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static AdSessionConfiguration |
createAdSessionConfiguration(com.iab.omid.library.adsession.Owner impressionOwner,
com.iab.omid.library.adsession.Owner videoEventsOwner)
Deprecated.
|
static AdSessionConfiguration |
createAdSessionConfiguration(com.iab.omid.library.adsession.Owner impressionOwner,
com.iab.omid.library.adsession.Owner videoEventsOwner,
boolean isolateVerificationScripts)
Create new ad session configuration supplying the owner for both the impression and video
events.
|
boolean |
isNativeImpressionOwner() |
boolean |
isNativeVideoEventsOwner() |
org.json.JSONObject |
toJsonObject() |
public static AdSessionConfiguration createAdSessionConfiguration(com.iab.omid.library.adsession.Owner impressionOwner, com.iab.omid.library.adsession.Owner videoEventsOwner, boolean isolateVerificationScripts)
impressionOwner
- of whether the native or JavaScript layer should be responsible for
supplying the impression event.videoEventsOwner
- of whether the native or JavaScript layer should be responsible for
supplying video events. Do not set this parameter to anything other
than `Owner.NONE` unless this is for a video ad session. Setting this
parameter to non-null values will cause the `mediaType` passed to
verification scripts to be `video`. If it's `null`, then `mediaType`
will be set to `display`.isolateVerificationScripts
- When true, verification scripts are in a sandboxed iframe.
When false, verification scripts have access to DOM of webview.
This setting is only applicable when verification script resources are
injected via the javascript session client (typically this would only
be relevant for HTML video ad sessions)java.lang.IllegalArgumentException
- if the supplied impressionOwner is null.@Deprecated public static AdSessionConfiguration createAdSessionConfiguration(com.iab.omid.library.adsession.Owner impressionOwner, com.iab.omid.library.adsession.Owner videoEventsOwner)
public boolean isNativeImpressionOwner()
public boolean isNativeVideoEventsOwner()
public org.json.JSONObject toJsonObject()