adhese

package
v0.192.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Builder

func Builder(bidderName openrtb_ext.BidderName, config config.Adapter) (adapters.Bidder, error)

Builder builds a new instance of the Adhese adapter for the given bidder with the given config.

func ContainsAny

func ContainsAny(raw string, keys []string) bool

func WrapReqError

func WrapReqError(errorStr string) *errortypes.BadInput

func WrapServerError

func WrapServerError(errorStr string) *errortypes.BadServerResponse

Types

type AdheseAdapter

type AdheseAdapter struct {
	// contains filtered or unexported fields
}

func (*AdheseAdapter) MakeBids

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

func (*AdheseAdapter) MakeRequests

func (a *AdheseAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *adapters.ExtraRequestInfo) ([]*adapters.RequestData, []error)

type AdheseBid

type AdheseBid struct {
	Origin         string               `json:"origin"`
	OriginData     openrtb2.BidResponse `json:"originData"`
	OriginInstance string               `json:"originInstance,omitempty"`
	Body           string               `json:"body,omitempty"`
	Height         string               `json:"height"`
	Width          string               `json:"width"`
	Extension      Prebid               `json:"extension"`
}

type AdheseExt

type AdheseExt struct {
	Id                string `json:"id"`
	OrderId           string `json:"orderId"`
	ImpressionCounter string `json:"impressionCounter"`
	Tag               string `json:"tag,omitempty"`
	Ext               string `json:"ext"`
}

type AdheseOriginData

type AdheseOriginData struct {
	Priority                  string `json:"priority"`
	OrderProperty             string `json:"orderProperty"`
	AdFormat                  string `json:"adFormat"`
	AdType                    string `json:"adType"`
	AdspaceId                 string `json:"adspaceId"`
	LibId                     string `json:"libId"`
	SlotID                    string `json:"slotID,omitempty"`
	ViewableImpressionCounter string `json:"viewableImpressionCounter"`
}

type CPM

type CPM struct {
	Cpm CPMValues `json:"cpm"`
}

type CPMValues

type CPMValues struct {
	Amount   string `json:"amount"`
	Currency string `json:"currency"`
}

type Prebid

type Prebid struct {
	Prebid CPM `json:"prebid"`
}

Jump to

Keyboard shortcuts

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