Skip to content

Instantly share code, notes, and snippets.

#include "smaato_exchange_connector.h"
#include "rtbkit/plugins/bid_request/openrtb_bid_request.h"
#include "rtbkit/plugins/exchange/http_auction_handler.h"
#include "rtbkit/core/agent_configuration/agent_config.h"
#include "openrtb/openrtb_parsing.h"
#include "soa/types/json_printing.h"
#include <boost/any.hpp>
#include <boost/lexical_cast.hpp>
#include "jml/utils/file_functions.h"
#pragma once
#include "rtbkit/plugins/exchange/http_exchange_connector.h"
namespace RTBKIT {
struct SmaatoExchangeConnector : public HttpExchangeConnector {
SmaatoExchangeConnector(ServiceBase & owner, const std::string & name);
SmaatoExchangeConnector(const std::string & name,
std::shared_ptr<ServiceProxies> proxies);
#pragma once
#include "rtbkit/plugins/exchange/http_exchange_connector.h"
namespace RTBKIT {
struct SmaatoExchangeConnector : public HttpExchangeConnector {
SmaatoExchangeConnector(ServiceBase & owner, const std::string & name);
SmaatoExchangeConnector(const std::string & name,
std::shared_ptr<ServiceProxies> proxies);
#include "smaato_exchange_connector.h"
#include "rtbkit/plugins/bid_request/openrtb_bid_request.h"
#include "rtbkit/plugins/exchange/http_auction_handler.h"
#include "rtbkit/core/agent_configuration/agent_config.h"
#include "rtbkit/plugins/bid_request/smaato_parsing.h"
#include "rtbkit/plugins/bid_request/smaato_bid_request.h"
#include "openrtb/openrtb_parsing.h"
#include "soa/types/json_printing.h"
#include <boost/any.hpp>
#include <boost/lexical_cast.hpp>
{
"at": 2,
"device": {
"connectiontype": 0,
"devicetype": 1,
"geo": {
"lat": 42.357777,
"lon": -71.06167,
"type": 3
},
#pragma once
#include "rtbkit/common/bid_request.h"
#include "smaato.h"
#include "jml/utils/parse_context.h"
namespace RTBKIT {
BidRequest *
fromSmaato(Smaato::BidRequest && req,
#include "smaato_bid_request.h"
#include "smaato.h"
#include "smaato_parsing.h"
#include "jml/utils/json_parsing.h"
using namespace std;
namespace RTBKIT {
BidRequest *
#include "smaato_parsing.h"
#include "soa/types/json_parsing.h"
using namespace Smaato;
using namespace std;
namespace Datacratic {
DefaultDescription<BidRequest>::
DefaultDescription()
#pragma once
#include "soa/types/value_description.h"
#include "soa/types/basic_value_descriptions.h"
#include "soa/types/json_parsing.h"
#include "smaato.h"
#include <boost/lexical_cast.hpp>
namespace Datacratic {
template<>
#pragma once
#include <vector>
#include "soa/types/id.h"
#include "soa/types/string.h"
#include "soa/types/url.h"
#include "jml/utils/compact_vector.h"
#include "soa/jsoncpp/value.h"
#include "openrtb/openrtb.h"
#include "openrtb/openrtb_parsing.h"