RTBKit  0.9
Open-source framework to create real-time ad bidding systems.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Classes | Public Member Functions | Public Attributes
RTBKIT::FinishedInfo Struct Reference

#include <post_auction_loop.h>

List of all members.

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< BidRequestbidRequest
 What we bid on.
std::string bidRequestStr
std::string bidRequestStrFormat
JsonHolder augmentations
std::set< Iduids
 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< Visitvisits
bool fromOldRouter

Detailed Description

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.


Member Function Documentation

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.


Member Data Documentation

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.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator