forked from prebid/prebid-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accept bidfloor from impression to fix issue prebid#1787 for sovrn ad…
…apter (prebid#1886)
- Loading branch information
1 parent
1284650
commit 7bab916
Showing
5 changed files
with
501 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
126 changes: 126 additions & 0 deletions
126
adapters/sovrn/sovrntest/supplemental/both-custom-default-bidfloor.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
{ | ||
"w": 300, | ||
"h": 600 | ||
} | ||
] | ||
}, | ||
"bidfloor": 1.69, | ||
"ext": { | ||
"bidder": { | ||
"tagid": "123456", | ||
"bidfloor": 4.20 | ||
} | ||
} | ||
} | ||
], | ||
"device": { }, | ||
"site": { | ||
"domain": "www.publisher.com", | ||
"page": "http://www.publisher.com/awesome/site" | ||
}, | ||
"user": { | ||
"buyeruid": "test_reader_id" | ||
} | ||
}, | ||
|
||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"headers": { | ||
"Content-Type": ["application/json"], | ||
"Cookie": ["ljt_reader=test_reader_id"] | ||
}, | ||
"uri": "http://sovrn.com/test/endpoint", | ||
"body": { | ||
"id": "test-request-id", | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
{ | ||
"w": 300, | ||
"h": 600 | ||
} | ||
] | ||
}, | ||
"tagid": "123456", | ||
"bidfloor": 1.69, | ||
"ext": { | ||
"bidder": { | ||
"tagid": "123456", | ||
"bidfloor": 4.20 | ||
} | ||
} | ||
} | ||
], | ||
"site": { | ||
"domain": "www.publisher.com", | ||
"page": "http://www.publisher.com/awesome/site" | ||
}, | ||
"user": { | ||
"buyeruid": "test_reader_id" | ||
}, | ||
"device": { } | ||
} | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"id": "test-request-id", | ||
"seatbid": [ | ||
{ | ||
"bid": [ | ||
{ | ||
"id": "a_449642_554a13d3b9f348fba707cf83f0f63800", | ||
"impid": "test-imp-id", | ||
"price": 3.5, | ||
"nurl": "http://sovrn.com/rtb/impression?bannerid=138743&campaignid=3699&zoneid=449642&cb=69493397&tid=a_449642_554a13d3b9f348fba707cf83f0f63800", | ||
"adm": "some-test-ad", | ||
"w": 300, | ||
"h": 250 | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
|
||
"expectedBidResponses": [ | ||
{ | ||
"currency": "USD", | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "a_449642_554a13d3b9f348fba707cf83f0f63800", | ||
"impid": "test-imp-id", | ||
"price": 3.5, | ||
"adm": "some-test-ad", | ||
"nurl": "http://sovrn.com/rtb/impression?bannerid=138743&campaignid=3699&zoneid=449642&cb=69493397&tid=a_449642_554a13d3b9f348fba707cf83f0f63800", | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
"type": "banner" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
{ | ||
"w": 300, | ||
"h": 600 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"tagid": "123456" | ||
} | ||
} | ||
} | ||
], | ||
"device": { }, | ||
"site": { | ||
"domain": "www.publisher.com", | ||
"page": "http://www.publisher.com/awesome/site" | ||
}, | ||
"user": { | ||
"buyeruid": "test_reader_id" | ||
} | ||
}, | ||
|
||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"headers": { | ||
"Content-Type": ["application/json"], | ||
"Cookie": ["ljt_reader=test_reader_id"] | ||
}, | ||
"uri": "http://sovrn.com/test/endpoint", | ||
"body": { | ||
"id": "test-request-id", | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
{ | ||
"w": 300, | ||
"h": 600 | ||
} | ||
] | ||
}, | ||
"tagid": "123456", | ||
"ext": { | ||
"bidder": { | ||
"tagid": "123456" | ||
} | ||
} | ||
} | ||
], | ||
"site": { | ||
"domain": "www.publisher.com", | ||
"page": "http://www.publisher.com/awesome/site" | ||
}, | ||
"user": { | ||
"buyeruid": "test_reader_id" | ||
}, | ||
"device": { } | ||
} | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"id": "test-request-id", | ||
"seatbid": [ | ||
{ | ||
"bid": [ | ||
{ | ||
"id": "a_449642_554a13d3b9f348fba707cf83f0f63800", | ||
"impid": "test-imp-id", | ||
"price": 3.5, | ||
"nurl": "http://sovrn.com/rtb/impression?bannerid=138743&campaignid=3699&zoneid=449642&cb=69493397&tid=a_449642_554a13d3b9f348fba707cf83f0f63800", | ||
"adm": "some-test-ad", | ||
"w": 300, | ||
"h": 250 | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
|
||
"expectedBidResponses": [ | ||
{ | ||
"currency": "USD", | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "a_449642_554a13d3b9f348fba707cf83f0f63800", | ||
"impid": "test-imp-id", | ||
"price": 3.5, | ||
"adm": "some-test-ad", | ||
"nurl": "http://sovrn.com/rtb/impression?bannerid=138743&campaignid=3699&zoneid=449642&cb=69493397&tid=a_449642_554a13d3b9f348fba707cf83f0f63800", | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
"type": "banner" | ||
} | ||
] | ||
} | ||
] | ||
} |
125 changes: 125 additions & 0 deletions
125
adapters/sovrn/sovrntest/supplemental/only-custom-bidfloor.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
{ | ||
"mockBidRequest": { | ||
"id": "test-request-id", | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
{ | ||
"w": 300, | ||
"h": 600 | ||
} | ||
] | ||
}, | ||
"ext": { | ||
"bidder": { | ||
"tagid": "123456", | ||
"bidfloor": 4.20 | ||
} | ||
} | ||
} | ||
], | ||
"device": { }, | ||
"site": { | ||
"domain": "www.publisher.com", | ||
"page": "http://www.publisher.com/awesome/site" | ||
}, | ||
"user": { | ||
"buyeruid": "test_reader_id" | ||
} | ||
}, | ||
|
||
"httpCalls": [ | ||
{ | ||
"expectedRequest": { | ||
"headers": { | ||
"Content-Type": ["application/json"], | ||
"Cookie": ["ljt_reader=test_reader_id"] | ||
}, | ||
"uri": "http://sovrn.com/test/endpoint", | ||
"body": { | ||
"id": "test-request-id", | ||
"imp": [ | ||
{ | ||
"id": "test-imp-id", | ||
"banner": { | ||
"format": [ | ||
{ | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
{ | ||
"w": 300, | ||
"h": 600 | ||
} | ||
] | ||
}, | ||
"tagid": "123456", | ||
"bidfloor": 4.20, | ||
"ext": { | ||
"bidder": { | ||
"tagid": "123456", | ||
"bidfloor": 4.20 | ||
} | ||
} | ||
} | ||
], | ||
"site": { | ||
"domain": "www.publisher.com", | ||
"page": "http://www.publisher.com/awesome/site" | ||
}, | ||
"user": { | ||
"buyeruid": "test_reader_id" | ||
}, | ||
"device": { } | ||
} | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"id": "test-request-id", | ||
"seatbid": [ | ||
{ | ||
"bid": [ | ||
{ | ||
"id": "a_449642_554a13d3b9f348fba707cf83f0f63800", | ||
"impid": "test-imp-id", | ||
"price": 3.5, | ||
"nurl": "http://sovrn.com/rtb/impression?bannerid=138743&campaignid=3699&zoneid=449642&cb=69493397&tid=a_449642_554a13d3b9f348fba707cf83f0f63800", | ||
"adm": "some-test-ad", | ||
"w": 300, | ||
"h": 250 | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
], | ||
|
||
"expectedBidResponses": [ | ||
{ | ||
"currency": "USD", | ||
"bids": [ | ||
{ | ||
"bid": { | ||
"id": "a_449642_554a13d3b9f348fba707cf83f0f63800", | ||
"impid": "test-imp-id", | ||
"price": 3.5, | ||
"adm": "some-test-ad", | ||
"nurl": "http://sovrn.com/rtb/impression?bannerid=138743&campaignid=3699&zoneid=449642&cb=69493397&tid=a_449642_554a13d3b9f348fba707cf83f0f63800", | ||
"w": 300, | ||
"h": 250 | ||
}, | ||
"type": "banner" | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.