RTBKit  0.9
Open-source framework to create real-time ad bidding systems.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Public Attributes
RTBKIT::FixedPriceBiddingAgent Struct Reference
Inheritance diagram for RTBKIT::FixedPriceBiddingAgent:
RTBKIT::BiddingAgent Datacratic::ServiceBase Datacratic::MessageLoop Datacratic::EventRecorder Datacratic::Epoller Datacratic::AsyncEventSource

List of all members.

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

Detailed Description

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.


Member Function Documentation

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.

Simple pacing scheme which allocates 1$ to spend every period.

Definition at line 164 of file bidding_agent_ex.cc.

Sets up an agent configuration for our example.

Definition at line 90 of file bidding_agent_ex.cc.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator