Class POBNativeRequestVideoAsset
-
- All Implemented Interfaces:
public final class POBNativeRequestVideoAsset extends POBBaseNativeRequestAsset
This class represents the video asset in the native ad request. This constructor internally assigns the default video asset ID.
- Since:
4.12.0
-
-
Field Summary
Fields Modifier and Type Field Description private Integerwidthprivate Integerheightprivate final JSONObjectRTBJSONprivate final IntegerminDurationprivate final IntegermaxDurationprivate final IntArrayprotocolsprivate final Array<String>mimesprivate final Integeridprivate final BooleanisRequired
-
Method Summary
Modifier and Type Method Description final IntegergetWidth()Video width in pixels, or null if unset (omitted from request JSON). final UnitsetWidth(Integer width)Video width in pixels, or null if unset (omitted from request JSON). final IntegergetHeight()Video height in pixels, or null if unset (omitted from request JSON). final UnitsetHeight(Integer height)Video height in pixels, or null if unset (omitted from request JSON). JSONObjectgetRTBJSON()final IntegergetMinDuration()Minimum video ad duration in seconds final IntegergetMaxDuration()Maximum video ad duration in seconds final IntArraygetProtocols()Array of supported video protocols final Array<String>getMimes()Whitelist of content MIME types supported for video -
-
Method Detail
-
getWidth
final Integer getWidth()
Video width in pixels, or null if unset (omitted from request JSON).
-
setWidth
final Unit setWidth(Integer width)
Video width in pixels, or null if unset (omitted from request JSON).
-
getHeight
final Integer getHeight()
Video height in pixels, or null if unset (omitted from request JSON).
-
setHeight
final Unit setHeight(Integer height)
Video height in pixels, or null if unset (omitted from request JSON).
-
getRTBJSON
JSONObject getRTBJSON()
-
getMinDuration
final Integer getMinDuration()
Minimum video ad duration in seconds
-
getMaxDuration
final Integer getMaxDuration()
Maximum video ad duration in seconds
-
getProtocols
final IntArray getProtocols()
Array of supported video protocols
-
-
-
-