public class POBBid
extends java.lang.Object
implements com.pubmatic.sdk.common.base.POBAdDescriptor
| Modifier and Type | Class and Description |
|---|---|
static class |
POBBid.Builder
|
| Modifier and Type | Method and Description |
|---|---|
static POBBid |
build(java.lang.String partnerName,
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)
Create new descriptor type by updating existing descriptor's refresh interval and expiryTimeout
|
static POBBid |
create(POBBid bid,
java.util.Map<java.lang.String,java.lang.String> targetingInfo) |
boolean |
enableDsaInfoIcon()
Returns whether sdk should render the dsa data.
|
boolean |
equals(java.lang.Object obj)
Deep comparison by using hashcode
|
java.util.List<POBReward> |
getAllRewards()
Returns the list of Rewards object (if any) from the rewards array under bid extension.
|
java.lang.String |
getBidType()
Bid type
|
java.lang.String |
getBundle()
Returns bundle id received from ad response
|
java.util.List<java.lang.String> |
getClickTrackers()
Returns the PubMatic's click trackers
|
int |
getContentHeight()
Returns the height of the content to be render
|
int |
getContentWidth()
Returns the width of the content to be render
|
java.lang.String |
getCreative()
Returns ad creative
|
java.lang.String |
getCreativeId()
Returns the creative Id
|
java.lang.String |
getCreativeType()
To get creative type of ad descriptor
|
java.lang.String |
getDealId()
Returns deal Id.
|
java.lang.String |
getDisplayedOnBehalfOf()
Returns the behalf value.
|
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
|
POBImpressionCountingMethod |
getImpressionCountingMethod()
Returns the method of impression tracking
|
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 |
getPaidBy()
Returns the paid value.
|
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 Net Price/bid value
This method is updated to return net price from OW SDK v2.4.0.
|
JSONObject |
getRawBid()
Returns the JSON object of the Bid
|
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.Map<java.lang.String,java.lang.String> |
getTargetingInfo()
Returns the map of targeting information, that needs to be passed to ad server SDK.
|
java.util.List<POBDSATransparencyInfo> |
getTransparencyData()
Array of entities that applied user parameters and the parameters they applied.
|
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 |
isCompanion()
Returns if descriptor id of companion or not
|
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 |
isStaticBid()
Returns of Bid is of static price
|
boolean |
isVideo()
Returns the state of type video
|
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 create(@NonNull POBBid bid, @Nullable java.util.Map<java.lang.String,java.lang.String> targetingInfo)
public double getPrice()
@Nullable public java.lang.String getPartnerName()
@NonNull public static POBBid build(@NonNull java.lang.String partnerName, @NonNull JSONObject bidJsonObject)
partnerName - Name of the partnerbidJsonObject - JSON object for the winning bid@Nullable public java.lang.String getDealId()
@Nullable public java.util.List<POBReward> getAllRewards()
@Nullable public POBReward getFirstReward()
@Nullable public java.lang.String getPartnerId()
public boolean isExpired()
public int getRemainingExpirationTime()
public boolean isServerSideAuctionWinner()
@Nullable public java.lang.String getCreativeId()
@Nullable public java.lang.String getImpressionId()
@Nullable public java.lang.String getCreative()
@Nullable public java.lang.String getlURL()
@Nullable public java.lang.String getnURL()
public int hashCode()
hashCode in class java.lang.Object@NonNull public java.lang.String getBidType()
public boolean isStaticBid()
POBAdDescriptor.STATIC_PRICE_BID, else returns falsepublic boolean equals(@Nullable
java.lang.Object obj)
equals in class java.lang.Objectobj - the obj which is being compared with target bid@NonNull public java.lang.String toString()
toString in class java.lang.Objectpublic int getWidth()
public int getHeight()
@Nullable public java.lang.String getRenderableContent()
getRenderableContent in interface com.pubmatic.sdk.common.base.POBAdDescriptorpublic boolean isVideo()
com.pubmatic.sdk.common.base.POBAdDescriptorisVideo in interface com.pubmatic.sdk.common.base.POBAdDescriptorpublic boolean isCompanion()
com.pubmatic.sdk.common.base.POBAdDescriptorisCompanion in interface com.pubmatic.sdk.common.base.POBAdDescriptorpublic int getContentWidth()
com.pubmatic.sdk.common.base.POBAdDescriptorgetContentWidth in interface com.pubmatic.sdk.common.base.POBAdDescriptorpublic int getContentHeight()
com.pubmatic.sdk.common.base.POBAdDescriptorgetContentHeight in interface com.pubmatic.sdk.common.base.POBAdDescriptor@Nullable public JSONObject getRawBid()
com.pubmatic.sdk.common.base.POBAdDescriptorgetRawBid 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()
com.pubmatic.sdk.common.base.POBAdDescriptorgetCreativeType in interface com.pubmatic.sdk.common.base.POBAdDescriptor@Nullable public java.lang.String getBundle()
com.pubmatic.sdk.common.base.POBAdDescriptorgetBundle in interface com.pubmatic.sdk.common.base.POBAdDescriptorpublic int getStatus()
getStatus in interface com.pubmatic.sdk.common.base.POBAdDescriptorPOBAdDescriptor.BID_STATUS_OK, if ecpm price is greater than 0 else return POBAdDescriptor.BID_STATUS_NOT_OK.@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)
com.pubmatic.sdk.common.base.POBAdDescriptorbuildWithRefreshAndExpiryTimeout in interface com.pubmatic.sdk.common.base.POBAdDescriptorrefreshInterval - the refresh interval in secondsexpiryTimeout - the expiryTimeout in millisecondspublic void setHasWon(boolean hasWon)
hasWon - winning status of type booleanpublic boolean hasWon()
@Nullable public java.lang.String getPaidBy()
com.pubmatic.sdk.common.base.POBAdDescriptorgetPaidBy in interface com.pubmatic.sdk.common.base.POBAdDescriptorpublic boolean enableDsaInfoIcon()
com.pubmatic.sdk.common.base.POBAdDescriptorenableDsaInfoIcon in interface com.pubmatic.sdk.common.base.POBAdDescriptor@Nullable public java.lang.String getDisplayedOnBehalfOf()
com.pubmatic.sdk.common.base.POBAdDescriptorgetDisplayedOnBehalfOf in interface com.pubmatic.sdk.common.base.POBAdDescriptor@Nullable public java.util.List<POBDSATransparencyInfo> getTransparencyData()
com.pubmatic.sdk.common.base.POBAdDescriptorgetTransparencyData in interface com.pubmatic.sdk.common.base.POBAdDescriptorPOBDSATransparencyInfo@NonNull public POBImpressionCountingMethod getImpressionCountingMethod()
getImpressionCountingMethod in interface com.pubmatic.sdk.common.base.POBAdDescriptor@Nullable public java.util.List<java.lang.String> getClickTrackers()
com.pubmatic.sdk.common.base.POBAdDescriptorgetClickTrackers in interface com.pubmatic.sdk.common.base.POBAdDescriptor