public class Test1ExchangeAdapter extends ExchangeAdapterImpl<OpenRtbRequest,OpenRtbResponse>
Copyright © Enremmeta LLC 2015. All Rights Reserved.
ExchangeAdapter.BidChoiceAlgorithm
Modifier and Type | Field and Description |
---|---|
static String |
RESPONSE_MEDIA_TYPE |
Constructor and Description |
---|
Test1ExchangeAdapter() |
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() |
String |
getResponseMediaType() |
String |
getSampleWinningPrice()
Return sample winning price suitable for decoding with
ExchangeAdapter.parse(String, long) |
String |
getWinningPriceMacro()
Winning price macro.
|
boolean |
isMacrosInNurl() |
boolean |
isNurlRequired()
Whether
NUrl is required (two-step response). |
boolean |
localUserMapping()
Whether the mapping of
our user ID to exchange
ID is stored by us. |
ParsedPriceInfo |
parse(String winningPriceString,
long bidMicros) |
javax.ws.rs.core.Response.ResponseBuilder |
setHeaders(OpenRtbResponse bResp,
javax.ws.rs.core.Response.ResponseBuilder builder) |
boolean |
trueWinOnNurlOrImpression()
Whether the true win is known by the
winning price , gotten
either during the call of NUrl or out of band. |
toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
checkExchangeTargeting, debug, error, error, fillPlatformInfoFromUa, getBidChoiceAlgorithm, getOptoutBuilder, getPartnerInitiatedSyncUrl, getSeat, getWinTimeout, info, isAggregator, makeExchangeSpecificInstructionsMap, massageBid, parseUserId, trace, validateAd
public static final String RESPONSE_MEDIA_TYPE
public String getSampleWinningPrice()
ExchangeAdapter
ExchangeAdapter.parse(String, long)
public javax.ws.rs.core.Response.ResponseBuilder setHeaders(OpenRtbResponse bResp, javax.ws.rs.core.Response.ResponseBuilder builder)
public final long getDefaultTimeout()
ExchangeAdapter
OpenRtbRequest.getTmax()
on each request, which takes precedence).public final String getWinningPriceMacro()
ExchangeAdapter
ExchangeAdapter.parse(String, long)
public final OpenRtbRequest convertRequest(OpenRtbRequest req) throws Throwable
Throwable
public String getName()
public ParsedPriceInfo parse(String winningPriceString, long bidMicros) throws Throwable
Throwable
ExchangeAdapter.getWinningPriceMacro()
public boolean isNurlRequired()
ExchangeAdapter
NUrl is required
(two-step response). Since most exchanges for
now accept single-step response (returning the entire markup at once
, we
default the implementation to false.public boolean isMacrosInNurl()
public String getClickMacro()
public String getClickEncMacro()
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 String getResponseMediaType()
public boolean localUserMapping()
ExchangeAdapter
our user ID
to exchange
ID
is stored by us.public OpenRtbResponse convertResponse(OpenRtbRequest req, OpenRtbResponse resp) throws Throwable
Throwable