Browse the help center

Header bidding: what a publisher installs

For a publisher whose network sells through Prebid — what the network hands you for each setup (its Prebid.js script, a bids entry for your own Prebid.js, a Prebid Server address and slot ids for an app), where each piece goes, the floors and consent you keep, and what to check when a slot stays empty.

How-to publisher

What it is and why

When your network sells your inventory through header bidding, its demand prices each ad position before your own ad server is asked, through Prebid. You do not build anything for it: the network sets up a header-bidding tag for your site and hands you a few lines to install once; after that, every change is made on the network’s side, with nothing to re-install. There is no Epom SDK — Epom takes part as an ordinary Prebid bidder called epom_as.

Example. A news site runs Google Ad Manager with three positions. The network sends one script line for the page <head> and three containers such as <div data-eas-ad="leaderboard"></div>, plus a line item to set up in Ad Manager. From then on, on each page view the network’s campaigns bid on the three positions; a position they buy shows their ad, the other two are filled by Google exactly as before. When the network later adds a fourth campaign or changes a floor, the page is untouched — the change reaches pages already carrying the script within about five minutes.

Typical scenarios

How your pages or app serve ads todayWhat the network sends youWhere it goes
Google Ad Manager, no PrebidOne script and one container per ad position, plus a line item to set up in your Ad ManagerThe script in the page <head>, the containers where the ads go
Google Ad Manager with your own googletag code you must keepThe same script; the network lists your slot ids or ad unit paths in the tagThe page <head>, above the Google tag
Your own Prebid.jsOne bids entry per ad unit (and an alias line, if the network bids under its own name)Your Prebid configuration
An app (Prebid Mobile), or a server-side auctionThe Prebid Server address, an account id and one slot id per ad unitYour app code
Your own Prebid ServerThe address your server reads the slots from, or one document per slotYour Prebid Server’s configuration

Tell your network manager which row you are on; that decides what you get.

Step by step

Three paths; follow the one that matches your row above. Each is on its own page, with the code the network sends and what to check when a position stays empty.

  1. A page with Google Ad Manager — the script in the page <head> above the Google tag, one container per position, the line item in Ad Manager: Install the header-bidding script on a page with Google Ad Manager.
  2. Your own Prebid.js — the epom_as adapter in your build, one bids entry per ad unit, the alias line if there is one, a single auction; where the adapter comes from: Add the network’s bidder to your own Prebid.js.
  3. An app with Prebid Mobile — the Prebid Server address and account in the SDK, one slot id per ad unit as its configId, the AD_ID permission on Android: Install header bidding in an app with Prebid Mobile.

Caveats and exceptions

Who this is for. Publishers whose network sells their pages or apps through Prebid. The stock Publisher role has no Header Bidding tab, so the network builds the tag and sends you what to install, and you see the results in your usual reports. If your network adds the tab to your role, you can build the tags for sites you may edit yourself; the full guide is Header bidding.

What you need before you start. Your site or app set up in the network, with placements for the ad positions you want sold — your network manager creates them or tells you which ones to use. Edit access to the page <head> (or the WordPress theme header), your Prebid.js configuration, or the app code — whichever the integration needs. For Google Ad Manager pages: rights in your Ad Manager to create key-values, an order, a line item and a creative. For your own Prebid.js or Prebid Server: a build that includes the epom_as adapter. For apps: Prebid Mobile in the app, and on Android the AD_ID permission.

Floors you keep. A floor you set in Prebid — the Price Floors module, params.bidFloor, or imp.bidfloor from the SDK — is honoured before Epom bids. Floors are in US dollars; a floor in another currency is converted at the rate the network holds, and a currency it cannot price gets no bid. A floor from the Price Floors module wins over params.bidFloor.

Consent you keep. Your consent manager’s TCF string is passed on with every bid request. Load its IAB stub synchronously in <head>, above the tag, as TCF requires — otherwise the tag cannot see it and does not wait for the visitor’s answer. A page without a consent manager still bids.

Your other bidders and Google demand compete as before. Header bidding adds one bidder; it does not replace your ad server.

Changes reach the page without a re-install. A later change to the tag reaches pages that already carry the script within about five minutes.

The caveats of one setup — the script’s position before the Google tag, the sizes an ad unit lists, a slot id that is fixed once created — are on that setup’s page, linked under Step by step.

Not working?

  • No bid in a currency. Where: the floor’s bidFloorCur — a currency the network cannot price gets no bid; use USD.
  • Nothing bids without a consent banner answer. Where: the IAB stub — it must be loaded synchronously in <head> above the tag so the tag can wait for the answer.
  • You cannot find the Header Bidding tab. Where: your role — the stock Publisher has none; the network builds the tag. See Header bidding.

The causes of one setup are on its page: the first page view without network ads on a page with Google Ad Manager; a position that never shows network demand, two wrappers, vanishing video bids on your own Prebid.js; an unrecognised Config Id, frequency caps and the first request in an app with Prebid Mobile.

Reference

The bids entry for your own Prebid.js:

ParamRequiredWhat it is
networkIdYesYour network, as n and a number
hostWhen sentThe network’s serving domain, as a bare hostname — no https://, no path
placementKeyYesThe placement that sells this position
channelNoA traffic label the network targets and reports on; sent only if the placement has one
customParamsNoKey-value pairs the network targets on, for example { section: 'sport' }
bidFloor, bidFloorCurNoA floor for this position, in bidFloorCur (USD when left out). Another currency is converted to USD at the rate the network holds; a currency it cannot price gets no bid. A floor from the Price Floors module wins over it

What the network sends per setup, and where it goes, is the table under Typical scenarios. The Google Ad Manager key-values and line item: The Google Ad Manager line item. Which Prebid Server an app points at: Which Prebid Server to use.

Per-role notes

  • Publisher (stock role): no Header Bidding tab; you install what the network sends and see the results in your usual reports.
  • Publisher with the Header Bidding tab: build tags for sites you can edit — see Header bidding.

Related pages:

Related pages

Please disable Adblock
Are you using adblock? Disable it and reload the page to proceed to the destination page.

A registration has already been submitted from this page. Please try again in 10 minutes.