public class POBVideo
extends java.lang.Object
| Constructor and Description |
|---|
POBVideo()
Default constructor
|
POBVideo(com.pubmatic.sdk.common.POBAdSize... adSizes)
Constructor with Ad sizes
|
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONObject |
getImpression(POBImpression impression)
Used to create Video Json object on impression
|
void |
setCompanionAds(org.json.JSONArray companionAds)
Setter to Json Array of Banner objects, if companion ads are
available
|
void |
setLinearity(int linearity)
Setter to set if the impression must be linear, nonlinear, etc.
|
void |
setPlacement(int placement)
Setter to set placement type for the impression
|
void |
setPosition(int position)
Setter to set Ad position on screen
|
public POBVideo()
public POBVideo(com.pubmatic.sdk.common.POBAdSize... adSizes)
adSizes - public void setPosition(int position)
position - the position of type intpublic void setPlacement(int placement)
placement - the placement of type intpublic void setLinearity(int linearity)
linearity - the linearity of type intpublic void setCompanionAds(org.json.JSONArray companionAds)
companionAds - the Json Array of Banner@NonNull
public org.json.JSONObject getImpression(@NonNull
POBImpression impression)
throws org.json.JSONException
impression - instance of impressionorg.json.JSONException - throws while adding invalid value of json object