![]() |
RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
Public Member Functions | |
FixedPriceBiddingAgent (std::shared_ptr< Datacratic::ServiceProxies > services, const string &serviceName) | |
void | init () |
void | start () |
void | shutdown () |
void | setConfig () |
void | bid (double timestamp, const Id &id, std::shared_ptr< RTBKIT::BidRequest > br, Bids bids, double timeLeftMs, const Json::Value &augmentations) |
void | pace () |
Public Attributes | |
AgentConfig | config |
bool | accountSetup |
SlaveBudgetController | budgetController |
Simple bidding agent whose sole purpose in life is to bid 1$ CPM on every bid requests it sees. It also has a very simple pacer which ensures that we always have at most 1$ to spend every 10 seconds.
Definition at line 39 of file bidding_agent_ex.cc.
void RTBKIT::FixedPriceBiddingAgent::bid | ( | double | timestamp, |
const Id & | id, | ||
std::shared_ptr< RTBKIT::BidRequest > | br, | ||
Bids | bids, | ||
double | timeLeftMs, | ||
const Json::Value & | augmentations | ||
) | [inline] |
Simple fixed price bidding strategy. Note that the router is in charge of making sure we stay within budget and don't go bankrupt.
Definition at line 126 of file bidding_agent_ex.cc.
void RTBKIT::FixedPriceBiddingAgent::pace | ( | ) | [inline] |
Simple pacing scheme which allocates 1$ to spend every period.
Definition at line 164 of file bidding_agent_ex.cc.
void RTBKIT::FixedPriceBiddingAgent::setConfig | ( | ) | [inline] |
Sets up an agent configuration for our example.
Definition at line 90 of file bidding_agent_ex.cc.