public class PubmaticAdapter extends ExchangeAdapterImpl<OpenRtbRequest,OpenRtbResponse>
Copyright © Enremmeta LLC 2015. All Rights Reserved.
ExchangeAdapter.BidChoiceAlgorithm
Modifier and Type | Field and Description |
---|---|
private PubmaticConfig |
config |
static String |
RESPONSE_MEDIA_TYPE |
private String |
vcode |
Constructor and Description |
---|
PubmaticAdapter() |
Modifier and Type | Method and Description |
---|---|
OpenRtbRequest |
convertRequest(OpenRtbRequest req) |
OpenRtbResponse |
convertResponse(OpenRtbRequest req,
OpenRtbResponse resp) |
String |
getClickEncMacro() |
String |
getClickMacro() |
long |
getDefaultTimeout()
What is the default timeout, in milliseconds (default, because timeout can also be provided
dynamically as
OpenRtbRequest.getTmax() on each request, which takes precedence). |
String |
getName() |
javax.ws.rs.core.Response.ResponseBuilder |
getOptoutBuilder(OpenRtbRequest req)
Default behavior is not OK here in case of private deal IDs.
|
String |
getPartnerInitiatedSyncUrl(String myUserId) |
String |
getResponseMediaType() |
String |
getSeat(Ad ad) |
String |
getWinningPriceMacro()
Winning price macro.
|
boolean |
localUserMapping()
Whether the mapping of
our user ID to exchange
ID is stored by us. |
ParsedPriceInfo |
parse(String winningPriceString,
long bidMicros) |
private void |
parseWinLossInfo(OpenRtbRequest req) |
boolean |
trueWinOnNurlOrImpression()
Whether the true win is known by the
winning price , gotten
either during the call of NUrl or out of band. |
List<String> |
validateAd(Ad ad)
Specific requirements (from communications with Pubmatic):
adomain must include only ONE domain
iurl is required
|
toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
checkExchangeTargeting, debug, error, error, fillPlatformInfoFromUa, getBidChoiceAlgorithm, getSampleWinningPrice, getWinTimeout, info, isAggregator, isMacrosInNurl, isNurlRequired, makeExchangeSpecificInstructionsMap, massageBid, parseUserId, setHeaders, trace
private final PubmaticConfig config
private final String vcode
public static final String RESPONSE_MEDIA_TYPE
public PubmaticAdapter() throws Lot49Exception
Lot49Exception
public long getDefaultTimeout()
ExchangeAdapter
OpenRtbRequest.getTmax()
on each request, which takes precedence).public String getWinningPriceMacro()
ExchangeAdapter
ExchangeAdapter.parse(String, long)
public boolean localUserMapping()
ExchangeAdapter
our user ID
to exchange
ID
is stored by us.public boolean trueWinOnNurlOrImpression()
ExchangeAdapter
winning price
, gotten
either during the call of NUrl or out of band. For example, OpenX
does the latter, and so a true Win should be registered in
StatsSvc.resultsOpenX(javax.ws.rs.core.UriInfo, String, com.enremmeta.rtb.proto.openx.AuctionResultMessage, String, javax.servlet.http.HttpServletRequest, String, javax.ws.rs.core.HttpHeaders)
StatsSvc#nurl(javax.ws.rs.core.UriInfo, String, String, String, String, String, String,
String, String, String, String, long, String, String, String, String, String, String,
javax.servlet.http.HttpServletRequest, String, String, String, String, String)
,
LogUtils.logWin(String, String, String, String, String, String, String, double, long,
long, long, String, String, String, String, String,
javax.servlet.http.HttpServletRequest, String, Long, String, java.net.URI, boolean,
String, String, String, String, String, String, boolean, boolean, String)
,
StatsSvc.impression(javax.ws.rs.core.UriInfo, String, String, String, String, String,
String, String, String, String, long, String, int, String, String, String, String,
String, String, String, javax.servlet.http.HttpServletRequest, String,
javax.ws.rs.core.HttpHeaders, String, String)
public OpenRtbRequest convertRequest(OpenRtbRequest req) throws Throwable
Throwable
private void parseWinLossInfo(OpenRtbRequest req)
public String getClickMacro()
public String getClickEncMacro()
public OpenRtbResponse convertResponse(OpenRtbRequest req, OpenRtbResponse resp) throws Throwable
Throwable
public ParsedPriceInfo parse(String winningPriceString, long bidMicros) throws Throwable
Throwable
ExchangeAdapter.getWinningPriceMacro()
public String getName()
public List<String> validateAd(Ad ad)
public String getResponseMediaType()
public javax.ws.rs.core.Response.ResponseBuilder getOptoutBuilder(OpenRtbRequest req)