RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
Public Member Functions | |
AdServerConnector (const std::string &serviceName, const std::shared_ptr< Datacratic::ServiceProxies > &proxy) | |
void | init (std::shared_ptr< ConfigurationService > config) |
virtual void | shutdown () |
virtual void | start () |
void | recordUptime () const |
void | publishWin (const Id &auctionId, const Id &adSpotId, Amount winPrice, Date timestamp, const JsonHolder &winMeta, const UserIds &ids, const AccountKey &account, Date bidTimestamp) |
void | publishLoss (const Id &auctionId, const Id &adSpotId, Date timestamp, const JsonHolder &lossMeta, const AccountKey &account, Date bidTimestamp) |
void | publishCampaignEvent (const std::string &label, const Id &auctionId, const Id &adSpotId, Date timestamp, const JsonHolder &impressionMeta, const UserIds &ids) |
Public Attributes | |
Date | startTime_ |
Definition at line 27 of file adserver_connector.h.
void RTBKIT::AdServerConnector::publishCampaignEvent | ( | const std::string & | label, |
const Id & | auctionId, | ||
const Id & | adSpotId, | ||
Date | timestamp, | ||
const JsonHolder & | impressionMeta, | ||
const UserIds & | ids | ||
) |
Publish a campaign event into the post auction loop, to be passed on to the agent that bid on it.
If the spot ID is empty, then the click will be sent to all agents that had a win on the auction.
Definition at line 141 of file adserver_connector.cc.
void RTBKIT::AdServerConnector::publishLoss | ( | const Id & | auctionId, |
const Id & | adSpotId, | ||
Date | timestamp, | ||
const JsonHolder & | lossMeta, | ||
const AccountKey & | account, | ||
Date | bidTimestamp | ||
) |
Publish a LOSS into the post auction loop. Thread safe and asynchronous. Note that this method ONLY is useful for simulations; otherwise losses are implicit.
Definition at line 116 of file adserver_connector.cc.
void RTBKIT::AdServerConnector::publishWin | ( | const Id & | auctionId, |
const Id & | adSpotId, | ||
Amount | winPrice, | ||
Date | timestamp, | ||
const JsonHolder & | winMeta, | ||
const UserIds & | ids, | ||
const AccountKey & | account, | ||
Date | bidTimestamp | ||
) |
Publish a WIN into the post auction loop. Thread safe and asynchronous.
Definition at line 87 of file adserver_connector.cc.