Class POBNativeAdResponseEventTracker
-
- All Implemented Interfaces:
-
com.pubmatic.sdk.common.viewability.POBVerificationScriptResource
public class POBNativeAdResponseEventTracker implements POBVerificationScriptResourceThis class represents the event trackers passed in the native response object
-
-
Field Summary
Fields Modifier and Type Field Description public final Stringurlpublic final POBNativeEventTypetypepublic final POBNativeEventTrackingMethodtrackingMethodpublic JSONObjectext
-
Constructor Summary
Constructors Constructor Description POBNativeAdResponseEventTracker(String url, POBNativeEventType type, POBNativeEventTrackingMethod trackingMethod)Returns the instance of the class which stores the event trackers received in the response
-
Method Summary
Modifier and Type Method Description StringgetUrl()Returns the url of the js or the image to be fired for that particular event. POBNativeEventTypegetType()Returns the type of the event occurred (refer POBNativeEventType) POBNativeEventTrackingMethodgetTrackingMethod()Returns the tracking method used for capturing the method (refer POBNativeEventTrackingMethod) JSONObjectgetExt()Returns the extension for event tracker voidsetExt(@Nullable() JSONObject ext)Sets the custom data for event tracker in extension StringtoString()Converts the object to a readable string StringgetVerificationParameter()List<String>getJavaScriptResource()StringgetVendorKey()-
-
Constructor Detail
-
POBNativeAdResponseEventTracker
POBNativeAdResponseEventTracker(String url, POBNativeEventType type, POBNativeEventTrackingMethod trackingMethod)
Returns the instance of the class which stores the event trackers received in the response- Parameters:
url- String (required)type- POBNativeEventType (required)trackingMethod- POBNativeEventTrackingMethod (required)
-
-
Method Detail
-
getUrl
@NonNull() String getUrl()
Returns the url of the js or the image to be fired for that particular event.
- Returns:
String
-
getType
@NonNull() POBNativeEventType getType()
Returns the type of the event occurred (refer POBNativeEventType)
- Returns:
POBNativeEventType
-
getTrackingMethod
@NonNull() POBNativeEventTrackingMethod getTrackingMethod()
Returns the tracking method used for capturing the method (refer POBNativeEventTrackingMethod)
- Returns:
POBNativeEventTrackingMethod
-
getExt
@Nullable() JSONObject getExt()
Returns the extension for event tracker
- Returns:
instance of JSONObject
-
setExt
void setExt(@Nullable() JSONObject ext)
Sets the custom data for event tracker in extension
- Parameters:
ext- instance of JSONObject
-
toString
@NonNull() String toString()
Converts the object to a readable string
- Returns:
Stringified object
-
getVerificationParameter
@Nullable() String getVerificationParameter()
-
getJavaScriptResource
@Nullable() List<String> getJavaScriptResource()
-
getVendorKey
@Nullable() String getVendorKey()
-
-
-
-