Documentation
¶
Overview ¶
Package examples embeds the adformat/examples/*.yaml sample formats (§4 of the design plan) via embed.FS, so they can be loaded without a fragile runtime.Caller + os.Open dance (the old admodels/types/format_mock.go approach) and reused both by tests and by adformat/adformattest.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FS embed.FS
View Source
var MultiscreenBanner = adformat.Format{ Codename: "multiscreen_banner", Title: "Multi-screen Interactive Banner", Kind: adformat.KindBanner, Tags: []string{"expandable", "multi-screen"}, Sizes: []adformat.SizeOption{adformat.FixedSize("", 320, 480)}, Config: &multiscreenConfig, }
MultiscreenBanner is the Go var-table equivalent of multiscreen.yaml (§4.7/§3.2.10).
View Source
var Names = []string{
"banner.yaml",
"banner_fixed.yaml",
"popunder.yaml",
"native.yaml",
"video_preroll.yaml",
"push_ad.yaml",
"playable.yaml",
"multiscreen.yaml",
}
Names of every embedded example file, in the same order as presented in §4 of the design plan.
View Source
var NativeAd = adformat.Format{ Codename: "native", Title: "Native Ad", Kind: adformat.KindNative, Config: &nativeConfig, }
NativeAd is the Go var-table equivalent of native.yaml (§3.2.10).
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.