adunitconfig

package
v2.10.0-ow Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAdUnitUnmarshal = errors.New("unmarshal error adunitconfig")

Functions

This section is empty.

Types

type AdConfig

type AdConfig struct {
	BidFloor    *float64                     `json:"bidfloor,omitempty"`
	BidFloorCur *string                      `json:"bidfloorcur,omitempty"`
	Floors      *openrtb_ext.PriceFloorRules `json:"floors,omitempty"`

	Exp                *int             `json:"exp,omitempty"`
	Banner             *Banner          `json:"banner,omitempty"`
	Native             *Native          `json:"native,omitempty"`
	Video              *Video           `json:"video,omitempty"`
	App                *openrtb2.App    `json:"app,omitempty"`
	Device             *openrtb2.Device `json:"device,omitempty"`
	Transparency       *Transparency    `json:"transparency,omitempty"`
	Regex              *bool            `json:"regex,omitempty"`
	UniversalPixel     []UniversalPixel `json:"universalpixel,omitempty"`
	EnableGAMUrlLookup bool             `json:"enablegamurllookup,omitempty"`
}

type AdUnitConfig

type AdUnitConfig struct {
	ConfigPattern string               `json:"configPattern,omitempty"`
	Regex         bool                 `json:"regex,omitempty"`
	Config        map[string]*AdConfig `json:"config"`
}

AdUnitConfig type definition for Ad Unit config parsed from stored config JSON

type Banner struct {
	Enabled *bool         `json:"enabled,omitempty"`
	Config  *BannerConfig `json:"config,omitempty"`
}

type BannerConfig

type BannerConfig struct {
	openrtb2.Banner
	ClientConfig json.RawMessage `json:"clientconfig,omitempty"`
}

type Content

type Content struct {
	Mappings  map[string]openrtb_ext.TransparencyRule `json:"mappings,omitempty"`
	Dimension []string                                `json:"dimension,omitempty"`
}

type Native

type Native struct {
	Enabled *bool         `json:"enabled,omitempty"`
	Config  *NativeConfig `json:"config,omitempty"`
}

type NativeConfig

type NativeConfig struct {
	openrtb2.Native
	ClientConfig json.RawMessage `json:"clientconfig,omitempty"`
}

type Transparency

type Transparency struct {
	Content Content `json:"content,omitempty"`
}

type UniversalPixel

type UniversalPixel struct {
	Id        int      `json:"id,omitempty"`
	Pixel     string   `json:"pixel,omitempty"`
	PixelType string   `json:"pixeltype,omitempty"`
	Pos       string   `json:"pos,omitempty"`
	MediaType string   `json:"mediatype,omitempty"`
	Partners  []string `json:"partners,omitempty"`
}

Struct for UniversalPixel

type Video

type Video struct {
	Enabled *bool        `json:"enabled,omitempty"`
	Config  *VideoConfig `json:"config,omitempty"`
}

type VideoConfig

type VideoConfig struct {
	openrtb2.Video
	ConnectionType []int           `json:"connectiontype,omitempty"`
	ClientConfig   json.RawMessage `json:"clientconfig,omitempty"`
}

Jump to

Keyboard shortcuts

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