{"id":11437,"date":"2024-02-16T16:01:00","date_gmt":"2024-02-16T10:31:00","guid":{"rendered":"https:\/\/www.www.adpushup.com\/blog\/?p=11437"},"modified":"2025-10-23T21:15:20","modified_gmt":"2025-10-23T15:45:20","slug":"prebid-js","status":"publish","type":"post","link":"https:\/\/www.adpushup.com\/blog\/prebid-js\/","title":{"rendered":"Prebid.js: All Publishers Need to Know.","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"\n<p class=\"has-background\" style=\"background-color:#fff1f5\">Wondering what exactly is <strong>prebid.js<\/strong> and how is it different from prebid server? You have come to the right place. Our guide on Prebid.js discusses its benefits, drawbacks, how it works, and a lot more.<\/p>\n\n\n\n<p>Ever since <a href=\"https:\/\/www.adpushup.com\/blog\/prebids-transaction-id-changes\/\" target=\"_blank\" rel=\"noreferrer noopener\">Prebid<\/a> has been introduced in the ad tech industry, it has become mainstay for many publishers. However, industry people still have a hard time differentiating between Prebid.js, prebid wrapper, and header bidding wrapper.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>For a quick recap, back in 2015, <a href=\"https:\/\/www.adpushup.com\/blog\/programmatic-audio-google-appnexus-bring-ads-to-playlist-near-you\/\" target=\"_blank\" rel=\"noreferrer noopener\">AppNexus<\/a> designed a client-side wrapper, Prebid.js. After partnering with the Rubicon Project in 2017, they, together, <g class=\"gr_ gr_133 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep\" id=\"133\" data-gr-id=\"133\"><a aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\" href=\"https:\/\/www.adpushup.com\/blog\/prebid-org-open-source-initiative-launched-by-appnexus-and-rubicon-project\/\" target=\"_blank\">announced<\/a><\/g> Prebid.org, an open-source <a href=\"https:\/\/www.adpushup.com\/header-bidding-guide\/\" target=\"_blank\" rel=\"noreferrer noopener\">header bidding<\/a> solution for publishers.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>That being said, let&#8217;s now dive right into heart of the matter and discuss what is prebid.js. <\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_79_2 counter-flat ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents:<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #000000;color:#000000\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #000000;color:#000000\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.adpushup.com\/blog\/prebid-js\/#What_is_Prebidjs\" >What is Prebid.js?<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.adpushup.com\/blog\/prebid-js\/#How_Does_Prebidjs_Work\" >How Does Prebid.js Work?<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.adpushup.com\/blog\/prebid-js\/#Benefits_of_Using_Prebid_Wrapper\" >Benefits of Using Prebid Wrapper<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.adpushup.com\/blog\/prebid-js\/#Are_there_any_Drawbacks\" >Are there any Drawbacks?<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.adpushup.com\/blog\/prebid-js\/#Difference_between_Prebodjs_and_Prebid_Server\" >Difference between Prebod.js and Prebid Server<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.adpushup.com\/blog\/prebid-js\/#What_to_choose_%E2%80%93_Prebidjs_or_Prebid_Server\" >What to choose &#8211; Prebid.js or Prebid Server?<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.adpushup.com\/blog\/prebid-js\/#Prebid_or_Managed_Solution_%E2%80%93_which_is_better\" >Prebid or Managed Solution &#8211; which is better?<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.adpushup.com\/blog\/prebid-js\/#Frequently_Asked_Questions_Prebidjs\" >Frequently Asked Questions: Prebid.js<\/a><\/li><\/ul><\/nav><\/div>\n<h2 id=\"h-what-is-prebid-js\"><span class=\"ez-toc-section\" id=\"What_is_Prebidjs\"><\/span>What is Prebid.js?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Popularly known as the <a href=\"https:\/\/www.adpushup.com\/blog\/what-is-prebid\/\" target=\"_blank\" rel=\"noreferrer noopener\">prebid<\/a> wrapper, Prebid.js is the most well-known Open Source <a aria-label=\" (opens in a new tab)\" rel=\"noreferrer noopener\" href=\"https:\/\/www.adpushup.com\/blog\/header-bidding-wrappers\/\" target=\"_blank\">header bidding wrapper<\/a>. A good analogy to understand Prebid.js is the WordPress equivalent of header bidding. <\/p>\n\n\n\n<p>Just like WordPress, Prebid is open source and makes <a href=\"https:\/\/www.adpushup.com\/header-bidding-guide\/\">header bidding<\/a> free to use and customizable according to publishers&#8217; requirements.<\/p>\n\n\n\n<p>Prebid.org defines Prebid.js as, \u201cA feature-rich header <a href=\"https:\/\/www.adpushup.com\/blog\/best-real-time-bidding-platforms-for-publishers\/\" target=\"_blank\" rel=\"noreferrer noopener\">bidding platform<\/a> for the web, including more than 150 demand sources and 15 analytics adapters supporting currency conversion, GDPR, common ID systems, and multiple <a href=\"https:\/\/www.adpushup.com\/blog\/a-beginners-guide-to-ad-servers-plus-8-ad-servers-reviewed\/\" target=\"_blank\" rel=\"noreferrer noopener\">ad servers<\/a>.\u201d<\/p>\n\n\n\n<p>Prebid.js enables publishers to carry out header bidding on their property (site or app). It also allows publishers to set up <a href=\"https:\/\/www.adpushup.com\/blog\/line-items-dfp\/\" target=\"_blank\" rel=\"noreferrer noopener\">line items<\/a>, manage them effectively, make use of asynchronous ad calls and do all this without the need of developing a custom solution.<\/p>\n\n\n\n<h2 id=\"h-how-does-prebid-js-work\"><span class=\"ez-toc-section\" id=\"How_Does_Prebidjs_Work\"><\/span>How Does Prebid.js Work?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img src=\"https:\/\/docs.prebid.org\/assets\/images\/adops-intro.png\" alt=\"prebid.js\"\/><figcaption>Image Source &#8211; <a href=\"https:\/\/docs.prebid.org\/prebid\/prebidjs.html\" target=\"_blank\" rel=\"noreferrer noopener\">Prebid<\/a><\/figcaption><\/figure><\/div>\n\n\n\n<p>Prebid.js takes only a few steps to carry out the header bidding auction. Here are those steps:<\/p>\n\n\n\n<ul><li>As soon as an impression becomes available, Prebid.js library initiates and starts fetching the bids and creatives from the respective <a href=\"https:\/\/www.adpushup.com\/blog\/top-ad-exchanges-for-publishers\/\" target=\"_blank\" rel=\"noreferrer noopener\">ad exchanges<\/a>, SSPs and advertisers.<\/li><li>These bids and creatives are then forwarded to <g class=\"gr_ gr_10 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins replaceWithoutSep\" id=\"10\" data-gr-id=\"10\">ad<\/g> server.<\/li><li>The <a href=\"https:\/\/www.adpushup.com\/blog\/a-beginners-guide-to-ad-servers-plus-8-ad-servers-reviewed\/\" target=\"_blank\" rel=\"noreferrer noopener\">ad server<\/a> then uses predetermined logic including (but not limited to) <a href=\"https:\/\/www.adpushup.com\/blog\/what-should-i-consider-while-setting-floor-prices\/\" target=\"_blank\" rel=\"noreferrer noopener\">floor price<\/a>, <a href=\"https:\/\/www.adpushup.com\/blog\/the-ad-formats-and-types-users-like-most-report\/\" target=\"_blank\" rel=\"noreferrer noopener\">ad type<\/a> and format to compare these bids and stores them as line items by keeping the auction time under timeout set by the publisher.<\/li><li>After comparison, if the ad server finds a qualifying bid, it sends a signal to Prebid.js library along with the details of the winning bid and the placement of the winning creative on the webpage.<\/li><\/ul>\n\n\n\n<h2 id=\"h-benefits-of-using-prebid-wrapper\"><span class=\"ez-toc-section\" id=\"Benefits_of_Using_Prebid_Wrapper\"><\/span>Benefits of Using Prebid Wrapper<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3>Faster Auctions and Improved User Experience<\/h3>\n\n\n\n<p>As claimed by Prebid.org, header bidding auctions run faster using Prebid.js wrapper, which results in decreasing the demand partner response time and ends up providing a better<a href=\"https:\/\/www.adpushup.com\/blog\/increasing-ad-revenue-through-user-experience-optimization\/\" target=\"_blank\" rel=\"noreferrer noopener\"> user experience.<\/a><\/p>\n\n\n\n<h3>Flexibility Across Channels<\/h3>\n\n\n\n<p>Furthermore, the technology is quite flexible, works for both mobile and desktop channels including display, native, and video ad types.<\/p>\n\n\n\n<h3>Enhanced Analytics<\/h3>\n\n\n\n<p>The system provides analytics to understand what\u2019s working and what (non-performing) partners to exclude from the wrapper.<\/p>\n\n\n\n<h3>Supportive Community<\/h3>\n\n\n\n<p>Moreover, Prebid has its own community of working professionals and experts who are continuously working to improve the product and provide assistance to other users.<\/p>\n\n\n\n<h3>Increased Profits for Publishers<\/h3>\n\n\n\n<p>Publishers benefit from Prebid.js by optimizing ad serving, ultimately increasing profits. Prebid.js enhances ad serving efficiency to maximize revenue streams for publishers.<\/p>\n\n\n\n<h2 id=\"h-are-there-any-drawbacks\"><span class=\"ez-toc-section\" id=\"Are_there_any_Drawbacks\"><\/span>Are there any Drawbacks?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3>Complexity of Setup and Maintenance<\/h3>\n\n\n\n<p>While Prebid.js is free and open-source, setting up, maintaining, and running header bidding using it may not be straightforward for all publishers.<\/p>\n\n\n\n<h3>Need for Ad Ops Expertise<\/h3>\n\n\n\n<p>Without a dedicated <a href=\"https:\/\/www.adpushup.com\/blog\/outsourced-ad-ops\/\" target=\"_blank\" rel=\"noreferrer noopener\">ad ops team<\/a>, publishers may require assistance with setting up, managing, and optimizing header bidding implementations.<\/p>\n\n\n\n<h3>Impact on Site Loading Speed<\/h3>\n\n\n\n<p>The process of loading scripts for header bidding auctions can cause delays in page loading, potentially impacting user experience due to increased page latency.<\/p>\n\n\n\n<h3>Not Suitable for Every Publisher<\/h3>\n\n\n\n<p>Due to the complexity involved, header bidding with Prebid.js may not be suitable for every publisher. It&#8217;s essential to evaluate factors such as long-term business goals and user experience before implementation.<\/p>\n\n\n\n<h3>Testing for Suitability<\/h3>\n\n\n\n<p>Considering the various factors, it&#8217;s advisable to test Prebid.js to determine its suitability and alignment with both business goals and user experience objectives.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Now that you what is prebid.js, let&#8217;s npw understand what makes it different from prebid server. <\/p>\n\n\n\n<h2><span class=\"ez-toc-section\" id=\"Difference_between_Prebodjs_and_Prebid_Server\"><\/span><strong>Difference between Prebod.js and Prebid Server<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>For a quick recap, <strong>Prebid.js<\/strong> is a powerful, open-source <a href=\"https:\/\/www.adpushup.com\/blog\/header-bidding-wrappers\/\" target=\"_blank\" rel=\"noreferrer noopener\">Header Bidding wrapper<\/a> that allows a publisher to monetize their websites by connecting them to multiple demand partners who bid on ad space.<\/p>\n\n\n\n<p>It supports over 200 <a href=\"https:\/\/www.adpushup.com\/blog\/top-10-header-bidding-partners\/\" target=\"_blank\" rel=\"noreferrer noopener\">demand partners <\/a>and is used by thousands of websites worldwide. Prebid.js is also a client-side<a href=\"https:\/\/www.adpushup.com\/header-bidding-guide\/\" target=\"_blank\" rel=\"noreferrer noopener\"> Header Bidding<\/a> solution, which means that the auction code embedded on the publishers\u2019 website gets executed on the user\u2019s browser.<\/p>\n\n\n\n<p>Whereas <strong>Prebid Server<\/strong> is a <a href=\"https:\/\/www.adpushup.com\/blog\/all-about-prebid-server\/\" target=\"_blank\" rel=\"noreferrer noopener\">server-side solution<\/a> for running real-time ad auctions. It is completely equipped to sell ad opportunities through<a href=\"https:\/\/www.adpushup.com\/blog\/server-side-header-bidding\" target=\"_blank\" rel=\"noreferrer noopener\"> server-side header bidding<\/a>, including bidding integrations, privacy controls, currency conversions, price floors, analytics, and more.<\/p>\n\n\n\n<p>But the key difference between the two is that <strong><a href=\"https:\/\/www.adpushup.com\/blog\/what-is-a-prebid\/\" target=\"_blank\" rel=\"noreferrer noopener\">Prebid<\/a> Server<\/strong> brings the Header Bidding solution to systems that don\u2019t support JavaScript. This means, whole ad serving procedure will take place on a server or remote computer.&nbsp;<\/p>\n\n\n\n<p>On the other hand, <strong>Prebid.js<\/strong> is the leading solution for Header Bidding which is a JavaScript-based solution for websites online.<\/p>\n\n\n\n<p>Prebid.js only works on browser-based websites, while mobile apps, AMP websites, long-form video, and<a href=\"https:\/\/www.adpushup.com\/blog\/how-to-scale-your-business-with-dooh-advertising\/\" target=\"_blank\" rel=\"noreferrer noopener\"> Digital out-of-home <\/a>require Prebid Server to run Header Bidding Solution and maximize revenue.<\/p>\n\n\n\n<figure class=\"wp-block-table aligncenter\"><table><tbody><tr><td><strong>Prebid.js<\/strong><\/td><td><strong>Prebid Server<\/strong><\/td><\/tr><tr><td>Is the leading solution for JavaScript based Header Bidding<\/td><td>Provides Header Bidding solution to environments that don\u2019t support JavaScript<\/td><\/tr><tr><td>Over 200 demand partners<\/td><td>Over 150 demand partners<\/td><\/tr><tr><td>Only works on browser-based websites<\/td><td>Works on mobile apps, AMP websites, and more<\/td><\/tr><tr><td>Client-side HB leads to better cookie match rates and higher revenue<\/td><td>Sever-side HB allows the ads to load quicker and improve overall user experience<\/td><\/tr><tr><td>Limited bidder list available<\/td><td>Publishers can add as many bidders as they like<\/td><\/tr><tr><td>Supports native, video, display, and other creative ads<\/td><td>Also support native, video, display, and other creative ads<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2><span class=\"ez-toc-section\" id=\"What_to_choose_%E2%80%93_Prebidjs_or_Prebid_Server\"><\/span><strong>What to choose &#8211; Prebid.js or Prebid Server?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The choice between Prebid.js and Prebid Server completely depends on the publisher\u2019s use case scenario.<\/p>\n\n\n\n<p>With Prebid.js, multiple requests are sent out to the <a href=\"https:\/\/www.adpushup.com\/blog\/the-ultimate-guide-to-ad-servers\/\" target=\"_blank\" rel=\"noreferrer noopener\">ad server<\/a> for the auction, which lowers the page load time and increases latency. However, it is a much easier and faster setup with a higher cookie-match rate, making it an optimal choice for higher revenue opportunities.<\/p>\n\n\n\n<p>Whereas, with Prebid Server, only one call is made for the auction to take place. And with the freedom to add as many ad partners as a publisher likes without impacting the user experience, it helps scale up the demand for an <a href=\"https:\/\/www.adpushup.com\/blog\/what-is-an-ad-impression\/\" target=\"_blank\" rel=\"noreferrer noopener\">ad slot\/impression.<\/a><\/p>\n\n\n\n<p>So, it completely depends on you, the publishers, on which setup will work best for your website.<\/p>\n\n\n\n<h2><span class=\"ez-toc-section\" id=\"Prebid_or_Managed_Solution_%E2%80%93_which_is_better\"><\/span><strong>Prebid or Managed Solution &#8211; which is better?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Prebid is an open-source platform managed by the global community, making it a cost-effective option, especially fit for smaller publishers.<\/p>\n\n\n\n<p>While a Managed solution is one where Prebid or not, the monetization practices for the website are taken care of by <a href=\"https:\/\/www.adpushup.com\/blog\/the-best-ad-networks-for-publishers\/\" target=\"_blank\" rel=\"noreferrer noopener\">ad networks<\/a> or <a href=\"https:\/\/www.adpushup.com\/blog\/what-is-supply-side-platform\/\" target=\"_blank\" rel=\"noreferrer noopener\">SSPs<\/a>. This works best for publishers who wish to purely focus on the content published on their website and not worry about the monetization aspect of it.<\/p>\n\n\n\n<p>Though it is a very lucrative option that saves publishers time and energy, the main drawback here is that the publisher holds limited or no control over the code that is run on their website by the third-party vendor. This is likely to impact the latency of the webpages, impacting the user experience.<\/p>\n\n\n\n<p>But, if you choose Prebid Solution, the publisher needs to be on top of it, either themselves or have a dedicated team working on it every day.<\/p>\n\n\n\n<p>Therefore, it once again depends on the needs and use cases of the publisher that determine which solution is better for the website.<\/p>\n\n\n\n<h2 class=\"has-text-align-center\" id=\"h-frequently-asked-questions-prebid-js\"><span class=\"ez-toc-section\" id=\"Frequently_Asked_Questions_Prebidjs\"><\/span>Frequently Asked Questions: Prebid.js<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1708079392138\"><strong class=\"schema-faq-question\"><strong>1. What is Prebid.js?<\/strong><\/strong> <p class=\"schema-faq-answer\">Prebid.js is an open-source, JavaScript-based Header Bidding wrapper that connects publishers to multiple demand partners to bid on a <a href=\"https:\/\/www.adpushup.com\/blog\/sell-ad-space\/\" target=\"_blank\" rel=\"noreferrer noopener\">ad space<\/a>. It supports creative ads like <a href=\"https:\/\/www.adpushup.com\/blog\/7-best-examples-of-native-ads\/\" target=\"_blank\" rel=\"noreferrer noopener\">native ads<\/a>, <a href=\"https:\/\/www.adpushup.com\/blog\/types-of-video-ads\/\" target=\"_blank\" rel=\"noreferrer noopener\">video ads<\/a>, and more improving the overall user experience.<br\/>Prebid.js is a core feature of the Prebid ecosystem that supports over 200 demand partners.<br\/><br\/>The code for Prebid.js is embedded on the publisher\u2019s website in executed client-side when the page loads on the user\u2019s browser. The tag makes a call to the <a href=\"https:\/\/www.adpushup.com\/blog\/what-is-an-ad-exchange\/\" target=\"_blank\" rel=\"noreferrer noopener\">ad exchange<\/a> to gather bids on the <a href=\"https:\/\/www.adpushup.com\/blog\/ad-inventory-management-tips\/\" target=\"_blank\" rel=\"noreferrer noopener\">ad inventory<\/a> from all the demand partners. After which, JavaScript fetches the highest paying bid and publishes it on the website.<br\/><\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1708079523339\"><strong class=\"schema-faq-question\">2. <strong>Is prebid an ad exchange?<\/strong><\/strong> <p class=\"schema-faq-answer\">Prebid is not an ad exchange per se. Instead, it\u2019s an open-source header bidding solution. It allows publishers to conduct<a href=\"https:\/\/www.adpushup.com\/blog\/the-ultimate-guide-to-real-time-bidding\/\" target=\"_blank\" rel=\"noreferrer noopener\"> real-time auctions<\/a> for their ad inventory among multiple demand sources, including ad exchanges.<br\/><br\/>Think of Prebid as a facilitator or mediator between publishers and ad exchanges. It integrates with various demand partners such as ad networks, SSPs (Supply Side Platforms), DSPs (Demand Side Platforms), and ad exchanges.<br\/><\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1708079600860\"><strong class=\"schema-faq-question\">3. <strong>What is the difference between Prebid Server and Prebid js in simple words?<\/strong><\/strong> <p class=\"schema-faq-answer\">Some of the main differences between Prebid.js and Prebid Server are are follows:<br\/><br\/>&#8211; <strong>Prebid.js<\/strong> is a JavaScript-based Header Bidding wrapper, while <strong>Prebid Server<\/strong> provides Header Bidding solution to non-JavaScript using environments.<br\/><br\/><strong>&#8211;<\/strong> <strong>Prebid.js<\/strong> runs a client-side Header Bidding that can earn a higher ad revenue, while <strong>Prebid Server<\/strong> runs a server-side auction that leader to quicker page loading and better user experience.<br\/><br\/>&#8211; <strong>Prebid.js<\/strong> can only call limited demand partners to bet on an ad impression, whereas <strong>Prebid Server <\/strong>can add as many demand partners as needed without any impact on page load or user experience.<br\/><br\/>&#8211; <strong>Prebid.js<\/strong> is much easier to setup with high cookie-match opportunities, while <strong>Prebid Server<\/strong> avoids latency with quicker page loads.<br\/><br\/><strong>&#8211;<\/strong> <strong>Prebid.js<\/strong> works best on browser-based websites, while <strong>Prebid Server<\/strong> is best suited for mobile apps, AMP websites, and such.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1591605732723\"><strong class=\"schema-faq-question\"><strong>4. How much does Prebid cost?<\/strong><\/strong> <p class=\"schema-faq-answer\">Prebid.js is free to use. However, if you are not equipped with an ad ops team having required technical knowledge to install and setup Prebid.js, then you might need to pay engineers to do that for you.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1591605911314\"><strong class=\"schema-faq-question\">5. <strong>Does Prebid offer server-side compatibility?<\/strong><\/strong> <p class=\"schema-faq-answer\">Yes, Prebid has a server-side header bidding solution, called <a rel=\"noreferrer noopener\" href=\"https:\/\/www.adpushup.com\/blog\/all-about-prebid-server-a-server-side-header-bidding-solution\/\" target=\"_blank\">Prebid server<\/a>. As the name suggests, the heavy lifting of the auction will be conducted on server-side, hence, improving page load time and user experience.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1591605935172\"><strong class=\"schema-faq-question\">6. <strong>How many bidders should be added?<\/strong><\/strong> <p class=\"schema-faq-answer\">The answer to this will vary from publisher to publisher. Thus running A\/B tests and collecting real data from pages running Prebid to get an answer would be the best path to take. More bidders might sound like a good idea to increase the profit (in theory, it might actually increase profit), however, it would increase page latency too, which ultimately decreases revenue.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1591605996376\"><strong class=\"schema-faq-question\">7. <strong>Can Prebid track revenue and traffic source via interface?<\/strong><\/strong> <p class=\"schema-faq-answer\">No, Prebid does not provide an interface to track such details yet. Although, publishers can integrate Google Analytics with Prebid to get header bidding stats, however, there is no guarantee of these stats being accurate.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1591605967616\"><strong class=\"schema-faq-question\">8. <strong>What about Prebid support?<\/strong><\/strong> <p class=\"schema-faq-answer\">As Prebid is open source, there is no official support. But you can join various resourceful communities (including Slack and Reddit) to get answers to your queries.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1708079890431\"><strong class=\"schema-faq-question\">9. <strong>\u00a0Is prebid an ad exchange?<\/strong><\/strong> <p class=\"schema-faq-answer\">Prebid is not an ad exchange per se. Instead, it\u2019s an open-source header bidding solution. It allows publishers to conduct<a href=\"https:\/\/www.adpushup.com\/blog\/the-ultimate-guide-to-real-time-bidding\/\" target=\"_blank\" rel=\"noreferrer noopener\"> real-time auctions<\/a> for their ad inventory among multiple demand sources, including ad exchanges.<br\/><br\/>Think of Prebid as a facilitator or mediator between publishers and ad exchanges. It integrates with various demand partners such as ad networks, SSPs (Supply Side Platforms), DSPs (Demand Side Platforms), and ad exchanges.<\/p> <\/div> <\/div>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>Wondering what exactly is prebid.js and how is it different from prebid server? You have come to the right place. Our guide on Prebid.js discusses its benefits, drawbacks, how it works, and a lot more. Ever since Prebid has been introduced in the ad tech industry, it has become mainstay for many publishers. However, industry<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":60,"featured_media":30621,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","om_disable_all_campaigns":false,"inline_featured_image":false,"apple_news_api_created_at":"2019-03-15T11:26:22Z","apple_news_api_id":"4ed63bef-618e-452c-8456-9cbc8de36eb6","apple_news_api_modified_at":"2019-03-15T11:26:23Z","apple_news_api_revision":"AAAAAAAAAAD\/\/\/\/\/\/\/\/\/\/w==","apple_news_api_share_url":"https:\/\/apple.news\/ATtY772GORSyEVpy8jeNutg","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"middle","apple_news_slug":"","apple_news_sections":"[\"https:\\\/\\\/news-api.apple.com\\\/sections\\\/2384f969-0b7d-3e23-907b-d8b4b94ce6f8\"]"},"categories":[6455],"tags":[6422],"apple_news_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v18.5 (Yoast SEO v18.9) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What is Prebid.js? Detailed breakthrough by experts for 2024 | AdPushup<\/title>\n<meta name=\"description\" content=\"Discover the ins and outs of Prebid.js with our comprehensive guide for publishers. Uncover its benefits, drawbacks, differences, and more.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:title\" content=\"What is Prebid.js? Detailed breakthrough by experts for 2024 | AdPushup\" \/>\n<meta name=\"twitter:description\" content=\"Discover the ins and outs of Prebid.js with our comprehensive guide for publishers. Uncover its benefits, drawbacks, differences, and more.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.adpushup.com\/blog\/wp-content\/uploads\/2019\/03\/undraw_code_inspection_bdl7.png\" \/>\n<meta name=\"twitter:creator\" content=\"@adpushup\" \/>\n<meta name=\"twitter:site\" content=\"@adpushup\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Deepak Sharma\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.adpushup.com\/blog\/#organization\",\"name\":\"AdPushup\",\"url\":\"https:\/\/www.adpushup.com\/blog\/\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/adpushup\/\",\"https:\/\/www.facebook.com\/AdPushup\/\",\"https:\/\/twitter.com\/adpushup\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.adpushup.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.adpushup.com\/blog\/wp-content\/uploads\/2019\/02\/AdPushup-logo.png\",\"contentUrl\":\"https:\/\/www.adpushup.com\/blog\/wp-content\/uploads\/2019\/02\/AdPushup-logo.png\",\"width\":3294,\"height\":893,\"caption\":\"AdPushup\"},\"image\":{\"@id\":\"https:\/\/www.adpushup.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.adpushup.com\/blog\/#website\",\"url\":\"https:\/\/www.adpushup.com\/blog\/\",\"name\":\"AdPushup Blog\",\"description\":\"A\/B Testing, Monetization &amp; Ad Optimization\",\"publisher\":{\"@id\":\"https:\/\/www.adpushup.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.adpushup.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#primaryimage\",\"url\":\"https:\/\/www.adpushup.com\/blog\/wp-content\/uploads\/2019\/03\/undraw_code_inspection_bdl7.png\",\"contentUrl\":\"https:\/\/www.adpushup.com\/blog\/wp-content\/uploads\/2019\/03\/undraw_code_inspection_bdl7.png\",\"width\":1086,\"height\":864,\"caption\":\"prebid.js\"},{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#webpage\",\"url\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/\",\"name\":\"What is Prebid.js? Detailed breakthrough by experts for 2024 | AdPushup\",\"isPartOf\":{\"@id\":\"https:\/\/www.adpushup.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#primaryimage\"},\"datePublished\":\"2024-02-16T10:31:00+00:00\",\"dateModified\":\"2025-10-23T15:45:20+00:00\",\"description\":\"Discover the ins and outs of Prebid.js with our comprehensive guide for publishers. Uncover its benefits, drawbacks, differences, and more.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#breadcrumb\"},\"mainEntity\":[{\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1708079392138\"},{\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1708079523339\"},{\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1708079600860\"},{\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605732723\"},{\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605911314\"},{\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605935172\"},{\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605996376\"},{\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605967616\"},{\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1708079890431\"}],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"blog\",\"item\":\"https:\/\/www.adpushup.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Prebid.js\",\"item\":\"https:\/\/www.adpushup.com\/blog\/category\/prebid-js\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Prebid.js: All Publishers Need to Know.\"}]},{\"@type\":[\"Article\",\"BlogPosting\"],\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#webpage\"},\"author\":{\"@id\":\"https:\/\/www.adpushup.com\/blog\/#\/schema\/person\/f3520830d0948276d25d0a31cabf93cd\"},\"headline\":\"Prebid.js: All Publishers Need to Know.\",\"datePublished\":\"2024-02-16T10:31:00+00:00\",\"dateModified\":\"2025-10-23T15:45:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#webpage\"},\"wordCount\":1963,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/www.adpushup.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.adpushup.com\/blog\/wp-content\/uploads\/2019\/03\/undraw_code_inspection_bdl7.png\",\"keywords\":[\"explainers\"],\"articleSection\":[\"Prebid.js\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.adpushup.com\/blog\/#\/schema\/person\/f3520830d0948276d25d0a31cabf93cd\",\"name\":\"Deepak Sharma\",\"description\":\"Reviewed by Deepak Sharma, Content Editor at Adpushup As part of AdPushup's content team. Deepak Sharma handles editorial review and content optimization for adtech articles. He focuses on clarity and accuracy to help readers understand advertising technology topics.\",\"sameAs\":[\"www.linkedin.com\/in\/deepak-sharma-4403bb227\/\"],\"url\":\"https:\/\/www.adpushup.com\/blog\/author\/deepak_blog\/\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1708079392138\",\"position\":1,\"url\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1708079392138\",\"name\":\"1. What is Prebid.js?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Prebid.js is an open-source, JavaScript-based Header Bidding wrapper that connects publishers to multiple demand partners to bid on a <a href=\\\"https:\/\/www.adpushup.com\/blog\/sell-ad-space\/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">ad space<\/a>. It supports creative ads like <a href=\\\"https:\/\/www.adpushup.com\/blog\/7-best-examples-of-native-ads\/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">native ads<\/a>, <a href=\\\"https:\/\/www.adpushup.com\/blog\/types-of-video-ads\/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">video ads<\/a>, and more improving the overall user experience.<br\/>Prebid.js is a core feature of the Prebid ecosystem that supports over 200 demand partners.<br\/><br\/>The code for Prebid.js is embedded on the publisher\u2019s website in executed client-side when the page loads on the user\u2019s browser. The tag makes a call to the <a href=\\\"https:\/\/www.adpushup.com\/blog\/what-is-an-ad-exchange\/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">ad exchange<\/a> to gather bids on the <a href=\\\"https:\/\/www.adpushup.com\/blog\/ad-inventory-management-tips\/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\">ad inventory<\/a> from all the demand partners. After which, JavaScript fetches the highest paying bid and publishes it on the website.<br\/>\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1708079523339\",\"position\":2,\"url\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1708079523339\",\"name\":\"2. Is prebid an ad exchange?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Prebid is not an ad exchange per se. Instead, it\u2019s an open-source header bidding solution. It allows publishers to conduct<a href=\\\"https:\/\/www.adpushup.com\/blog\/the-ultimate-guide-to-real-time-bidding\/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\"> real-time auctions<\/a> for their ad inventory among multiple demand sources, including ad exchanges.<br\/><br\/>Think of Prebid as a facilitator or mediator between publishers and ad exchanges. It integrates with various demand partners such as ad networks, SSPs (Supply Side Platforms), DSPs (Demand Side Platforms), and ad exchanges.<br\/>\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1708079600860\",\"position\":3,\"url\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1708079600860\",\"name\":\"3. What is the difference between Prebid Server and Prebid js in simple words?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Some of the main differences between Prebid.js and Prebid Server are are follows:<br\/><br\/>- <strong>Prebid.js<\/strong> is a JavaScript-based Header Bidding wrapper, while <strong>Prebid Server<\/strong> provides Header Bidding solution to non-JavaScript using environments.<br\/><br\/><strong>-<\/strong> <strong>Prebid.js<\/strong> runs a client-side Header Bidding that can earn a higher ad revenue, while <strong>Prebid Server<\/strong> runs a server-side auction that leader to quicker page loading and better user experience.<br\/><br\/>- <strong>Prebid.js<\/strong> can only call limited demand partners to bet on an ad impression, whereas <strong>Prebid Server <\/strong>can add as many demand partners as needed without any impact on page load or user experience.<br\/><br\/>- <strong>Prebid.js<\/strong> is much easier to setup with high cookie-match opportunities, while <strong>Prebid Server<\/strong> avoids latency with quicker page loads.<br\/><br\/><strong>-<\/strong> <strong>Prebid.js<\/strong> works best on browser-based websites, while <strong>Prebid Server<\/strong> is best suited for mobile apps, AMP websites, and such.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605732723\",\"position\":4,\"url\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605732723\",\"name\":\"4. How much does Prebid cost?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Prebid.js is free to use. However, if you are not equipped with an ad ops team having required technical knowledge to install and setup Prebid.js, then you might need to pay engineers to do that for you.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605911314\",\"position\":5,\"url\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605911314\",\"name\":\"5. Does Prebid offer server-side compatibility?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Yes, Prebid has a server-side header bidding solution, called <a rel=\\\"noreferrer noopener\\\" href=\\\"https:\/\/www.adpushup.com\/blog\/all-about-prebid-server-a-server-side-header-bidding-solution\/\\\" target=\\\"_blank\\\">Prebid server<\/a>. As the name suggests, the heavy lifting of the auction will be conducted on server-side, hence, improving page load time and user experience.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605935172\",\"position\":6,\"url\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605935172\",\"name\":\"6. How many bidders should be added?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"The answer to this will vary from publisher to publisher. Thus running A\/B tests and collecting real data from pages running Prebid to get an answer would be the best path to take. More bidders might sound like a good idea to increase the profit (in theory, it might actually increase profit), however, it would increase page latency too, which ultimately decreases revenue.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605996376\",\"position\":7,\"url\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605996376\",\"name\":\"7. Can Prebid track revenue and traffic source via interface?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"No, Prebid does not provide an interface to track such details yet. Although, publishers can integrate Google Analytics with Prebid to get header bidding stats, however, there is no guarantee of these stats being accurate.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605967616\",\"position\":8,\"url\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605967616\",\"name\":\"8. What about Prebid support?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"As Prebid is open source, there is no official support. But you can join various resourceful communities (including Slack and Reddit) to get answers to your queries.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1708079890431\",\"position\":9,\"url\":\"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1708079890431\",\"name\":\"9. \u00a0Is prebid an ad exchange?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Prebid is not an ad exchange per se. Instead, it\u2019s an open-source header bidding solution. It allows publishers to conduct<a href=\\\"https:\/\/www.adpushup.com\/blog\/the-ultimate-guide-to-real-time-bidding\/\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\"> real-time auctions<\/a> for their ad inventory among multiple demand sources, including ad exchanges.<br\/><br\/>Think of Prebid as a facilitator or mediator between publishers and ad exchanges. It integrates with various demand partners such as ad networks, SSPs (Supply Side Platforms), DSPs (Demand Side Platforms), and ad exchanges.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"What is Prebid.js? Detailed breakthrough by experts for 2024 | AdPushup","description":"Discover the ins and outs of Prebid.js with our comprehensive guide for publishers. Uncover its benefits, drawbacks, differences, and more.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/","twitter_card":"summary","twitter_title":"What is Prebid.js? Detailed breakthrough by experts for 2024 | AdPushup","twitter_description":"Discover the ins and outs of Prebid.js with our comprehensive guide for publishers. Uncover its benefits, drawbacks, differences, and more.","twitter_image":"https:\/\/www.adpushup.com\/blog\/wp-content\/uploads\/2019\/03\/undraw_code_inspection_bdl7.png","twitter_creator":"@adpushup","twitter_site":"@adpushup","twitter_misc":{"Written by":"Deepak Sharma","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/www.adpushup.com\/blog\/#organization","name":"AdPushup","url":"https:\/\/www.adpushup.com\/blog\/","sameAs":["https:\/\/www.linkedin.com\/company\/adpushup\/","https:\/\/www.facebook.com\/AdPushup\/","https:\/\/twitter.com\/adpushup"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.adpushup.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.adpushup.com\/blog\/wp-content\/uploads\/2019\/02\/AdPushup-logo.png","contentUrl":"https:\/\/www.adpushup.com\/blog\/wp-content\/uploads\/2019\/02\/AdPushup-logo.png","width":3294,"height":893,"caption":"AdPushup"},"image":{"@id":"https:\/\/www.adpushup.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"WebSite","@id":"https:\/\/www.adpushup.com\/blog\/#website","url":"https:\/\/www.adpushup.com\/blog\/","name":"AdPushup Blog","description":"A\/B Testing, Monetization &amp; Ad Optimization","publisher":{"@id":"https:\/\/www.adpushup.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.adpushup.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#primaryimage","url":"https:\/\/www.adpushup.com\/blog\/wp-content\/uploads\/2019\/03\/undraw_code_inspection_bdl7.png","contentUrl":"https:\/\/www.adpushup.com\/blog\/wp-content\/uploads\/2019\/03\/undraw_code_inspection_bdl7.png","width":1086,"height":864,"caption":"prebid.js"},{"@type":["WebPage","FAQPage"],"@id":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#webpage","url":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/","name":"What is Prebid.js? Detailed breakthrough by experts for 2024 | AdPushup","isPartOf":{"@id":"https:\/\/www.adpushup.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#primaryimage"},"datePublished":"2024-02-16T10:31:00+00:00","dateModified":"2025-10-23T15:45:20+00:00","description":"Discover the ins and outs of Prebid.js with our comprehensive guide for publishers. Uncover its benefits, drawbacks, differences, and more.","breadcrumb":{"@id":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#breadcrumb"},"mainEntity":[{"@id":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1708079392138"},{"@id":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1708079523339"},{"@id":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1708079600860"},{"@id":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605732723"},{"@id":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605911314"},{"@id":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605935172"},{"@id":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605996376"},{"@id":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605967616"},{"@id":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1708079890431"}],"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"blog","item":"https:\/\/www.adpushup.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Prebid.js","item":"https:\/\/www.adpushup.com\/blog\/category\/prebid-js\/"},{"@type":"ListItem","position":3,"name":"Prebid.js: All Publishers Need to Know."}]},{"@type":["Article","BlogPosting"],"@id":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#article","isPartOf":{"@id":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#webpage"},"author":{"@id":"https:\/\/www.adpushup.com\/blog\/#\/schema\/person\/f3520830d0948276d25d0a31cabf93cd"},"headline":"Prebid.js: All Publishers Need to Know.","datePublished":"2024-02-16T10:31:00+00:00","dateModified":"2025-10-23T15:45:20+00:00","mainEntityOfPage":{"@id":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#webpage"},"wordCount":1963,"commentCount":1,"publisher":{"@id":"https:\/\/www.adpushup.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#primaryimage"},"thumbnailUrl":"https:\/\/www.adpushup.com\/blog\/wp-content\/uploads\/2019\/03\/undraw_code_inspection_bdl7.png","keywords":["explainers"],"articleSection":["Prebid.js"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#respond"]}]},{"@type":"Person","@id":"https:\/\/www.adpushup.com\/blog\/#\/schema\/person\/f3520830d0948276d25d0a31cabf93cd","name":"Deepak Sharma","description":"Reviewed by Deepak Sharma, Content Editor at Adpushup As part of AdPushup's content team. Deepak Sharma handles editorial review and content optimization for adtech articles. He focuses on clarity and accuracy to help readers understand advertising technology topics.","sameAs":["www.linkedin.com\/in\/deepak-sharma-4403bb227\/"],"url":"https:\/\/www.adpushup.com\/blog\/author\/deepak_blog\/"},{"@type":"Question","@id":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1708079392138","position":1,"url":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1708079392138","name":"1. What is Prebid.js?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Prebid.js is an open-source, JavaScript-based Header Bidding wrapper that connects publishers to multiple demand partners to bid on a <a href=\"https:\/\/www.adpushup.com\/blog\/sell-ad-space\/\" target=\"_blank\" rel=\"noreferrer noopener\">ad space<\/a>. It supports creative ads like <a href=\"https:\/\/www.adpushup.com\/blog\/7-best-examples-of-native-ads\/\" target=\"_blank\" rel=\"noreferrer noopener\">native ads<\/a>, <a href=\"https:\/\/www.adpushup.com\/blog\/types-of-video-ads\/\" target=\"_blank\" rel=\"noreferrer noopener\">video ads<\/a>, and more improving the overall user experience.<br\/>Prebid.js is a core feature of the Prebid ecosystem that supports over 200 demand partners.<br\/><br\/>The code for Prebid.js is embedded on the publisher\u2019s website in executed client-side when the page loads on the user\u2019s browser. The tag makes a call to the <a href=\"https:\/\/www.adpushup.com\/blog\/what-is-an-ad-exchange\/\" target=\"_blank\" rel=\"noreferrer noopener\">ad exchange<\/a> to gather bids on the <a href=\"https:\/\/www.adpushup.com\/blog\/ad-inventory-management-tips\/\" target=\"_blank\" rel=\"noreferrer noopener\">ad inventory<\/a> from all the demand partners. After which, JavaScript fetches the highest paying bid and publishes it on the website.<br\/>","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1708079523339","position":2,"url":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1708079523339","name":"2. Is prebid an ad exchange?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Prebid is not an ad exchange per se. Instead, it\u2019s an open-source header bidding solution. It allows publishers to conduct<a href=\"https:\/\/www.adpushup.com\/blog\/the-ultimate-guide-to-real-time-bidding\/\" target=\"_blank\" rel=\"noreferrer noopener\"> real-time auctions<\/a> for their ad inventory among multiple demand sources, including ad exchanges.<br\/><br\/>Think of Prebid as a facilitator or mediator between publishers and ad exchanges. It integrates with various demand partners such as ad networks, SSPs (Supply Side Platforms), DSPs (Demand Side Platforms), and ad exchanges.<br\/>","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1708079600860","position":3,"url":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1708079600860","name":"3. What is the difference between Prebid Server and Prebid js in simple words?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Some of the main differences between Prebid.js and Prebid Server are are follows:<br\/><br\/>- <strong>Prebid.js<\/strong> is a JavaScript-based Header Bidding wrapper, while <strong>Prebid Server<\/strong> provides Header Bidding solution to non-JavaScript using environments.<br\/><br\/><strong>-<\/strong> <strong>Prebid.js<\/strong> runs a client-side Header Bidding that can earn a higher ad revenue, while <strong>Prebid Server<\/strong> runs a server-side auction that leader to quicker page loading and better user experience.<br\/><br\/>- <strong>Prebid.js<\/strong> can only call limited demand partners to bet on an ad impression, whereas <strong>Prebid Server <\/strong>can add as many demand partners as needed without any impact on page load or user experience.<br\/><br\/>- <strong>Prebid.js<\/strong> is much easier to setup with high cookie-match opportunities, while <strong>Prebid Server<\/strong> avoids latency with quicker page loads.<br\/><br\/><strong>-<\/strong> <strong>Prebid.js<\/strong> works best on browser-based websites, while <strong>Prebid Server<\/strong> is best suited for mobile apps, AMP websites, and such.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605732723","position":4,"url":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605732723","name":"4. How much does Prebid cost?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Prebid.js is free to use. However, if you are not equipped with an ad ops team having required technical knowledge to install and setup Prebid.js, then you might need to pay engineers to do that for you.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605911314","position":5,"url":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605911314","name":"5. Does Prebid offer server-side compatibility?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Yes, Prebid has a server-side header bidding solution, called <a rel=\"noreferrer noopener\" href=\"https:\/\/www.adpushup.com\/blog\/all-about-prebid-server-a-server-side-header-bidding-solution\/\" target=\"_blank\">Prebid server<\/a>. As the name suggests, the heavy lifting of the auction will be conducted on server-side, hence, improving page load time and user experience.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605935172","position":6,"url":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605935172","name":"6. How many bidders should be added?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"The answer to this will vary from publisher to publisher. Thus running A\/B tests and collecting real data from pages running Prebid to get an answer would be the best path to take. More bidders might sound like a good idea to increase the profit (in theory, it might actually increase profit), however, it would increase page latency too, which ultimately decreases revenue.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605996376","position":7,"url":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605996376","name":"7. Can Prebid track revenue and traffic source via interface?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"No, Prebid does not provide an interface to track such details yet. Although, publishers can integrate Google Analytics with Prebid to get header bidding stats, however, there is no guarantee of these stats being accurate.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605967616","position":8,"url":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1591605967616","name":"8. What about Prebid support?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"As Prebid is open source, there is no official support. But you can join various resourceful communities (including Slack and Reddit) to get answers to your queries.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1708079890431","position":9,"url":"https:\/\/www.adpushup.com\/blog\/what-is-prebid-js\/#faq-question-1708079890431","name":"9. \u00a0Is prebid an ad exchange?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Prebid is not an ad exchange per se. Instead, it\u2019s an open-source header bidding solution. It allows publishers to conduct<a href=\"https:\/\/www.adpushup.com\/blog\/the-ultimate-guide-to-real-time-bidding\/\" target=\"_blank\" rel=\"noreferrer noopener\"> real-time auctions<\/a> for their ad inventory among multiple demand sources, including ad exchanges.<br\/><br\/>Think of Prebid as a facilitator or mediator between publishers and ad exchanges. It integrates with various demand partners such as ad networks, SSPs (Supply Side Platforms), DSPs (Demand Side Platforms), and ad exchanges.","inLanguage":"en-US"},"inLanguage":"en-US"}]}},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/www.adpushup.com\/blog\/wp-json\/wp\/v2\/posts\/11437"}],"collection":[{"href":"https:\/\/www.adpushup.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.adpushup.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.adpushup.com\/blog\/wp-json\/wp\/v2\/users\/60"}],"replies":[{"embeddable":true,"href":"https:\/\/www.adpushup.com\/blog\/wp-json\/wp\/v2\/comments?post=11437"}],"version-history":[{"count":7,"href":"https:\/\/www.adpushup.com\/blog\/wp-json\/wp\/v2\/posts\/11437\/revisions"}],"predecessor-version":[{"id":34460,"href":"https:\/\/www.adpushup.com\/blog\/wp-json\/wp\/v2\/posts\/11437\/revisions\/34460"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.adpushup.com\/blog\/wp-json\/wp\/v2\/media\/30621"}],"wp:attachment":[{"href":"https:\/\/www.adpushup.com\/blog\/wp-json\/wp\/v2\/media?parent=11437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.adpushup.com\/blog\/wp-json\/wp\/v2\/categories?post=11437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.adpushup.com\/blog\/wp-json\/wp\/v2\/tags?post=11437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}