analytics

package
v0.220.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: Apache-2.0 Imports: 4 Imported by: 29

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmpObject

type AmpObject struct {
	Status             int
	Errors             []error
	Request            *openrtb2.BidRequest
	AuctionResponse    *openrtb2.BidResponse
	AmpTargetingValues map[string]string
	Origin             string
	StartTime          time.Time
}

Loggable object of a transaction at /openrtb2/amp endpoint

type Analytics

type Analytics string

Analytics indicates if the notification event should be handled or not

const (
	Enabled  Analytics = "1"
	Disabled Analytics = "0"
)

type AuctionObject

type AuctionObject struct {
	Status    int
	Errors    []error
	Request   *openrtb2.BidRequest
	Response  *openrtb2.BidResponse
	Account   *config.Account
	StartTime time.Time
}

Loggable object of a transaction at /openrtb2/auction endpoint

type CookieSyncBidder added in v0.173.0

type CookieSyncBidder struct {
	BidderCode   string        `json:"bidder"`
	NoCookie     bool          `json:"no_cookie,omitempty"`
	UsersyncInfo *UsersyncInfo `json:"usersync,omitempty"`
}

type CookieSyncObject

type CookieSyncObject struct {
	Status       int
	Errors       []error
	BidderStatus []*CookieSyncBidder
}

Loggable object of a transaction at /cookie_sync

type EventRequest

type EventRequest struct {
	Type        EventType      `json:"type,omitempty"`
	Format      ResponseFormat `json:"format,omitempty"`
	Analytics   Analytics      `json:"analytics,omitempty"`
	BidID       string         `json:"bidid,omitempty"`
	AccountID   string         `json:"account_id,omitempty"`
	Bidder      string         `json:"bidder,omitempty"`
	Timestamp   int64          `json:"timestamp,omitempty"`
	Integration string         `json:"integration,omitempty"`
	VType       VastType       `json:"vtype,omitempty"`
}

type EventType

type EventType string

EventType enumerates the values of events Prebid Server can receive for an ad.

const (
	Win  EventType = "win"
	Imp  EventType = "imp"
	Vast EventType = "vast"
)

Possible values of events Prebid Server can receive for an ad.

type NotificationEvent

type NotificationEvent struct {
	Request *EventRequest   `json:"request"`
	Account *config.Account `json:"account"`
}

NotificationEvent is a loggable object

type PBSAnalyticsModule

type PBSAnalyticsModule interface {
	LogAuctionObject(*AuctionObject)
	LogVideoObject(*VideoObject)
	LogCookieSyncObject(*CookieSyncObject)
	LogSetUIDObject(*SetUIDObject)
	LogAmpObject(*AmpObject)
	LogNotificationEventObject(*NotificationEvent)
}

type ResponseFormat

type ResponseFormat string

ResponseFormat enumerates the values of a Prebid Server event.

const (
	// Blank describes an event which returns an HTTP 200 with an empty body.
	Blank ResponseFormat = "b"
	// Image describes an event which returns an HTTP 200 with a PNG body.
	Image ResponseFormat = "i"
)

type SetUIDObject

type SetUIDObject struct {
	Status  int
	Bidder  string
	UID     string
	Errors  []error
	Success bool
}

Loggable object of a transaction at /setuid

type UsersyncInfo added in v0.173.0

type UsersyncInfo struct {
	URL         string `json:"url,omitempty"`
	Type        string `json:"type,omitempty"`
	SupportCORS bool   `json:"supportCORS,omitempty"`
}

type VastType added in v0.205.0

type VastType string

VastType enumerates the values of vast type events Prebid Server can receive

const (
	Start         VastType = "start"
	FirstQuartile VastType = "firstQuartile"
	MidPoint      VastType = "midPoint"
	ThirdQuartile VastType = "thirdQuartile"
	Complete      VastType = "complete"
)

Possible value of VastType event prebid server can receive.

type VideoObject

type VideoObject struct {
	Status        int
	Errors        []error
	Request       *openrtb2.BidRequest
	Response      *openrtb2.BidResponse
	VideoRequest  *openrtb_ext.BidRequestVideo
	VideoResponse *openrtb_ext.BidResponseVideo
	StartTime     time.Time
}

Loggable object of a transaction at /openrtb2/video endpoint

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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