beachfront

package
v0.0.0-...-97a8816 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const BannerEndpoint = "http://display.bfmio.com/prebid_display"
View Source
const BidCapacity = 5
View Source
const Seat = "beachfront"
View Source
const VideoEndpoint = "https://reachms.bfmio.com/bid.json?exchange_id="
View Source
const VideoEndpointSuffix = "&prebidserver"

Variables

This section is empty.

Functions

func NewBeachfrontSyncer

func NewBeachfrontSyncer(cfg *config.Configuration) usersync.Usersyncer

Types

type BeachfrontAdapter

type BeachfrontAdapter struct {
}

func NewBeachfrontBidder

func NewBeachfrontBidder() *BeachfrontAdapter

func (*BeachfrontAdapter) MakeBids

func (a *BeachfrontAdapter) MakeBids(internalRequest *openrtb.BidRequest, externalRequest *adapters.RequestData, response *adapters.ResponseData) (*adapters.BidderResponse, []error)

func (*BeachfrontAdapter) MakeRequests

func (a *BeachfrontAdapter) MakeRequests(request *openrtb.BidRequest) ([]*adapters.RequestData, []error)

type BeachfrontBannerRequest

type BeachfrontBannerRequest struct {
	Slots          []BeachfrontSlot `json:"slots"`
	Domain         string           `json:"domain"`
	Page           string           `json:"page"`
	Referrer       string           `json:"referrer"`
	Search         string           `json:"search"`
	Secure         int8             `json:"secure"`
	DeviceOs       string           `json:"deviceOs"`
	DeviceModel    string           `json:"deviceModel"`
	IsMobile       int8             `json:"isMobile"`
	UA             string           `json:"ua"`
	Dnt            int8             `json:"dnt"`
	User           openrtb.User     `json:"user"`
	AdapterName    string           `json:"adapterName"`
	AdapterVersion string           `json:"adapterVersion"`
	IP             string           `json:"ip"`
	RequestID      string           `json:"requestId"`
}

---------------------------------------------------

Banner

---------------------------------------------------

func NewBeachfrontBannerRequest

func NewBeachfrontBannerRequest() BeachfrontBannerRequest

type BeachfrontRequests

type BeachfrontRequests struct {
	Banner BeachfrontBannerRequest
	Video  BeachfrontVideoRequest
}

type BeachfrontResponseSlot

type BeachfrontResponseSlot struct {
	CrID  string  `json:"crid"`
	Price float64 `json:"price"`
	W     uint64  `json:"w"`
	H     uint64  `json:"h"`
	Slot  string  `json:"slot"`
	Adm   string  `json:"adm"`
}

type BeachfrontSize

type BeachfrontSize struct {
	W uint64 `json:"w"`
	H uint64 `json:"h"`
}

type BeachfrontSlot

type BeachfrontSlot struct {
	Slot     string           `json:"slot"`
	Id       string           `json:"id"` // This is the AppID, aka, exchange id on platform.beachfront.com
	Bidfloor float64          `json:"bidfloor"`
	Sizes    []BeachfrontSize `json:"sizes"`
}

type BeachfrontVideoDevice

type BeachfrontVideoDevice struct {
	UA string `json:"ua"`
	IP string `json:"ip"`
	JS string `json:"js"`
}

type BeachfrontVideoImp

type BeachfrontVideoImp struct {
	Video    BeachfrontSize `json:"video"`
	Bidfloor float64        `json:"bidfloor"`
	Id       int            `json:"id"` // A sequential count of which imp on the page this is. Since the bfm
	// 	video endpoint only returns one response for one imp, this is
	//	never going to happen. This will always be 0. @TODO - Alex
	ImpId  string `json:"impid"` // DNE in openRTB, would be "ID"
	Secure int8   `json:"secure"`
}

Soooo close, but not quite openRTB

type BeachfrontVideoRequest

type BeachfrontVideoRequest struct {
	IsPrebid bool   `json:"isPrebid"`
	AppId    string `json:"appId"`
	ID       string `json:"id"` // This ID is unique to this client page load and is sent by
	// prebid.js. I'm sending it with banner requests as "requestId" for possible future reporting.
	Imp    []BeachfrontVideoImp  `json:"imp"`
	Site   openrtb.Site          `json:"site"`
	Device BeachfrontVideoDevice `json:"device"`
	User   openrtb.User          `json:"user"`
	Cur    []string              `json:"cur"`
}

func NewBeachfrontVideoRequest

func NewBeachfrontVideoRequest() BeachfrontVideoRequest

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL