forked from prebid/prebid-server
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
InMobi: mtype support (prebid#3921) (#967)
- Loading branch information
1 parent
d68a113
commit 27966af
Showing
8 changed files
with
130 additions
and
19 deletions.
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
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
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
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
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
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
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
97 changes: 97 additions & 0 deletions
97
adapters/inmobi/inmobitest/supplemental/invalid-mtype.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,97 @@ | ||
{ | ||
"mockBidRequest": { | ||
"site": { | ||
"page": "https://www.inmobi.com" | ||
}, | ||
"id": "req-id", | ||
"device": { | ||
"ip": "1.1.1.1", | ||
"ua": "Mozilla/5.0 (Linux; Android 8.0.0; SM-G960F Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Mobile Safari/537.36" | ||
}, | ||
"imp": [ | ||
{ | ||
"ext": { | ||
"bidder": { | ||
"plc": "1621323101291" | ||
} | ||
}, | ||
"video": { | ||
"w": 640, | ||
"h": 360, | ||
"mimes": ["video/mp4"] | ||
}, | ||
"id": "imp-id" | ||
} | ||
] | ||
}, | ||
"httpCalls": [{ | ||
"expectedRequest": { | ||
"uri": "https://api.w.inmobi.com/showad/openrtb/bidder/prebid", | ||
"body": { | ||
"site": { | ||
"page": "https://www.inmobi.com" | ||
}, | ||
"id": "req-id", | ||
"device": { | ||
"ip": "1.1.1.1", | ||
"ua": "Mozilla/5.0 (Linux; Android 8.0.0; SM-G960F Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Mobile Safari/537.36" | ||
}, | ||
"imp": [ | ||
{ | ||
"ext": { | ||
"bidder": { | ||
"plc": "1621323101291" | ||
} | ||
}, | ||
"video": { | ||
"w": 640, | ||
"h": 360, | ||
"mimes": ["video/mp4"] | ||
}, | ||
"id": "imp-id" | ||
} | ||
] | ||
}, | ||
"impIDs":["imp-id"] | ||
}, | ||
"mockResponse": { | ||
"status": 200, | ||
"body": { | ||
"id": "req-id", | ||
"seatbid": [ | ||
{ | ||
"bid": [ | ||
{ | ||
"ext": { | ||
"prebid": { | ||
"meta": { | ||
"networkName": "inmobi" | ||
} | ||
} | ||
}, | ||
"nurl": "https://some.event.url/params", | ||
"crid": "123456789", | ||
"adomain": [], | ||
"price": 2.0, | ||
"id": "1234", | ||
"adm": "<?xml version=\"1.0\" encoding=\"UTF-8\"?> <VAST version=\"3.0\"></VAST>", | ||
"impid": "imp-id", | ||
"mtype": 0 | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
}], | ||
|
||
"expectedBidResponses":[], | ||
"expectedMakeBidsErrors":[ | ||
{ | ||
"value":"Unsupported mtype 0 for bid 1234", | ||
"comparison":"literal" | ||
} | ||
] | ||
} | ||
|
||
|