modulepackage
0.3.1
Repository: https://github.com/exaring/go-vast-struct.git
Documentation: pkg.go.dev
# README
VAST Golang Library
Yet another fork as https://github.com/albenik/go-vast-struct seems to be the most promising one, but some newer XML attributes from https://github.com/rs/vast are missing. We will try to cherry-pick and provide merge requests.
Cloned from
- https://github.com/albenik/go-vast-struct
- https://github.com/streamrail/vast-1
- https://github.com/rs/vast
Usage
go get -u https://github.com/exaring/go-vast-struct
import "https://github.com/exaring/go-vast-struct"
# Functions
FromXML is a custom XML unmarshalling method, with some fixes on top of the native encoding/xml package.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Ad represent an <Ad> child tag in a VAST document
Each <Ad> contains a single <InLine> element or <Wrapper> element (but never both).
AdParameters defines arbitrary ad parameters.
AdSystem contains information about the system that returned the ad.
No description provided by the author
AdVerifications is a container for one or more <Verification> elements.
CDATAString ...
Companion defines a companion ad.
CompanionAds contains companions creatives.
CompanionAdsWrapper contains companions creatives in a wrapper.
No description provided by the author
No description provided by the author
CompanionWrapper defines a companion ad in a wrapper.
Creative is a file that is part of a VAST ad.
CreativeWrapper defines wrapped creative's parent trackers.
No description provided by the author
ExecutableResource is a reference to a non-JavaScript or custom-integration resource intended for collecting verification data via the listed apiFramework.
Extension represent aribtrary XML provided by the platform to extend the VAST response.
HTMLResource is a container for HTML data.
Icon represents advertising industry initiatives like AdChoices.
Impression is a URI that directs the video player to a tracking resource file that the video player should request when the first frame of the ad is displayed.
InLine is a vast <InLine> ad element containing actual ad definition
The last ad server in the ad supply chain serves an <InLine> element.
JavaScriptResource is a container for the URI to the JavaScript file used to collect verification data.
Linear is the most common type of video advertisement trafficked in the industry is a “linear ad”, which is an ad that displays in the same area as the content but not at the same time as the content.
LinearWrapper defines a wrapped linear creative.
MediaFile defines a reference to a linear creative asset.
NonLinear defines a non linear ad.
NonLinearAds contains non linear creatives.
NonLinearAdsWrapper contains non linear creatives in a wrapper.
NonLinearWrapper defines a non linear ad in a wrapper.
Offset represents either a vast.Duration or a percentage of the video duration.
Pricing provides a value that represents a price that can be used by real-time bidding (RTB) systems.
StaticResource is the URL to a static file, such as an image or SWF file.
Tracking defines an event tracking URL.
VAST is the root <VAST> tag.
The <Verification> element contains the executable and bootstrapping data required to run the measurement code for a single verification vendor.
VerificationParameters contains a CDATA-wrapped string intended for bootstrapping the verification code and providing metadata about the current impression.
VideoClick defines a click URL for a linear creative.
VideoClicks contains types of video clicks.
Wrapper element contains a URI reference to a vendor ad server (often called a third party ad server).
# Type aliases
Duration is a VAST duration expressed a hh:mm:ss.