Skip to content

Commit

Permalink
UOE-6011: Fixing multiformat bug (#127)
Browse files Browse the repository at this point in the history
* UOE-6011: Fixing bug

* UOE-6011: Adding test case

Co-authored-by: Isha Bharti <[email protected]>
  • Loading branch information
2 people authored and pm-nilesh-chate committed Jan 12, 2022
1 parent 6455686 commit 56b32d2
Showing 1 changed file with 128 additions and 0 deletions.
128 changes: 128 additions & 0 deletions adapters/pubmatic/pubmatictest/banner-video.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
{
"mockBidRequest": {
"id": "multiple-media-request",
"imp": [
{
"id": "multiple-media-imp",
"video": {
"mimes": ["video/mp4"]
},
"banner": {
"format": [{
"w": 300,
"h": 250
},
{
"w": 728,
"h": 90
}]
},
"ext": {
"bidder": {
"adSlot": "AdTag_Div1@0x0",
"publisherId": "999"
}
}
}
],
"site": {
"id": "siteID"
}
},

"httpCalls": [
{
"expectedRequest": {
"uri": "https://hbopenbid.pubmatic.com/translator?source=prebid-server",
"body": {
"id": "multiple-media-request",
"imp": [
{
"id": "multiple-media-imp",
"tagid":"AdTag_Div1",
"video": {
"mimes": ["video/mp4"]
},
"banner": {
"format": [
{
"w": 300,
"h": 250
},
{
"w": 728,
"h": 90
}
],
"h": 250,
"w": 300
}
}
],
"site": {
"id": "siteID",
"publisher": {
"id": "999"
}
}
}
},
"mockResponse": {
"status": 200,
"body": {
"id": "multiple-media-request",
"seatbid": [
{
"seat": "958",
"bid": [{
"id": "7706636740145184841",
"impid": "multiple-media-imp",
"price": 0.500000,
"adid": "29681110",
"adm": "some-test-ad",
"adomain": ["pubmatic.com"],
"crid": "29681110",
"h": 250,
"w": 300,
"dealid":"test deal",
"ext": {
"dspid": 6,
"deal_channel": 1
}
}]
}
],
"bidid": "5778926625248726496",
"cur": "USD"
}
}
}
],

"expectedBidResponses": [
{
"currency": "USD",
"bids": [
{
"bid": {
"id": "7706636740145184841",
"impid": "multiple-media-imp",
"price": 0.5,
"adid": "29681110",
"adm": "some-test-ad",
"adomain": ["pubmatic.com"],
"crid": "29681110",
"w": 300,
"h": 250,
"dealid":"test deal",
"ext": {
"dspid": 6,
"deal_channel": 1
}
},
"type": "banner"
}
]
}
]
}

0 comments on commit 56b32d2

Please sign in to comment.