Class POBIcon
-
- All Implemented Interfaces:
-
com.pubmatic.sdk.common.base.POBAdDescriptor,com.pubmatic.sdk.video.xmlserialiser.POBXMLNodeListener
public class POBIcon implements POBXMLNodeListener, POBAdDescriptor
Instance of this modal class saves the data of VAST Icon.
-
-
Field Summary
Fields Modifier and Type Field Description public final static intBID_STATUS_OKpublic final static intBID_STATUS_NOT_OKpublic final static StringSTATIC_PRICE_BIDpublic final static StringDYNAMIC_PRICE_BIDpublic final static StringCREATIVE_TYPE_BANNERpublic final static StringCREATIVE_TYPE_VIDEOpublic final static StringCREATIVE_TYPE_NATIVE
-
Constructor Summary
Constructors Constructor Description POBIcon()
-
Method Summary
Modifier and Type Method Description StringgetProgram()voidbuild(@NonNull() POBNodeBuilder builder)POBXMLParser calls this method to build model class object with node builder StringgetXPosition()Returns the x-coordinate of the top, left corner of the icon asset relative to the ad display area. StringgetYPosition()Returns the y-coordinate of the top left corner of the icon asset relative to the ad display area; values of "top" or "bottom" also accepted and indicate the topmost or bottommost available position for the icon asset. StringgetApiFramework()The API necessary to communicate with the creative if available POBResourcegetResource()Resources to be displayed StringgetClickThroughURL()A URI to open when companion ad is clicked. List<String>getClickTrackers()A URI to notify the player that icon view is clicked. List<String>getViewTrackers()A URI to notify the player that icon is loaded. StringgetRenderableContent()Returns the content to be render as an Icon. booleanisVideo()booleanisCompanion()intgetContentWidth()Returns the width of the icon. intgetContentHeight()Returns the height of the icon. JSONObjectgetRawBid()Not supported for Icon intgetRefreshInterval()Not supported for Icon StringgetId()Returns null as default implementation StringgetCreativeType()intgetStatus()Map<String, String>getTargetingInfo()POBAdDescriptorbuildWithRefreshAndExpiryTimeout(int refreshInterval, int expiryTimeout)StringgetBundle()StringgetPaidBy()booleanenableDsaInfoIcon()StringgetDisplayedOnBehalfOf()List<POBDSATransparencyInfo>getTransparencyData()POBImpressionCountingMethodgetImpressionCountingMethod()intgetOffset()Returns the time of delay in seconds from when the associated linear creative begins playing to when the icon should be displayed; In VAST, it is provided in the format of HH:MM:SS. intgetDuration()Returns the duration the icon (in seconds) that should be displayed unless clicked or ad is finished playing; In VAST, it is provided in the format HH:MM:SS.mmm or HH:MM:SS where .mmm is milliseconds and optional. -
-
Method Detail
-
getProgram
@Nullable() String getProgram()
-
build
void build(@NonNull() POBNodeBuilder builder)
POBXMLParser calls this method to build model class object with node builder
- Parameters:
builder- Instance of POBNodeBuilder, to be used for building the model class object
-
getXPosition
@Nullable() String getXPosition()
Returns the x-coordinate of the top, left corner of the icon asset relative to the ad display area. Values of "left" or "right" also accepted and indicate the leftmost or rightmost available position for the icon asset.
- Returns:
x-coordinate of the icon
-
getYPosition
@Nullable() String getYPosition()
Returns the y-coordinate of the top left corner of the icon asset relative to the ad display area; values of "top" or "bottom" also accepted and indicate the topmost or bottommost available position for the icon asset.
- Returns:
y-coordinate of the icon
-
getApiFramework
@Nullable() String getApiFramework()
The API necessary to communicate with the creative if available
- Returns:
api framework
-
getResource
@Nullable() POBResource getResource()
Resources to be displayed
- Returns:
POBResource object
-
getClickThroughURL
@Nullable() String getClickThroughURL()
A URI to open when companion ad is clicked.
- Returns:
click through URL
-
getClickTrackers
@Nullable() List<String> getClickTrackers()
A URI to notify the player that icon view is clicked.
- Returns:
click tracking URL
-
getViewTrackers
@Nullable() List<String> getViewTrackers()
A URI to notify the player that icon is loaded.
- Returns:
view tracking URL
-
getRenderableContent
@Nullable() String getRenderableContent()
Returns the content to be render as an Icon.
- Returns:
Renderable content
-
isVideo
boolean isVideo()
-
isCompanion
boolean isCompanion()
-
getContentWidth
int getContentWidth()
Returns the width of the icon.
- Returns:
width of icon
-
getContentHeight
int getContentHeight()
Returns the height of the icon.
- Returns:
height of icon
-
getRawBid
@Nullable() JSONObject getRawBid()
Not supported for Icon
- Returns:
Returns null for the icon
-
getRefreshInterval
int getRefreshInterval()
Not supported for Icon
- Returns:
Returns 0 for the icon
-
getId
@Nullable() String getId()
Returns null as default implementation
- Returns:
null as default implementation
-
getCreativeType
@Nullable() String getCreativeType()
-
getStatus
int getStatus()
-
getTargetingInfo
@Nullable() Map<String, String> getTargetingInfo()
-
buildWithRefreshAndExpiryTimeout
@Nullable() POBAdDescriptor buildWithRefreshAndExpiryTimeout(int refreshInterval, int expiryTimeout)
-
enableDsaInfoIcon
boolean enableDsaInfoIcon()
-
getDisplayedOnBehalfOf
@Nullable() String getDisplayedOnBehalfOf()
-
getTransparencyData
@Nullable() List<POBDSATransparencyInfo> getTransparencyData()
-
getImpressionCountingMethod
@NonNull() POBImpressionCountingMethod getImpressionCountingMethod()
-
getOffset
int getOffset()
Returns the time of delay in seconds from when the associated linear creative begins playing to when the icon should be displayed; In VAST, it is provided in the format of HH:MM:SS.mmm or HH:MM:SS
- Returns:
Icon offset
-
getDuration
int getDuration()
Returns the duration the icon (in seconds) that should be displayed unless clicked or ad is finished playing; In VAST, it is provided in the format HH:MM:SS.mmm or HH:MM:SS where .mmm is milliseconds and optional.
- Returns:
Icon duration
-
-
-
-