Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions openrtb2/native.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,19 @@ type Native struct {
// Markup Request Object, section 4.1 of OpenRTB Native 1.1+.
Request string `json:"request,omitempty"`

// this is the native request object for Magnite on native version 1.0.
RequestObject string `json:"requestobj,omitempty"`
// Attribute:
// requestobj
// Type:
// object
// Description:
// Native request as a JSON object (not escaped string).
// Used by some exchanges (e.g., Magnite) to support both
// request (escaped string) and requestobj (unescaped object)
// simultaneously. This allows DSPs to parse the native request
// without double-decoding the JSON string.
// When populated, this should contain the marshaled native
// request object that corresponds to the "request" field.
RequestObject json.RawMessage `json:"requestobj,omitempty"`

// Attribute:
// ver
Expand Down