![]() |
RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
#include <null_banker.h>
Public Member Functions | |
| NullBanker (bool authorize=false) | |
| virtual bool | authorizeBid (const AccountKey &account, const std::string &item, Amount amount) |
| virtual void | commitBid (const AccountKey &account, const std::string &item, Amount amountPaid, const LineItems &lineItems) |
| virtual void | forceWinBid (const AccountKey &account, Amount amountPaid, const LineItems &lineItems) |
| virtual void | attachBid (const AccountKey &account, const std::string &item, Amount amountAuthorized) |
| virtual Amount | detachBid (const AccountKey &account, const std::string &item) |
| virtual ShadowAccount | addSpendAccountSync (const AccountKey &account, CurrencyPool accountFloat=CurrencyPool()) |
Protected Member Functions | |
| virtual void | sanityCheck (const std::string &campaign) const |
Protected Attributes | |
| bool | authorize_ |
Friends | |
| class | Datacratic::JS::NullBankerJS |
A null banker that automatically either authorizes or rejects every request.
Definition at line 45 of file null_banker.h.
| void RTBKIT::NullBanker::commitBid | ( | const AccountKey & | account, |
| const std::string & | item, | ||
| Amount | amountPaid, | ||
| const LineItems & | lineItems | ||
| ) | [virtual] |
Commit a bid. This is used internally to both cancel and win bids. Asynchonous and returns no value.
Implements RTBKIT::Banker.
Definition at line 74 of file null_banker.cc.
1.7.6.1