forked from bsm/openrtb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
response.go
15 lines (13 loc) · 908 Bytes
/
response.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package response
import (
"encoding/json"
)
// Response is the native object is the top level JSON object which identifies a native response.
type Response struct {
Version string `json:"ver,omitempty"` // Version of the Native Markup
Assets []Asset `json:"assets"` // An array of Asset Objects
Link Link `json:"link"` // Destination Link. This is default link object for the ad
ImpTrackers []string `json:"imptrackers,omitempty"` // Array of impression tracking URLs, expected to return a 1x1 image or 204 response
JSTracker string `json:"jstracker,omitempty"` // Optional JavaScript impression tracker. This is a valid HTML, Javascript is already wrapped in <script> tags. It should be executed at impression time where it can be supported
Ext json.RawMessage `json:"ext,omitempty"`
}