forked from prebid/Prebid.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Support banner
OronW edited this page Jan 19, 2022
·
52 revisions
This page will accommodate the new adapter design, to support banner (display) type media, in our adapter
Changes are based on the prebid docs at: prebid docs
Current design takes the original GET request parameters, along with a new imp parameter (detailed below), and combines them into a single POST request with the following structure:
{
//_original GET parameters_
"params": {
wrapper_type:
wrapper_vendor:
...
}
_array of all adUnits basic data_
"imp": {
id:
h:
w:
...
}
}- Add banner type to supported media type in spec
- Update endpoint to the new hb-multi
- Create the new imp object to send
- Change GET request to POST (and verify old behavior is not affected or destroyed)
- Find what's common between video and banner request and reuse data when building object
- Call endpoint only once for all adUnits, and not per-request as it is now (adapter was built for a single video request)
-
isBidRequestValid- changed to support multiple bids -
isBidRequestValid- check if a different validation is needed compared to video -
buildRequests- check if a banner is built differently from video -
buildRequests- build an alternative forbuildVideoRequestto receive and handle multiple adUnits, and return combined requests object
- Create a test object for the test endpoint