public final class AdSessionContext
extends java.lang.Object
Created by Natasha Garner on 01/08/2017.
| Modifier and Type | Method and Description |
|---|---|
static AdSessionContext |
createHtmlAdSessionContext(Partner partner,
WebView webView,
java.lang.String contentUrl,
java.lang.String customReferenceData)
Create a new "html" ad session context.
|
static AdSessionContext |
createJavascriptAdSessionContext(Partner partner,
WebView webView,
java.lang.String contentUrl,
java.lang.String customReferenceData)
Create a new "javascript" ad session context.
|
static AdSessionContext |
createNativeAdSessionContext(Partner partner,
java.lang.String omidJsScriptContent,
java.util.List<VerificationScriptResource> verificationScriptResources,
java.lang.String contentUrl,
java.lang.String customReferenceData)
Create a new "native" ad session context.
|
AdSessionContextType |
getAdSessionContextType()
For OM SDK internal use only.
|
java.lang.String |
getContentUrl() |
java.lang.String |
getCustomReferenceData() |
java.util.Map<java.lang.String,VerificationScriptResource> |
getInjectedResourcesMap()
For OM SDK internal use only.
|
java.lang.String |
getOmidJsScriptContent() |
Partner |
getPartner() |
java.util.List<VerificationScriptResource> |
getVerificationScriptResources() |
WebView |
getWebView() |
public static AdSessionContext createHtmlAdSessionContext(Partner partner, WebView webView, java.lang.String contentUrl, java.lang.String customReferenceData)
partner - details of the integration partner responsible for the ad sessionwebView - responsible for serving the ad contentcontentUrl - containing the deep link to the ad's screen.customReferenceData - containing reference data specific to the integration partner.java.lang.IllegalArgumentException - if the supplied partner is null.java.lang.IllegalArgumentException - if the supplied webView is null.java.lang.IllegalArgumentException - if customReferenceData is greater than 256 characters.Partner,
WebViewpublic static AdSessionContext createJavascriptAdSessionContext(Partner partner, WebView webView, java.lang.String contentUrl, java.lang.String customReferenceData)
partner - details of the integration partner responsible for the ad sessionwebView - will be used for running OMSDK JS service & verification scriptcontentUrl - containing the deep link to the ad's screen.customReferenceData - containing reference data specific to the integration partner.java.lang.IllegalArgumentException - if the supplied partner is null.java.lang.IllegalArgumentException - if the supplied webView is null.java.lang.IllegalArgumentException - if customReferenceData is greater than 256 characters.Partner,
WebViewpublic static AdSessionContext createNativeAdSessionContext(Partner partner, java.lang.String omidJsScriptContent, java.util.List<VerificationScriptResource> verificationScriptResources, java.lang.String contentUrl, java.lang.String customReferenceData)
partner - details of the integration partner responsible for the ad
sessionomidJsScriptContent - containing the OM SDK JS service content to be injected into
the hidden tracking web viewverificationScriptResources - of all verification providers who expect to receive OMID
event data.contentUrl - containing the deep link to the ad's screen.customReferenceData - containing reference data specific to the integration
partner.java.lang.IllegalArgumentException - if the supplied partner is null.java.lang.IllegalArgumentException - if the supplied omidJsServiceContent is null or blank.java.lang.IllegalArgumentException - if the supplied verificationScriptResources is null or empty.java.lang.IllegalArgumentException - if customReferenceData is greater than 256 characters.Partner,
VerificationScriptResourcepublic Partner getPartner()
public java.util.List<VerificationScriptResource> getVerificationScriptResources()
public java.util.Map<java.lang.String,VerificationScriptResource> getInjectedResourcesMap()
public WebView getWebView()
public java.lang.String getContentUrl()
public java.lang.String getCustomReferenceData()
public java.lang.String getOmidJsScriptContent()
public AdSessionContextType getAdSessionContextType()