vasttracking

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package vasttracking is a reference adformat.Binding adapter (§3.2.16) for the full VAST 4.x tracking-event dictionary, used by in-stream video creatives (Format.Kind == KindVideo). Like adformat/tracking, it carries no new type in adformat's core — a VAST tracking pixel is a Field{Type: FieldURLType}, typically repeated via Field.MinCount/MaxCount (§3.2.15) so several verification vendors (IAS, DoubleVerify, Moat, ...) can fire on the same event independently, bound to a specific VAST event via this package's Tracker Binding.

Index

Constants

View Source
const (
	EventImpression    = "impression"
	EventStart         = "start"
	EventFirstQuartile = "firstQuartile"
	EventMidpoint      = "midpoint"
	EventThirdQuartile = "thirdQuartile"
	EventComplete      = "complete"
	EventPause         = "pause"
	EventResume        = "resume"
	EventMute          = "mute"
	EventUnmute        = "unmute"
	EventFullscreen    = "fullscreen"
	EventSkip          = "skip"
	EventClickThrough  = "clickThrough"
	EventClickTracking = "clickTracking"
)

VAST 4.x tracking events.

View Source
const Target = "vast_tracking"

Target identifies this adapter's Binding.Target value.

Variables

This section is empty.

Functions

func Tracker

func Tracker(event string) adformat.Binding

Tracker builds a Binding associating a Field with a VAST tracking event.

Types

type Params

type Params struct {
	Event string `json:"event"`
}

Params is the Binding.Params shape for a VAST tracking pixel Field.

func Get

func Get(f adformat.Field) (Params, bool)

Get decodes the vast_tracking binding of f, if any.

Jump to

Keyboard shortcuts

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