public class POBIcon extends java.lang.Object implements POBXMLNodeListener, com.pubmatic.sdk.common.base.POBAdDescriptor
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
mClickThroughURL
A URI to the advertiser's site that the icon opens when a viewer clicks the ad
|
protected java.util.List<java.lang.String> |
mClickTrackers
A URI for tracking when the ClickThrough is triggered.
|
protected java.util.List<java.lang.String> |
mViewTrackers
A URI for tracking when the icon is displayed.
|
| Constructor and Description |
|---|
POBIcon() |
| Modifier and Type | Method and Description |
|---|---|
void |
build(POBNodeBuilder builder)
POBXMLParser calls this method to build model class object with node builder
|
com.pubmatic.sdk.common.base.POBAdDescriptor |
buildWithRefreshAndExpiryTimeout(int refreshInterval,
int expiryTimeout) |
java.lang.String |
getApiFramework()
The API necessary to communicate with the creative if available
|
java.lang.String |
getClickThroughURL()
A URI to open when companion ad is clicked.
|
java.util.List<java.lang.String> |
getClickTrackers()
A URI to notify the player that icon view is clicked.
|
int |
getContentHeight()
Returns the height of the icon.
|
int |
getContentWidth()
Returns the width of the icon.
|
java.lang.String |
getCreativeType() |
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.
|
java.lang.String |
getId()
Returns null as default implementation
|
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
|
java.lang.String |
getProgram() |
org.json.JSONObject |
getRawBid()
Not supported for Icon
|
int |
getRefreshInterval()
Not supported for Icon
|
java.lang.String |
getRenderableContent()
Returns the content to be render as an Icon.
|
POBResource |
getResource()
Resources to be displayed
|
int |
getStatus() |
java.util.Map<java.lang.String,java.lang.String> |
getTargetingInfo() |
java.util.List<java.lang.String> |
getViewTrackers()
A URI to notify the player that icon is loaded.
|
java.lang.String |
getXPosition()
Returns the x-coordinate of the top, left corner of the icon asset relative to the ad display
area.
|
java.lang.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.
|
boolean |
isVideo() |
@Nullable protected java.lang.String mClickThroughURL
@Nullable protected java.util.List<java.lang.String> mClickTrackers
@Nullable protected java.util.List<java.lang.String> mViewTrackers
@Nullable public java.lang.String getProgram()
public void build(@NonNull
POBNodeBuilder builder)
POBXMLNodeListenerbuild in interface POBXMLNodeListenerbuilder - Instance of POBNodeBuilder, to be used for building the model class object@Nullable public java.lang.String getXPosition()
@Nullable public java.lang.String getYPosition()
@Nullable public java.lang.String getApiFramework()
@Nullable public POBResource getResource()
@Nullable public java.lang.String getClickThroughURL()
@Nullable public java.util.List<java.lang.String> getClickTrackers()
@Nullable public java.util.List<java.lang.String> getViewTrackers()
@Nullable public java.lang.String getRenderableContent()
getRenderableContent in interface com.pubmatic.sdk.common.base.POBAdDescriptorpublic boolean isVideo()
isVideo in interface com.pubmatic.sdk.common.base.POBAdDescriptorpublic int getContentWidth()
getContentWidth in interface com.pubmatic.sdk.common.base.POBAdDescriptorpublic int getContentHeight()
getContentHeight in interface com.pubmatic.sdk.common.base.POBAdDescriptor@Nullable public org.json.JSONObject getRawBid()
getRawBid in interface com.pubmatic.sdk.common.base.POBAdDescriptorpublic int getRefreshInterval()
getRefreshInterval in interface com.pubmatic.sdk.common.base.POBAdDescriptor@Nullable public java.lang.String getId()
getId in interface com.pubmatic.sdk.common.base.POBAdDescriptor@Nullable public java.lang.String getCreativeType()
getCreativeType in interface com.pubmatic.sdk.common.base.POBAdDescriptorpublic int getStatus()
getStatus in interface com.pubmatic.sdk.common.base.POBAdDescriptor@Nullable public java.util.Map<java.lang.String,java.lang.String> getTargetingInfo()
getTargetingInfo in interface com.pubmatic.sdk.common.base.POBAdDescriptor@Nullable
public com.pubmatic.sdk.common.base.POBAdDescriptor buildWithRefreshAndExpiryTimeout(int refreshInterval,
int expiryTimeout)
buildWithRefreshAndExpiryTimeout in interface com.pubmatic.sdk.common.base.POBAdDescriptorpublic int getOffset()
public int getDuration()