![]() |
RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
#include <post_auction_loop.h>
Classes | |
struct | Visit |
Public Member Functions | |
void | addUids (const UserIds &toAdd) |
Json::Value | bidToJson () const |
bool | hasWin () const |
void | setWin (Date winTime, BidStatus status, Amount winPrice, const std::string &winMeta) |
Json::Value | winToJson () const |
void | addVisit (Date visitTime, const std::string &visitMeta, const SegmentList &channels) |
Json::Value | visitsToJson () const |
Json::Value | toJson () const |
std::string | serializeToString () const |
void | reconstituteFromString (const std::string &str) |
Public Attributes | |
Date | auctionTime |
Time at which the auction started. | |
Id | auctionId |
Auction ID from host. | |
Id | adSpotId |
Spot ID from host. | |
int | spotIndex |
std::shared_ptr< BidRequest > | bidRequest |
What we bid on. | |
std::string | bidRequestStr |
std::string | bidRequestStrFormat |
JsonHolder | augmentations |
std::set< Id > | uids |
All UIDs for this user. | |
SegmentList | visitChannels |
Date | bidTime |
Time at which we bid. | |
Auction::Response | bid |
Bid response. | |
Date | winTime |
Time at which win received. | |
BidStatus | reportedStatus |
Whether we think we won it or lost it. | |
Amount | winPrice |
Win price. | |
std::string | winMeta |
Metadata from win. | |
CampaignEvents | campaignEvents |
std::vector< Visit > | visits |
bool | fromOldRouter |
Information we track (persistently) about an auction that has finished (either won or lost). We keep this around for an hour waiting for impressions, clicks or conversions; this structure contains the information necessary to join them up.
Definition at line 71 of file post_auction_loop.h.
void RTBKIT::FinishedInfo::addUids | ( | const UserIds & | toAdd | ) | [inline] |
Add all of the given UIDs to the set.
Definition at line 95 of file post_auction_loop.h.
void RTBKIT::FinishedInfo::addVisit | ( | Date | visitTime, |
const std::string & | visitMeta, | ||
const SegmentList & | channels | ||
) |
Add a visit to the visits array.
Definition at line 124 of file post_auction_loop.cc.
The set of channels that are associated with this request. They are copied here from the winning agent's configuration so that we know how to filter and route the visits.
Definition at line 91 of file post_auction_loop.h.