public class POBBid
extends java.lang.Object
implements com.pubmatic.sdk.common.base.POBAdDescriptor
| Modifier and Type | Class and Description |
|---|---|
static class |
POBBid.Builder
|
static class |
POBBid.POBSummary
POBSummary class instance holds the information of a single bid which participated in the
auction.
|
| 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
|
com.pubmatic.sdk.common.base.POBAdDescriptor |
buildWithRefreshAndExpiryTimeout(int refreshInterval,
int expiryTimeout) |
java.util.Map<java.lang.String,java.lang.String> |
clientBidTargeting(com.pubmatic.sdk.common.POBDataType.POBBidTargetingType targetingType)
Method to add buyer prioritization keys.
|
static POBBid |
create(POBBid bid,
boolean isOpenWrapBid,
com.pubmatic.sdk.common.POBDataType.POBBidTargetingType targetingType) |
static POBBid |
create(POBBid bid,
java.util.Map<java.lang.String,java.lang.String> targetingInfo) |
static POBBid |
createWithRefreshInterval(POBBid bid,
int refreshInterval) |
boolean |
equals(java.lang.Object obj)
Deep comparison by using hashcode
|
java.lang.String |
getBidId()
Deprecated.
Use getId() instead.
|
int |
getContentHeight() |
int |
getContentWidth() |
java.lang.String |
getCreative()
Returns ad creative
|
java.lang.String |
getCreativeId()
Returns the creative Id
|
java.lang.String |
getCreativeType() |
java.lang.String |
getDealId()
Returns deal Id.
|
POBReward |
getFirstReward()
Returns the first Reward object (if any) from the rewards array under bid extension.
|
int |
getHeight()
Returns Height of bid creative
|
java.lang.String |
getId()
Return bid id of the bid
|
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 |
getPartnerId()
Returns the OpenWrap partner Id of this bid
|
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
|
int |
getRemainingExpirationTime()
Gives the remaining time for bid expiry.
|
java.lang.String |
getRenderableContent()
Returns the winning creative to be render
|
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
|
int |
hashCode()
Custom hash code generation by using concatenation of
(rawbid + impression + status)
|
boolean |
hasWon()
To get winning status with respect to primary ad server.
|
boolean |
isExpired()
The bid expires after the below timeouts it was received based on ad format.
|
boolean |
isServerSideAuctionWinner()
Return true if server-side auction wins
|
boolean |
isVideo() |
java.util.Map<java.lang.String,java.lang.String> |
serverBidTargeting(com.pubmatic.sdk.common.POBDataType.POBBidTargetingType targetingType)
Method to remove winning bid targeting from targeting received from server side
This method will be used mainly for server side bids as one of them will have winning targeting.
|
void |
setHasWon(boolean hasWon)
To update winning status with respect to primary ad server, expected to be updated externally.
|
java.lang.String |
toString() |
@NonNull public static POBBid createWithRefreshInterval(@NonNull POBBid bid, int refreshInterval)
@NonNull public static POBBid create(@NonNull POBBid bid, java.util.Map<java.lang.String,java.lang.String> targetingInfo)
@NonNull public static POBBid create(@NonNull POBBid bid, boolean isOpenWrapBid, @NonNull com.pubmatic.sdk.common.POBDataType.POBBidTargetingType targetingType)
@Nullable
public java.util.Map<java.lang.String,java.lang.String> serverBidTargeting(@NonNull
com.pubmatic.sdk.common.POBDataType.POBBidTargetingType targetingType)
targetingType - type of targeting@Nullable
public java.util.Map<java.lang.String,java.lang.String> clientBidTargeting(@NonNull
com.pubmatic.sdk.common.POBDataType.POBBidTargetingType targetingType)
@Deprecated public java.lang.String getBidId()
public double getPrice()
public java.lang.String getPartnerName()
@NonNull public static POBBid build(java.lang.String partnerName, org.json.JSONObject bidJsonObject)
partnerName - Name of the partnerbidJsonObject - JSON object for the winning bid@Nullable public java.lang.String getDealId()
@Nullable public POBReward getFirstReward()
public java.lang.String getPartnerId()
public boolean isExpired()
public int getRemainingExpirationTime()
public boolean isServerSideAuctionWinner()
public java.lang.String getCreativeId()
public java.lang.String getImpressionId()
public java.lang.String getCreative()
public java.lang.String getlURL()
@Nullable public java.util.List<POBBid.POBSummary> getSummary()
public java.lang.String getnURL()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(@Nullable
java.lang.Object obj)
equals in class java.lang.Objectobj - the obj which is being compared with target bidpublic java.lang.String toString()
toString in class java.lang.Objectpublic int getWidth()
public int getHeight()
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.POBAdDescriptorpublic org.json.JSONObject getRawBid()
getRawBid in interface com.pubmatic.sdk.common.base.POBAdDescriptorpublic int getRefreshInterval()
getRefreshInterval in interface com.pubmatic.sdk.common.base.POBAdDescriptorpublic 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()
POBAdDescriptor.BID_STATUS_OK) it returns null else return
valid bid targeting info mapgetTargetingInfo in interface com.pubmatic.sdk.common.base.POBAdDescriptorpublic com.pubmatic.sdk.common.base.POBAdDescriptor buildWithRefreshAndExpiryTimeout(int refreshInterval,
int expiryTimeout)
buildWithRefreshAndExpiryTimeout in interface com.pubmatic.sdk.common.base.POBAdDescriptorprotected 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 void setHasWon(boolean hasWon)
hasWon - winning status of type booleanpublic boolean hasWon()