github.com/prebid/prebid-server/v2@v2.18.0/openrtb_ext/imp_rubicon.go (about)

     1  package openrtb_ext
     2  
     3  import (
     4  	"encoding/json"
     5  )
     6  
     7  // ExtImpRubicon defines the contract for bidrequest.imp[i].ext.prebid.bidder.rubicon
     8  type ExtImpRubicon struct {
     9  	AccountId        json.Number        `json:"accountId"`
    10  	SiteId           json.Number        `json:"siteId"`
    11  	ZoneId           json.Number        `json:"zoneId"`
    12  	Inventory        json.RawMessage    `json:"inventory,omitempty"`
    13  	BidOnMultiformat bool               `json:"bidonmultiformat,omitempty"`
    14  	Keywords         []string           `json:"keywords,omitempty"`
    15  	Visitor          json.RawMessage    `json:"visitor,omitempty"`
    16  	Video            rubiconVideoParams `json:"video"`
    17  	Debug            impExtRubiconDebug `json:"debug,omitempty"`
    18  	PChain           string             `json:"pchain,omitempty"`
    19  }
    20  
    21  // rubiconVideoParams defines the contract for bidrequest.imp[i].ext.prebid.bidder.rubicon.video
    22  type rubiconVideoParams struct {
    23  	Language     string      `json:"language,omitempty"`
    24  	PlayerHeight json.Number `json:"playerHeight,omitempty"`
    25  	PlayerWidth  json.Number `json:"playerWidth,omitempty"`
    26  	VideoSizeID  int         `json:"size_id,omitempty"`
    27  	Skip         int         `json:"skip,omitempty"`
    28  	SkipDelay    int         `json:"skipdelay,omitempty"`
    29  }
    30  
    31  // rubiconVideoParams defines the contract for bidrequest.imp[i].ext.prebid.bidder.rubicon.debug
    32  type impExtRubiconDebug struct {
    33  	CpmOverride float64 `json:"cpmoverride,omitempty"`
    34  }