public class POBVideo
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
POBVideo.Linearity |
static class |
POBVideo.Placement
Placement type for the Video impression
|
| Constructor and Description |
|---|
POBVideo(POBVideo.Placement placement,
POBVideo.Linearity linearity,
com.pubmatic.sdk.common.POBAdSize adSize)
Constructor initialize necessary params
|
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONObject |
getRTBJson()
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 |
setPosition(POBRequest.AdPosition position)
Setter to set Ad position on screen
|
public POBVideo(POBVideo.Placement placement, POBVideo.Linearity linearity, @NonNull com.pubmatic.sdk.common.POBAdSize adSize)
placement - placement type for the video impressionlinearity - linearity for the video impressionadSize - ad size for videopublic void setPosition(POBRequest.AdPosition position)
position - the position of type intpublic void setCompanionAds(org.json.JSONArray companionAds)
companionAds - the Json Array of Banner@NonNull
public org.json.JSONObject getRTBJson()
throws org.json.JSONException
org.json.JSONException - throws while adding invalid value of json object