public class LiverailAdapter extends Object implements ExchangeAdapter<OpenRtbRequest,OpenRtbResponse>
ExchangeAdapter.BidChoiceAlgorithm
Modifier and Type | Field and Description |
---|---|
private LiverailConfig |
config |
static String |
EXTENSION_TEMPLATE_PART_1 |
static String |
EXTENSION_TEMPLATE_PART_2 |
private String |
seatId |
Constructor and Description |
---|
LiverailAdapter() |
Modifier and Type | Method and Description |
---|---|
OpenRtbRequest |
convertRequest(OpenRtbRequest request) |
OpenRtbResponse |
convertResponse(OpenRtbRequest req,
OpenRtbResponse resp) |
String |
getClickEncMacro() |
String |
getClickMacro() |
String |
getName() |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkExchangeTargeting, debug, error, error, fillPlatformInfoFromUa, getBidChoiceAlgorithm, getDefaultTimeout, getOptoutBuilder, getPartnerInitiatedSyncUrl, getSampleWinningPrice, getWinTimeout, info, isAggregator, isMacrosInNurl, isNurlRequired, makeExchangeSpecificInstructionsMap, massageBid, parseUserId, setHeaders, trace, trueWinOnNurlOrImpression, validateAd
private final LiverailConfig config
private final String seatId
public static final String EXTENSION_TEMPLATE_PART_1
public static final String EXTENSION_TEMPLATE_PART_2
public String getSeat(Ad ad)
getSeat
in interface ExchangeAdapter<OpenRtbRequest,OpenRtbResponse>
public String getResponseMediaType()
getResponseMediaType
in interface ExchangeAdapter<OpenRtbRequest,OpenRtbResponse>
public String getName()
getName
in interface ExchangeAdapter<OpenRtbRequest,OpenRtbResponse>
public String getWinningPriceMacro()
ExchangeAdapter
getWinningPriceMacro
in interface ExchangeAdapter<OpenRtbRequest,OpenRtbResponse>
ExchangeAdapter.parse(String, long)
public boolean localUserMapping()
ExchangeAdapter
our user ID
to exchange
ID
is stored by us.localUserMapping
in interface ExchangeAdapter<OpenRtbRequest,OpenRtbResponse>
public OpenRtbRequest convertRequest(OpenRtbRequest request) throws Throwable
convertRequest
in interface ExchangeAdapter<OpenRtbRequest,OpenRtbResponse>
Throwable
public OpenRtbResponse convertResponse(OpenRtbRequest req, OpenRtbResponse resp) throws Throwable
convertResponse
in interface ExchangeAdapter<OpenRtbRequest,OpenRtbResponse>
Throwable
public ParsedPriceInfo parse(String winningPriceString, long bidMicros) throws Throwable
parse
in interface ExchangeAdapter<OpenRtbRequest,OpenRtbResponse>
Throwable
ExchangeAdapter.getWinningPriceMacro()
public String getClickMacro()
getClickMacro
in interface ExchangeAdapter<OpenRtbRequest,OpenRtbResponse>
public String getClickEncMacro()
getClickEncMacro
in interface ExchangeAdapter<OpenRtbRequest,OpenRtbResponse>