11package openrtb
22
3- import "errors"
3+ import (
4+ "encoding/json"
5+ "errors"
6+ )
47
58// Validation errors
69var (
@@ -16,22 +19,22 @@ var (
1619// The presence of Banner, Video, and/or Native objects
1720// subordinate to the Imp object indicates the type of impression being offered.
1821type Impression struct {
19- ID string `json:"id"` // A unique identifier for this impression
20- Banner * Banner `json:"banner,omitempty"`
21- Video * Video `json:"video,omitempty"`
22- Audio * Audio `json:"audio,omitempty"`
23- Native * Native `json:"native,omitempty"`
24- Pmp * Pmp `json:"pmp,omitempty"` // A reference to the PMP object containing any Deals eligible for the impression object.
25- DisplayManager string `json:"displaymanager,omitempty"` // Name of ad mediation partner, SDK technology, etc
26- DisplayManagerVer string `json:"displaymanagerver,omitempty"` // Version of the above
27- Instl int `json:"instl,omitempty"` // Interstitial, Default: 0 ("1": Interstitial, "0": Something else)
28- TagID string `json:"tagid,omitempty"` // IDentifier for specific ad placement or ad tag
29- BidFloor float64 `json:"bidfloor,omitempty"` // Bid floor for this impression in CPM
30- BidFloorCurrency string `json:"bidfloorcur,omitempty"` // Currency of bid floor
31- Secure int `json:"secure,omitempty"` // Flag to indicate whether the impression requires secure HTTPS URL creative assets and markup.
32- Exp int `json:"exp,omitempty"` // Advisory as to the number of seconds that may elapse between the auction and the actual impression.
33- IFrameBuster []string `json:"iframebuster,omitempty"` // Array of names for supportediframe busters.
34- Ext Extension `json:"ext,omitempty"`
22+ ID string `json:"id"` // A unique identifier for this impression
23+ Banner * Banner `json:"banner,omitempty"`
24+ Video * Video `json:"video,omitempty"`
25+ Audio * Audio `json:"audio,omitempty"`
26+ Native * Native `json:"native,omitempty"`
27+ Pmp * Pmp `json:"pmp,omitempty"` // A reference to the PMP object containing any Deals eligible for the impression object.
28+ DisplayManager string `json:"displaymanager,omitempty"` // Name of ad mediation partner, SDK technology, etc
29+ DisplayManagerVer string `json:"displaymanagerver,omitempty"` // Version of the above
30+ Instl int `json:"instl,omitempty"` // Interstitial, Default: 0 ("1": Interstitial, "0": Something else)
31+ TagID string `json:"tagid,omitempty"` // IDentifier for specific ad placement or ad tag
32+ BidFloor float64 `json:"bidfloor,omitempty"` // Bid floor for this impression in CPM
33+ BidFloorCurrency string `json:"bidfloorcur,omitempty"` // Currency of bid floor
34+ Secure json. Number `json:"secure,omitempty"` // Flag to indicate whether the impression requires secure HTTPS URL creative assets and markup.
35+ Exp int `json:"exp,omitempty"` // Advisory as to the number of seconds that may elapse between the auction and the actual impression.
36+ IFrameBuster []string `json:"iframebuster,omitempty"` // Array of names for supportediframe busters.
37+ Ext Extension `json:"ext,omitempty"`
3538}
3639
3740func (imp * Impression ) assetCount () int {
0 commit comments