Skip to content

Commit

Permalink
Change expected nodes greater than 2 to less than or equal to 2
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianozurita committed Jan 17, 2025
1 parent 1ee929f commit 1af0c02
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion adapters/eplanning/eplanning.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func (adapter *EPlanningAdapter) MakeRequests(request *openrtb2.BidRequest, reqI
query.Set("vv", vastVersionDefault)
}
if request.Source != nil && request.Source.Ext != nil {
if openRtbSchain := unmarshalSupplyChain(request); openRtbSchain != nil && len(openRtbSchain.Nodes) > 2 {
if openRtbSchain := unmarshalSupplyChain(request); openRtbSchain != nil && len(openRtbSchain.Nodes) <= 2 {
if schainValue := makeSupplyChain(*openRtbSchain); schainValue != "" {
query.Set("sch", schainValue)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
"sid": "abcd",
"hp": 1,
"ext": 1
},
{
"asi": "exchange3.com",
"sid": "abcdf",
"hp": 1,
"ext": 1
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,6 @@
"sid": "1234",
"hp": 1,
"ext": "text"
},
{
"asi": "exchange2.com",
"sid": "abcd",
"hp": 1,
"ext": 1
},
{
"asi": "exchange3.com",
"sid": "abcdf",
"hp": 1,
"ext": 1
}
]
}
Expand Down Expand Up @@ -55,7 +43,7 @@
"httpCalls": [
{
"expectedRequest": {
"uri": "http://rtb.e-planning.net/pbs/1/12345/1/FILE/ROS?e=300x250%3A300x250&ncb=1&sch=1.0%2C1%21exchange1.com%2C1234%2C1%2C%2C%2C%2C%2522text%2522%21exchange2.com%2Cabcd%2C1%2C%2C%2C%2C1%21exchange3.com%2Cabcdf%2C1%2C%2C%2C%2C1&ur=FILE",
"uri": "http://rtb.e-planning.net/pbs/1/12345/1/FILE/ROS?e=300x250%3A300x250&ncb=1&sch=1.0%2C1%21exchange1.com%2C1234%2C1%2C%2C%2C%2C%2522text%2522&ur=FILE",
"body": {},
"impIDs":["test-imp-id"]
},
Expand Down

0 comments on commit 1af0c02

Please sign in to comment.