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

#include <bids.h>

List of all members.

Public Member Functions

bool isNullBid () const
void bid (int creativeIndex, Amount price, double priority=0.0)
Json::Value toJson () const

Static Public Member Functions

static Bid fromJson (ML::Parse_Context &)

Public Attributes

SmallIntVector availableCreatives
int spotIndex
int creativeIndex
Amount price
double priority
AccountKey account

Detailed Description

Holds a bid for a given spot.

Note that availableCreatives and spotIndex indicates what we're bidding on. They will not be serialized because it's only meant to be used to inform bidding decisions.

Definition at line 55 of file bids.h.


Member Data Documentation

Account which placed the bid. This will eventually be required to support multiple agents within a single process which is currently a work in progress.

Todo:
bid() should be changed to accept this string but ideally this should be handled in BiddingAgent.

Definition at line 84 of file bids.h.

Indexes of the creatives into the agent config's creatives array that we can use to bid.

Definition at line 64 of file bids.h.

Index of the creatives into the agent config's creatives array that we want to bid on. Note that it should be one of the indexes in info.availableCreatives. Any other indexes will be rejected by the router.

Definition at line 73 of file bids.h.


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