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

#include <agent_config.h>

List of all members.

Public Member Functions

 Creative (int width=0, int height=0, std::string name="", int id=-1, int tagId=-1)
void fromJson (const Json::Value &val)
Json::Value toJson () const
template<typename T >
const T * getProviderData (const std::string &provider) const
bool compatible (const AdSpot &spot) const
bool biddable (const std::string &exchange, const std::string &protocolVersion) const

Public Attributes

Format format
int tagId
 To bid with v0.3.
std::string name
 Purely for information (used internally)
int id
Json::Value providerConfig
ML::Spinlock lock
 lock for the provider data
std::map< std::string,
std::shared_ptr< void > > 
providerData
 List of provider-specific creative data.
Tags tags
 Tags set on the creative for elibibility filtering.
TagFilterExpression eligibilityFilter
 Filter to filter the creative against campaign eligibility.
IncludeExclude< std::string > languageFilter
IncludeExclude< CachedRegex
< boost::u32regex, Utf8String > > 
locationFilter
IncludeExclude< std::string > exchangeFilter

Static Public Attributes

static const Creative sampleLB
static const Creative sampleBB
static const Creative sampleWS

Detailed Description

Describes a creative that a agent has available.

Definition at line 34 of file agent_config.h.


Member Function Documentation

bool RTBKIT::Creative::biddable ( const std::string &  exchange,
const std::string &  protocolVersion 
) const

Is this creative biddable on the given exchange and protocol version?

Definition at line 107 of file agent_config.cc.

bool RTBKIT::Creative::compatible ( const AdSpot spot) const

Is the given ad spot compatible with the given creative format?

Definition at line 100 of file agent_config.cc.


Member Data Documentation

Configuration values; per provider eg: OpenRTB, ...

Definition at line 57 of file agent_config.h.


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