![]() |
RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
00001 /* openrtb_bid_request.h -*- C++ -*- 00002 Jeremy Barnes, 19 February 2013 00003 Copyright (c) 2013 Datacratic Inc. All rights reserved. 00004 00005 Bid request support for openRTB. 00006 */ 00007 00008 #pragma once 00009 00010 00011 #include "rtbkit/common/bid_request.h" 00012 #include "jml/utils/parse_context.h" 00013 00014 namespace RTBKIT { 00015 00016 BidRequest * 00017 fromOpenRtb(OpenRTB::BidRequest && req, 00018 const std::string & provider, 00019 const std::string & exchange); 00020 00021 00022 /*****************************************************************************/ 00023 /* OPENRTB BID REQUEST PARSER */ 00024 /*****************************************************************************/ 00025 00029 struct OpenRtbBidRequestParser { 00030 00031 static BidRequest * 00032 parseBidRequest(const std::string & jsonValue, 00033 const std::string & provider, 00034 const std::string & exchange = ""); 00035 00036 static BidRequest * 00037 parseBidRequest(ML::Parse_Context & context, 00038 const std::string & provider, 00039 const std::string & exchange = ""); 00040 00041 }; 00042 00043 00044 } // namespace RTBKIT