RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
#include <augmentor_ex.h>
Public Member Functions | |
FrequencyCapAugmentor (std::shared_ptr< Datacratic::ServiceProxies > services, const std::string &serviceName, const std::string &augmentorName="frequency-cap-ex") | |
void | init () |
A Simple frequency cap augmentor which limits the number of times an ad can be shown to a specific user. It's multithreaded and connects to the following services:
Definition at line 44 of file augmentor_ex.h.
RTBKIT::FrequencyCapAugmentor::FrequencyCapAugmentor | ( | std::shared_ptr< Datacratic::ServiceProxies > | services, |
const std::string & | serviceName, | ||
const std::string & | augmentorName = "frequency-cap-ex" |
||
) |
Note that the serviceName and augmentorName are distinct because you may have multiple instances of the service that provide the same augmentation.
Definition at line 76 of file augmentor_ex.cc.
void RTBKIT::FrequencyCapAugmentor::init | ( | ) |
Sets up the internal components of the augmentor.
Note that SyncAugmentorBase is a MessageLoop so we can attach all our other service providers to our message loop to cut down on the number of polling threads which in turns reduces the number of context switches.
Reimplemented from RTBKIT::Augmentor.
Definition at line 97 of file augmentor_ex.cc.