Skip to content

Commit e9c38e4

Browse files
OMS Bid Adapter: add banner media type check in buildRequests (prebid#14117)
1 parent a2f156f commit e9c38e4

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

modules/omsBidAdapter.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,21 @@ function buildRequests(bidReqs, bidderRequest) {
5151

5252
const imp = {
5353
id: bid.bidId,
54-
banner: {
55-
format: processedSizes,
56-
ext: {
57-
viewability: viewabilityAmountRounded,
58-
}
59-
},
6054
ext: {
6155
...gpidData
6256
},
6357
tagid: String(bid.adUnitCode)
6458
};
6559

60+
if (bid?.mediaTypes?.banner) {
61+
imp.banner = {
62+
format: processedSizes,
63+
ext: {
64+
viewability: viewabilityAmountRounded,
65+
}
66+
}
67+
}
68+
6669
if (bid?.mediaTypes?.video) {
6770
imp.video = {
6871
...bid.mediaTypes.video,

0 commit comments

Comments
 (0)