+ This page is a demonstration of how RapidPrebidServer works. +
+

- From left to right on image:
+ From left to right on the image:
-
The web page contains ad placements aka Ad Entity. Entity looks like simple div element with attribute data-entity-id that contains Ad Entity id inside RapidPrebidServer. +
The webpage has ad placements known as Ad Entities. These entities appear as simple div elements with a data-entity-id attribute that includes the Ad Entity ID within the RapidPrebidServer. +
+Once the page has loaded and the DOM is ready, the ad-provider.js script searches for all the ad placements present on the page and gathers their respective IDs into a singular array. After this step, the script sends an HTTP POST request with the collected IDs of ad objects to the RapidPrebidServer.
+- When the page loads and the DOM is ready, the ad-provider.js will find all the ad placements on the page and collect their ids into one array. After that, the script sends an http POST request with the collected IDs of ad objects to the RapidPrebidServer. + The RapidPrebidServer receives a request from ad-provider.js and creates an OpenRTB BidRequest object with Imp objects for each ad from the request. It then sends this request to all connected DSPs simultaneously via the OpenRTB protocol. After receiving all OpenRTB BidResponses, the server conducts an auction for each Ad Entity. The winning creatives are sent back to ad-provider.js, which then displays them on the page.
-The RapidPrebidServer receives a request from the ad-provider.js, creates a OpenRTB BidRequest object containing Imp objects for each ad object from the request. The RapidPrebidServer sends a OpenRTB BidRequest to all connected DSPs simultaneously via the OpenRTB protocol. After receiving a OpenRTB BidResonse from all DSPs, the server conducts an auction for each Ad Entity. The winner creatives are sent back to the ad-provider.js. The ad-provider.js displays creatives on the page.
-For servicing all ad places on page, we include only one js-script and provide only one http request to RapidPrebidServer. It dramatically decreases page load times, opposite classic way, when for each ad place includes one js scripts and make one request. + +
+ To optimize page load times, we use a single JS script and HTTP request to RapidPrebidServer to serve all ad places on the page. This is in contrast to the classic method of using a separate JS script and request for each ad place.