![]() |
RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
#include <blacklist.h>
Classes | |
struct | Entry |
Public Member Functions | |
bool | matches (const BidRequest &request, const std::string &agent, const AgentConfig &agentConfig) const |
Date | add (const BidRequest &bidRequest, const std::string &agent, const AgentConfig &agentConfig) |
Date | expire (Date now) |
Public Attributes | |
std::vector< Entry > | entries |
Date | earliestExpiry |
For the given user, contains information on who has blacklisted them for how much time.
Definition at line 30 of file blacklist.h.
Date RTBKIT::BlacklistInfo::add | ( | const BidRequest & | bidRequest, |
const std::string & | agent, | ||
const AgentConfig & | agentConfig | ||
) |
Add the given entry to the blacklist. Returns Date() if the entry is not the earliest expiring entry, or the date of the new expiry if not.
Definition at line 15 of file blacklist.cc.