diff --git a/openrtb2/native.go b/openrtb2/native.go index d1867f0..ed56f11 100644 --- a/openrtb2/native.go +++ b/openrtb2/native.go @@ -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