From 56b32d2dce905159dc05b10b48998bb63de02ae6 Mon Sep 17 00:00:00 2001 From: PubMatic-OpenWrap Date: Tue, 16 Mar 2021 18:25:40 +0530 Subject: [PATCH] UOE-6011: Fixing multiformat bug (#127) * UOE-6011: Fixing bug * UOE-6011: Adding test case Co-authored-by: Isha Bharti --- .../pubmatic/pubmatictest/banner-video.json | 128 ++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 adapters/pubmatic/pubmatictest/banner-video.json diff --git a/adapters/pubmatic/pubmatictest/banner-video.json b/adapters/pubmatic/pubmatictest/banner-video.json new file mode 100644 index 00000000000..0447253b0fc --- /dev/null +++ b/adapters/pubmatic/pubmatictest/banner-video.json @@ -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" + } + ] + } + ] + } \ No newline at end of file