Package com.brightcove.ssai.omid
Class OpenMeasurementTracker.Config
java.lang.Object
com.brightcove.ssai.omid.OpenMeasurementTracker.Config
- Enclosing interface:
- OpenMeasurementTracker
Config class used to configure the open-measurement ad session.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSet the custom reference data to be used when creating the OMAdSession
.Add a verification/validation script to each ad session.withVerificationScript
(String vendor, String url, String params) Add a verification/validation script to each ad session.
-
Constructor Details
-
Config
public Config()
-
-
Method Details
-
withCustomReferenceData
Set the custom reference data to be used when creating the OMAdSession
.- Parameters:
data
- The custom reference JSON- Returns:
- This config object for the chaining of method calls.
-
withVerificationScript
public OpenMeasurementTracker.Config withVerificationScript(String url) throws OpenMeasurementTracker.Error Add a verification/validation script to each ad session.- Parameters:
url
- The URL for the validation script.- Returns:
- This config object for the chaining of method calls.
- Throws:
OpenMeasurementTracker.Error
- If the URL is malformed.- See Also:
-
withVerificationScript
public OpenMeasurementTracker.Config withVerificationScript(String vendor, String url, String params) Add a verification/validation script to each ad session.- Parameters:
vendor
- The vendor key.url
- The URL for the validation script.params
- The verification parameters as a string.- Returns:
- This config object for the chaining of method calls.
- Throws:
OpenMeasurementTracker.Error
- If the URL is malformed.- See Also:
-