Skip to content

Instantly share code, notes, and snippets.

@Gocrazy
Created January 13, 2014 21:45
Show Gist options
  • Select an option

  • Save Gocrazy/8408762 to your computer and use it in GitHub Desktop.

Select an option

Save Gocrazy/8408762 to your computer and use it in GitHub Desktop.
#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"
namespace Smaato {
using namespace Datacratic;
using std::string;
using std::vector;
using OpenRTB::Device;
using OpenRTB::User;
using OpenRTB::Impression;
using OpenRTB::Site;
using OpenRTB::App;
struct BidRequest {
OpenRTB::AuctionType at; ///< Auction type (1=first/2=second party)
Optional<Device> device;
Json::Value ext;
Id id;
vector<Impression> imp;
Optional<Site> site;
vector<string> cur;
Optional<App> app;
Optional<User> user;
Json::Value unparseable; ///< Unparseable fields get put here
vector<string> wseat;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment