Package com.pubmatic.sdk.omsdk
Class POBMeasurement
-
- All Implemented Interfaces:
-
com.pubmatic.sdk.common.viewability.POBMeasurementProvider,com.pubmatic.sdk.common.viewability.POBObstructionUpdateListener
public abstract class POBMeasurement implements POBMeasurementProviderAn abstract class having the implementation of the basic methods to be implement by viewability measurement provider for html and video ad formats.
-
-
Constructor Summary
Constructors Constructor Description POBMeasurement()
-
Method Summary
Modifier and Type Method Description StringomSDKVersion()OpenWrap SDK calls this method to get the current Open Measurement SDK version. voidsetTrackView(@NonNull() View view)Change the tracking view for an Ad session. voidfinishAdSession()Finishes the Ad session. voidomidJsServiceScript(@NonNull() Context context, @NonNull() POBMeasurementProvider.POBScriptListener listener)Loads the service script to inject. voidaddFriendlyObstructions(@NonNull() View obstructionView, @NonNull() POBObstructionUpdateListener.POBFriendlyObstructionPurpose obstructionPurpose)Add the obstruction to existing Ad session. voidremoveFriendlyObstructions(@Nullable() View obstructionView)Removes the obstruction view from existing Ad session. -
-
Method Detail
-
omSDKVersion
@NonNull() String omSDKVersion()
OpenWrap SDK calls this method to get the current Open Measurement SDK version.
- Returns:
Current open measurement SDK version.
-
setTrackView
void setTrackView(@NonNull() View view)
Change the tracking view for an Ad session.
- Parameters:
view- Ad view.
-
finishAdSession
void finishAdSession()
Finishes the Ad session. This method should be called before Ad view is destroyed.
-
omidJsServiceScript
void omidJsServiceScript(@NonNull() Context context, @NonNull() POBMeasurementProvider.POBScriptListener listener)
Loads the service script to inject.
- Parameters:
context- application context to load scriptlistener- provides callback when measurement service script is available
-
addFriendlyObstructions
void addFriendlyObstructions(@NonNull() View obstructionView, @NonNull() POBObstructionUpdateListener.POBFriendlyObstructionPurpose obstructionPurpose)
Add the obstruction to existing Ad session.
- Parameters:
obstructionView- obstruction ViewobstructionPurpose- purpose of obstruction to add based on obstruction view
-
removeFriendlyObstructions
void removeFriendlyObstructions(@Nullable() View obstructionView)
Removes the obstruction view from existing Ad session. Note: Passing null to this method will remove all existing obstructions.
- Parameters:
obstructionView- obstruction View
-
-
-
-