![]() |
RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
Public Member Functions | |
DumpingExchangeConnector (const std::string &name, std::shared_ptr< ServiceProxies > proxies) | |
virtual std::string | exchangeName () const |
virtual std::shared_ptr < BidRequest > | parseBidRequest (HttpAuctionHandler &connection, const HttpHeader &header, const std::string &payload) |
virtual double | getTimeAvailableMs (HttpAuctionHandler &connection, const HttpHeader &header, const std::string &payload) |
virtual double | getRoundTripTimeMs (HttpAuctionHandler &connection, const HttpHeader &header) |
virtual HttpResponse | getResponse (const HttpAuctionHandler &connection, const HttpHeader &requestHeader, const Auction &auction) const |
virtual HttpResponse | getDroppedAuctionResponse (const HttpAuctionHandler &connection, const Auction &auction, const std::string &reason) const |
virtual HttpResponse | getErrorResponse (const HttpAuctionHandler &connection, const Auction &auction, const std::string &errorMessage) const |
Definition at line 18 of file standalone_bidder_ex.cc.
virtual std::string DumpingExchangeConnector::exchangeName | ( | ) | const [inline, virtual] |
Return the name of the exchange, as it would be written as an identifier.
Implements RTBKIT::HttpExchangeConnector.
Definition at line 26 of file standalone_bidder_ex.cc.
virtual HttpResponse DumpingExchangeConnector::getDroppedAuctionResponse | ( | const HttpAuctionHandler & | connection, |
const Auction & | auction, | ||
const std::string & | reason | ||
) | const [inline, virtual] |
Return a stringified JSON of the response for when we drop an auction.
Reimplemented from RTBKIT::HttpExchangeConnector.
Definition at line 63 of file standalone_bidder_ex.cc.
virtual HttpResponse DumpingExchangeConnector::getErrorResponse | ( | const HttpAuctionHandler & | connection, |
const Auction & | auction, | ||
const std::string & | errorMessage | ||
) | const [inline, virtual] |
Return a stringified JSON of the response for our auction. Default implementation calls getResponse() and stringifies the result.
This version is provided as it may be more efficient in terms of memory allocations.
The first element returned is the HTTP body, the second is the content type.
Reimplemented from RTBKIT::HttpExchangeConnector.
Definition at line 71 of file standalone_bidder_ex.cc.