Class VerificationScriptResource

java.lang.Object
com.iab.omid.library.adsession.VerificationScriptResource

public final class VerificationScriptResource extends Object
Details about the verification provider which will be supplied to the ad session.

Created by Natasha Garner on 02/08/2017.

  • Method Details

    • createVerificationScriptResourceWithParameters

      public static VerificationScriptResource createVerificationScriptResourceWithParameters(String vendorKey, URL resourceUrl, String verificationParameters)
      Create new verification script resource instance which requires vendor specific verification parameters. When calling this method all arguments are mandatory.
      Parameters:
      vendorKey - used to uniquely identify the verification provider.
      resourceUrl - to be injected into the OM SDK managed JavaScript execution environment.
      verificationParameters - which the verification provider script is expecting for the ad session.
      Returns:
      a new verification script resource instance
      Throws:
      IllegalArgumentException - if any of the parameters are either null or blank.
    • createVerificationScriptResourceWithoutParameters

      public static VerificationScriptResource createVerificationScriptResourceWithoutParameters(URL resourceUrl)
      Create new verification script resource instance which does not require any vendor specific verification parameters. When calling this method all arguments are mandatory.
      Parameters:
      resourceUrl - to be injected into the OM SDK managed JavaScript execution environment.
      Returns:
      a new verification script resource instance
      Throws:
      IllegalArgumentException - if any of the parameters are either null or blank.
    • getVendorKey

      public String getVendorKey()
    • getResourceUrl

      public URL getResourceUrl()
    • getVerificationParameters

      public String getVerificationParameters()
    • toJsonObject

      public JSONObject toJsonObject()
      For OM SDK internal use only.