Skip to content

Commit

Permalink
Rubicon Adapter: remove pchain support
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoxaAntoxic committed Jan 20, 2025
1 parent 0a24410 commit e3c1c0e
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 10 deletions.
6 changes: 1 addition & 5 deletions adapters/rubicon/rubicon.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ func (a *RubiconAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *ada
rubiconRequest.App = &appCopy
}

if request.Source != nil || rubiconExt.PChain != "" {
if request.Source != nil {
var sourceCopy openrtb2.Source
if request.Source != nil {
sourceCopy = *request.Source
Expand Down Expand Up @@ -465,10 +465,6 @@ func (a *RubiconAdapter) MakeRequests(request *openrtb2.BidRequest, reqInfo *ada
}
}

if rubiconExt.PChain != "" {
sourceCopy.PChain = rubiconExt.PChain
}

rubiconRequest.Source = &sourceCopy
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@
"bundle": "com.wls.testwlsapplication"
},
"source": {
"pchain": "pchain",
"ext": {
"schain": {
"complete": 0,
Expand Down
3 changes: 0 additions & 3 deletions adapters/rubicon/rubicontest/exemplary/simple-banner.json
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,6 @@
"id": "1",
"bundle": "com.wls.testwlsapplication"
},
"source": {
"pchain": "pchain"
},
"imp": [
{
"id": "test-imp-id",
Expand Down
1 change: 0 additions & 1 deletion openrtb_ext/imp_rubicon.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ type ExtImpRubicon struct {
Visitor json.RawMessage `json:"visitor,omitempty"`
Video rubiconVideoParams `json:"video"`
Debug impExtRubiconDebug `json:"debug,omitempty"`
PChain string `json:"pchain,omitempty"`
}

// rubiconVideoParams defines the contract for bidrequest.imp[i].ext.prebid.bidder.rubicon.video
Expand Down

0 comments on commit e3c1c0e

Please sign in to comment.