analytics

package
v0.166.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 5 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 CookieSyncObject

type CookieSyncObject struct {
	Status       int
	Errors       []error
	BidderStatus []*usersync.CookieSyncBidders
}

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"`
}

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"
)

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 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