forked from bsm/openrtb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
native.go
16 lines (15 loc) · 1.19 KB
/
native.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package openrtb
// This object represents a native type impression. Native ad units are intended to blend seamlessly into
// the surrounding content (e.g., a sponsored Twitter or Facebook post). As such, the response must be
// well-structured to afford the publisher fine-grained control over rendering.
// The presence of a Native as a subordinate of the Imp object indicates that this impression is offered as
// a native type impression. At the publisher’s discretion, that same impression may also be offered as
// banner and/or video by also including as Imp subordinates the Banner and/or Video objects,
// respectively. However, any given bid for the impression must conform to one of the offered types.
type Native struct {
Request Extension `json:"request"` // Request payload complying with the Native Ad Specification.
Ver string `json:"ver,omitempty"` // Version of the Native Ad Specification to which request complies; highly recommended for efficient parsing.
API []int `json:"api,omitempty"` // List of supported API frameworks for this impression.
BAttr []int `json:"battr,omitempty"` // Blocked creative attributes
Ext Extension `json:"ext,omitempty"`
}