events

package
v2.32.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Required
	TemplateUrl        = "%v/event?t=%v&b=%v&a=%v"
	TypeParameter      = "t"
	VTypeParameter     = "vtype"
	BidIdParameter     = "b"
	AccountIdParameter = "a"

	// Optional
	BidderParameter          = "bidder"
	TimestampParameter       = "ts"
	FormatParameter          = "f"
	AnalyticsParameter       = "x"
	IntegrationTypeParameter = "int"
)
View Source
const (
	AccountParameter     = "a"
	IntegrationParameter = "int"
	ImpressionCloseTag   = "</Impression>"
	ImpressionOpenTag    = "<Impression>"
)

Variables

This section is empty.

Functions

func EventRequestToUrl

func EventRequestToUrl(externalUrl string, request *analytics.EventRequest) string

EventRequestToUrl converts an analytics.EventRequest to an URL

func GetVastUrlTracking

func GetVastUrlTracking(externalUrl string, bidid string, bidder string, accountId string, timestamp int64, integration string) string

GetVastUrlTracking creates a vast url tracking

func HandleAccountServiceErrors

func HandleAccountServiceErrors(errs []error) (status int, messages []string)

HandleAccountServiceErrors handles account.GetAccount errors

func ModifyVastXmlJSON

func ModifyVastXmlJSON(externalUrl string, data json.RawMessage, bidid, bidder, accountId string, timestamp int64, integrationType string) json.RawMessage

ModifyVastXmlJSON modifies BidCacheRequest element Vast XML data

func ModifyVastXmlString

func ModifyVastXmlString(externalUrl, vast, bidid, bidder, accountID string, timestamp int64, integrationType string) (string, bool)

ModifyVastXmlString rewrites and returns the string vastXML and a flag indicating if it was modified

func ParseEventRequest

func ParseEventRequest(r *http.Request) (*analytics.EventRequest, []error)

ParseEventRequest parses an analytics.EventRequest from an Http request

Types

type BidCacheRequest

type BidCacheRequest struct {
	Puts []prebid_cache_client.Cacheable `json:"puts"`
}

func ParseVTrackRequest

func ParseVTrackRequest(httpRequest *http.Request, maxRequestSize int64) (req *BidCacheRequest, err error)

ParseVTrackRequest parses a BidCacheRequest from an HTTP Request

type BidCacheResponse

type BidCacheResponse struct {
	Responses []CacheObject `json:"responses"`
}

type CacheObject

type CacheObject struct {
	UUID string `json:"uuid"`
}

Jump to

Keyboard shortcuts

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