vast2

package module
v0.0.0-...-58d1dd4 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MIT Imports: 0 Imported by: 0

README

vast2-go

VAST 2.0 Protocol

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ad struct {
	ID      string   `xml:"id,attr"`
	InLine  *InLine  `xml:"InLine,omitempty"`
	Wrapper *Wrapper `xml:"Wrapper,omitempty"`
}

type AdSystem

type AdSystem struct {
	Version string `xml:"version,attr,omitempty"`
	Data    string `xml:",chardata"`
}

type Companion

type Companion struct {
	ID                    string          `xml:"id,attr,omitempty"`
	Width                 int             `xml:"width,attr"`
	Height                int             `xml:"height,attr"`
	ExpandedWidth         int             `xml:"expandedWidth,attr,omitempty"`
	ExpandedHeight        int             `xml:"expandedHeight,attr,omitempty"`
	ApiFramework          string          `xml:"apiFramework,attr,omitempty"`
	IFrameResource        string          `xml:"IFrameResource,omitempty"`
	HTMLResource          string          `xml:"HTMLResource,omitempty"`
	CompanionClickThrough string          `xml:"CompanionClickThrough,omitempty"`
	AltText               string          `xml:"AltText,omitempty"`
	AdParameters          string          `xml:"AdParameters,omitempty"`
	StaticResource        *StaticResource `xml:"StaticResource,omitempty"`
	TrackingEvents        *TrackingEvents `xml:"TrackingEvents,omitempty"`
}

type CompanionAds

type CompanionAds struct {
	Companion []Companion `xml:"Companion,omitempty"`
}

type Creative

type Creative struct {
	ID           string        `xml:"id,attr,omitempty"`
	Sequence     int           `xml:"sequence,attr,omitempty"`
	AdID         string        `xml:"AdID,attr,omitempty"`
	Linear       *Linear       `xml:"Linear,omitempty"`
	CompanionAds *CompanionAds `xml:"CompanionAds,omitempty"`
	NonLinearAds *NonLinearAds `xml:"NonLinearAds,omitempty"`
}

type Creatives

type Creatives struct {
	Creative []Creative `xml:"Creative"`
}

type CustomClick

type CustomClick struct {
	ID   string `xml:"id,attr,omitempty"`
	Data string `xml:",chardata"`
}

type Extension

type Extension struct {
	Type string `xml:"type,attr,omitempty"`
	Data []byte `xml:",innerxml"`
}

type Extensions

type Extensions struct {
	Extension []Extension `xml:"Extension"`
}

type Impression

type Impression struct {
	ID   string `xml:"id,attr,omitempty"`
	Data string `xml:",cdata"`
}

type InLine

type InLine struct {
	AdTitle     string       `xml:"AdTitle"`
	Description string       `xml:"Description,omitempty"`
	Survey      string       `xml:"Survey,omitempty"`
	Error       string       `xml:"Error,omitempty"`
	AdSystem    AdSystem     `xml:"AdSystem"`
	Impression  []Impression `xml:"Impression,omitempty"`
	Creatives   Creatives    `xml:"Creatives"`
	Extensions  *Extensions  `xml:"Extensions,omitempty"`
}

type Linear

type Linear struct {
	Duration       string          `xml:"Duration"`
	AdParameters   string          `xml:"AdParameters,omitempty"`
	TrackingEvents *TrackingEvents `xml:"TrackingEvents,omitempty"`
	VideoClicks    *VideoClicks    `xml:"VideoClicks,omitempty"`
	MediaFiles     MediaFiles      `xml:"MediaFiles"`
}

type MediaFile

type MediaFile struct {
	ID                  string `xml:"id,attr,omitempty"`
	Delivery            string `xml:"delivery,attr"`
	Type                string `xml:"type,attr"`
	Bitrate             int    `xml:"bitrate,attr,omitempty"`
	Width               int    `xml:"width,attr"`
	Height              int    `xml:"height,attr"`
	Scalable            bool   `xml:"scalable,attr,omitempty"`
	MaintainAspectRatio bool   `xml:"maintainAspectRatio,attr,omitempty"`
	ApiFramework        string `xml:"apiFramework,attr,omitempty"`
	Data                string `xml:",chardata"`
}

type MediaFiles

type MediaFiles struct {
	MediaFile []MediaFile `xml:"MediaFile"`
}

type NonLinear

type NonLinear struct {
	ID                    string          `xml:"id,attr,omitempty"`
	Width                 int             `xml:"width,attr"`
	Height                int             `xml:"height,attr"`
	ExpandedWidth         int             `xml:"expandedWidth,attr,omitempty"`
	ExpandedHeight        int             `xml:"expandedHeight,attr,omitempty"`
	Scalable              bool            `xml:"scalable,attr,omitempty"`
	MaintainAspectRatio   bool            `xml:"maintainAspectRatio,attr,omitempty"`
	ApiFramework          string          `xml:"apiFramework,attr,omitempty"`
	IFrameResource        string          `xml:"IFrameResource,omitempty"`
	HTMLResource          string          `xml:"HTMLResource,omitempty"`
	AdParameters          string          `xml:"AdParameters,omitempty"`
	NonLinearClickThrough string          `xml:"NonLinearClickThrough,omitempty"`
	StaticResource        *StaticResource `xml:"StaticResource,omitempty"`
}

type NonLinearAds

type NonLinearAds struct {
	NonLinear      []NonLinear     `xml:"NonLinear,omitempty"`
	TrackingEvents *TrackingEvents `xml:"TrackingEvents,omitempty"`
}

type StaticResource

type StaticResource struct {
	CreativeType string `xml:"creativeType,attr"`
	Data         string `xml:",chardata"`
}

type Tracking

type Tracking struct {
	Event string `xml:"event,attr"`
	Data  string `xml:",chardata"`
}

type TrackingEvents

type TrackingEvents struct {
	Tracking []Tracking `xml:"Tracking,omitempty"`
}

type VAST

type VAST struct {
	Version string `xml:"version,attr"`
	Ad      []Ad   `xml:"Ad"`
}

type VASTAdTagURI

type VASTAdTagURI struct {
	CDATA string `xml:",cdata"`
}

type VideoClicks

type VideoClicks struct {
	ClickThrough  string       `xml:"ClickThrough,omitempty"`
	ClickTracking []string     `xml:"ClickTracking,omitempty"`
	CustomClick   *CustomClick `xml:"CustomClick,omitempty"`
}

type Wrapper

type Wrapper struct {
	VASTAdTagURI VASTAdTagURI `xml:"VASTAdTagURI"`
	Error        string       `xml:"Error,omitempty"`
	AdSystem     AdSystem     `xml:"AdSystem"`
	Impression   []Impression `xml:"Impression,omitempty"`
	Creatives    Creatives    `xml:"Creatives"`
	Extensions   *Extensions  `xml:"Extensions,omitempty"`
}

Jump to

Keyboard shortcuts

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