public class AdSessionConfiguration
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static AdSessionConfiguration |
createAdSessionConfiguration(CreativeType creativeType,
ImpressionType impressionType,
Owner impressionOwner,
Owner mediaEventsOwner,
boolean isolateVerificationScripts)
Create new ad session configuration supplying the owner for both the impression and media
events along with the type of creative being rendered/measured
The OM SDK JS service will use this information to help identify where the source of these
events is expected to be received.
|
boolean |
isNativeImpressionOwner()
For OM SDK internal use only.
|
boolean |
isNativeMediaEventsOwner()
For OM SDK internal use only.
|
JSONObject |
toJsonObject()
For OM SDK internal use only.
|
public static AdSessionConfiguration createAdSessionConfiguration(CreativeType creativeType, ImpressionType impressionType, Owner impressionOwner, Owner mediaEventsOwner, boolean isolateVerificationScripts)
creativeType
- type of creative to be rendered in this session.impressionType
- type of impression to be triggered in this session.impressionOwner
- of whether the native or JavaScript layer should be responsible for
supplying the impression event.mediaEventsOwner
- of whether the native or JavaScript layer should be responsible for
supplying media events. This needs to be set only for non-display
ad sessions & can be set to `Owner.NONE` for display. When
the creativeType is DEFINED_BY_JAVASCRIPT then this should be
set to JAVASCRIPTisolateVerificationScripts
- 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.public boolean isNativeImpressionOwner()
public boolean isNativeMediaEventsOwner()
public JSONObject toJsonObject()