Package com.iab.omid.library
Class ScriptInjector
java.lang.Object
com.iab.omid.library.ScriptInjector
Utility class which enables integration partners to use a standard approach for injecting OM SDK JS
into the served tag HTML content.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
injectScriptContentIntoHtml
(String scriptContent, String html) Injects the supplied OM SDK JS content into the served HTML.
-
Method Details
-
injectScriptContentIntoHtml
Injects the supplied OM SDK JS content into the served HTML.- Parameters:
scriptContent
- containing the OM SDK JS service content to be injected into the hidden tracking web view.html
- of the tag content which should be modified to include the downloaded OM SDK JS content.- Returns:
- modified HTML to include the supplied OM SDK JS service.
- Throws:
IllegalArgumentException
- if the supplied HTML is either null or blank.IllegalStateException
- if this method has been executed before OM SDK has been activated.IllegalStateException
- if this method has been executed before OM SDK JS is available.
-