public class POBBid
extends java.lang.Object
implements com.pubmatic.sdk.common.base.POBAdDescriptor
| Modifier and Type | Class and Description |
|---|---|
static class |
POBBid.POBSummary
POBSummary class instance holds the information of a single bid which participated in the
auction.
|
| Constructor and Description |
|---|
POBBid() |
| Modifier and Type | Method and Description |
|---|---|
static POBBid |
build(java.lang.String partnerName,
org.json.JSONObject bidJsonObject)
Initializes and returns POBBid object with given bid details and partner name
|
static POBBid |
create(POBBid bid,
java.util.Map<java.lang.String,java.lang.String> targetingInfo) |
int |
getContentHeight() |
int |
getContentWidth() |
java.lang.String |
getCreative()
Returns ad creative
|
java.lang.String |
getCreativeId()
Returns the creative Id
|
java.lang.String |
getCrType()
Returns type of creative is going to serve
|
java.lang.String |
getDealId()
Returns deal Id.
|
int |
getHeight()
Returns Height of bid creative
|
java.lang.String |
getImpressionId()
Returns an Impression Id.
|
java.lang.String |
getlURL()
Returns Loss notice URL called by the exchange if the bid lose.
|
java.lang.String |
getnURL()
Returns Win notice URL called by the exchange if the bid wins
|
java.lang.String |
getPartnerName()
Returns the name of the winning partner
|
double |
getPrice()
Returns Price/bid value
|
org.json.JSONObject |
getRawBid() |
int |
getRefreshInterval()
Returns the refresh interval received in ad response
|
java.lang.String |
getRenderableContent() |
int |
getStatus()
Returns Bid status
|
java.util.List<POBBid.POBSummary> |
getSummary()
Returns bid summary for debugging purpose
|
java.util.Map<java.lang.String,java.lang.String> |
getTargetingInfo()
Returns the map of targeting information, that needs to be passed to ad server SDK.
|
protected java.util.Map<java.lang.String,java.lang.String> |
getTargetingInfoWithPricePrecision(int precision)
Returns the map of targeting information, that needs to be passed to ad server SDK with specified price
precision.
|
int |
getWidth()
Returns Width of bid creative
|
boolean |
hasWon()
To get winning status with respect to primary ad server.
|
boolean |
isVideo() |
void |
setHasWon(boolean hasWon)
To update winning status with respect to primary ad server, expected to be updated externally.
|
void |
setHeight(int height) |
void |
setRefreshInterval(int refreshInterval)
Sets refresh interval in seconds
|
void |
setWidth(int width) |
java.lang.String |
toString() |
public static POBBid create(@NonNull POBBid bid, java.util.Map<java.lang.String,java.lang.String> targetingInfo)
public static POBBid build(java.lang.String partnerName, org.json.JSONObject bidJsonObject)
partnerName - Name of the partnerbidJsonObject - JSON object for the winning bidpublic int getStatus()
public java.lang.String getPartnerName()
public java.lang.String getCreativeId()
public java.lang.String getImpressionId()
public double getPrice()
public java.lang.String getCreative()
public java.lang.String getDealId()
public java.lang.String getlURL()
public java.lang.String getCrType()
public java.util.List<POBBid.POBSummary> getSummary()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getnURL()
public int getWidth()
public void setWidth(int width)
public int getHeight()
public void setHeight(int height)
public int getRefreshInterval()
getRefreshInterval in interface com.pubmatic.sdk.common.base.POBAdDescriptorpublic void setRefreshInterval(int refreshInterval)
refreshInterval - interval in secondspublic java.util.Map<java.lang.String,java.lang.String> getTargetingInfo()
protected java.util.Map<java.lang.String,java.lang.String> getTargetingInfoWithPricePrecision(int precision)
precision - Number of digits allowed after decimal point
e.g. If Actual price is 1.456 and precision is 2, then tergeting information
dictionary will have value for price as info[pwtecp]=1.46public 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.POBAdDescriptorpublic org.json.JSONObject getRawBid()
getRawBid in interface com.pubmatic.sdk.common.base.POBAdDescriptorpublic void setHasWon(boolean hasWon)
hasWon - winning status of type booleanpublic boolean hasWon()