Browse the help center

Header bidding through a Prebid Server

Sell header-bidding slots through a Prebid Server — step by step from the saved tag to the slot ids, our Prebid Server or the publisher's own reading our stored requests or taking our adapter entry, which server to use, what its operator has to do, the caveats, a fix-it checklist and the document and endpoint reference.

How-to network manager admin Account → Header Bidding

What it is and why

Use this route when the auction runs on a Prebid Server rather than in the browser — the one the Code face offers, or the publisher’s own. The page routes assume the auction happens in the browser; a publisher can also buy through a Prebid Server, and an app has no other option: Prebid Mobile always calls a server. A server-side auction asks for each slot by id, and Epom serves the slot definitions those ids resolve to, so the publisher stores nothing of ours that can go stale. The Code face is split by whose server it is, because the material differs completely and only one of them applies to any given publisher. The SDK side of an app is on Header bidding in an app with Prebid Mobile.

Example. A publisher’s app asks pbs.eashb.com for slot n1234-26. The Prebid Server does not hold that id, fetches https://ads.example.com/hb/stored-requests?imp-id=n1234-26 from your serving domain, receives the document naming network n1234, host ads.example.com and placement key a4f21c9e7b, caches it for 300 seconds and calls the epom_as adapter with it. You later swap the slot’s placement; the ad servers serve the new document within a minute and the app sees it within five, with nothing changed in the app.

Typical scenarios

The publisher…Pick on Where the auction runsWhat you hand over
has an app, or wants a server-side auction without standing anything up (a pilot, a first app, a handful of publishers)Our Prebid ServerThe auction endpoint https://pbs.eashb.com/openrtb2/auction, the account (your network id), the slot ids, two SDK calls
runs their own Prebid Server and wants it to read the slots from usTheir Prebid Server, our setupThe address https://{serving-domain}/hb/stored-requests for their stored_requests.http block, or one document per slot
runs their own Prebid Server and already stores these slotsTheir Prebid Server, our adapterOur epom_as fragment alone, to merge into ext.prebid.bidder of their document
sends more than a pilot’s volumeA dedicated Prebid Server instance per client, built with the epom_as adapterAsk Epom support; its address replaces pbs.eashb.com on the Our Prebid Server face, or hand out Their Prebid Server, our setup
runs Prebid.js on the page but calls bidders through a Prebid Servernothing here — the same bids entryThrough their Prebid.js, into their Prebid Server

Step by step

  1. Decide which server runs the auction — Which Prebid Server to use.

  2. Build and save the tag as under Steps on the main page, with Serve this tag on, every slot pointing at a placement and a Serving domain set. Those three are what makes an id exist — see Slot ids.

  3. Open Code and pick the face on Where the auction runs:

    • Our Prebid Server — copy Where to send the auction, Their account on it, the two SDK calls under In an app and the listing under 1. The slot ids. Details: Our Prebid Server.

      The Code face for our Prebid Server: auction endpoint, account, and the app setup

    • Their Prebid Server, our setup — copy 1. The slot ids and, from 2. How their server finds those slots, either the stored_requests block with the address or one document per slot (one, not both). Details: Their Prebid Server, our setup.

      The Code face for a publisher's own Prebid Server: the slot ids and the address their server reads

    • Their Prebid Server, our adapter — pick the name on the switch and copy one bidder fragment per slot. Details: Their Prebid Server, our adapter.

      The Code face for a Prebid Server that already stores these slots: our bidder fragment alone

  4. Hand it over — with the example apps for an app developer — and, for their own server, the list under What their Prebid Server operator has to do.

  5. On Their Prebid Server, our setup, open the URL under 3. Check it answers in a browser: you should see one entry per slot.

  6. Check the result in the Header Bidding report; a slot that returns nothing is on the placement’s troubleshooting log (What the troubleshooting log says about a bid).

Caveats and exceptions

Who does what. The network manager builds the tag and hands over what the server face prints; the publisher receives the slot ids, or the address and documents for their own server (what a publisher installs), and whoever operates their Prebid Server does the short list below. A Can View share sees the site’s tags but cannot save or delete them — see the per-role notes on the main page. The tag needs the access listed under Permissions.

Which Prebid Server to use

Out of the box the Our Prebid Server face and the example apps point at pbs.eashb.com, with its cache at cache.eashb.com. A network may use them for small volumes — a pilot, a first app, a handful of publishers — with nothing to stand up.

For more than that we recommend a dedicated Prebid Server instance per client, with its own capacity, timeouts and cache. Epom helps set one up when needed: ask Epom support or your account manager. The epom_as adapter is not yet in a released Prebid Server build, so the instance is built with it as part of that setup. Once it runs, either:

  • have Epom support name it, and its cache, on the Our Prebid Server face, so the face prints its address instead; or
  • hand your publishers Their Prebid Server, our setup.

Either way the server reads the slots from the network’s /hb/stored-requests and has to be given the network’s account; nothing changes in the tags.

Slot ids

A server-side auction asks for a slot by id, so the id is the value that matters most on these faces. It is {network}-{slot} — n1234-26 — and the publisher puts it in their own code: configId on a Prebid Mobile ad unit, imp.ext.prebid.storedrequest.id in an OpenRTB request built by hand. Nothing reaches us without it.

Our Prebid Server and Their Prebid Server, our setup list the ids under 1. The slot ids, one line per slot, container name first; the two adapter faces show one block per slot instead, headed by the container name. An id exists once three things are true: the tag has been saved, the slot points at a placement, and the tag has a Serving domain. A slot missing any of them is left out of the listing and has no document. Ids never change — both halves are fixed once the slot exists — so renaming the container or swapping its placement keeps the id; a new id is handed over only when a slot is added. If the listing stays empty on a tag that has been saved with placements and a domain, the network id is missing on the ad server, and Epom support or your account manager is the one to ask: without it the network serves no stored requests at all.

Beside the ids sits a link to the working iOS and Android example apps that send these ids — epom/epom-prebid-mobile-demo, one short method per format — banner, video, native, interstitial and rewarded among them — shipped pointed at pbs.eashb.com and a demo network so a fresh clone fills before anything is changed. Hand it to an app developer with the ids.

The address serves a slot only while its tag is active. The answer is built from active tags on the same one-minute pass that authorises bids. Switching Serve this tag off, deleting the tag, or removing the slot takes the id out of the answer within about a minute — and a Prebid Server that cannot resolve a stored request fails that auction with Stored Imp with ID=”…” not found rather than running it without us. A publisher who holds copies sees the quieter version: the document still resolves, the bid is refused, and their auction simply has no bid from us.

The account is also a stored request. Prebid Mobile sends the account id a second time, as a stored request at the top of every bid request, and Prebid Server refuses the whole auction when that lookup misses. The document filed under it also asks for the two targeting keys the rendering API uses to recognise a winner (hb_pb and hb_bidder) — without them every bid the app receives, priced or not, is one it never renders. The network’s ad server answers that lookup itself: asked for request-id={network id}, its address returns the account document with the targeting block already in it. The document is built from the network’s identity, not from any tag, so it is there before the first tag is saved — which also means it proves nothing about whether the network sells anything. Nothing in the app and nothing in the tag has to change for it. If an app that sends a valid configId logs no winning bid in the bid response on every request, this document is what to ask your contact to check. On the publisher’s own server the account document is theirs to file — see Prebid Mobile against their server.

The configId is not the placement key. The serving host and placement key never appear in the app: they sit in the stored request we serve for that id, together with the placement’s channel and custom parameters. A slot changed here is live on the ad servers within about a minute; the Prebid Server on the Our Prebid Server face caches a resolved slot for five, so an app sees the change within five.

Three rules for a server that reads our address (Their Prebid Server, our setup):

  • Beside whatever backend they already run, never instead of it. Prebid Server tries its backends in order and takes the first hit. A server that can only reach us answers an error for every id of its own and loses the whole auction with it. The request-level document a Prebid Mobile app asks for is one of those: the address answers it only for our own network id, and an app on their server asks under theirs.
  • Keep the cache block. Prebid Server’s in-memory cache defaults to none, and without it every auction fetches every slot again.
  • Restrict the address at the edge. Ask Epom support or your account manager to limit /hb/stored-requests on your serving domains to their server’s egress addresses.

A document is a copy. Change the slot here and a publisher who filed documents has to be handed them again; the address, by contrast, never goes stale.

Other bidders travel too. A slot’s partners (see Other bidders on your tag) are written into the document beside us, each under its bidder code — or under its alias when it has one. An alias is unknown to their server until it is declared, and undeclared it is not an error: the partner is dropped without a word and the slot runs with one bidder fewer. Whenever a tag uses one, step 2 of the face prints the declaration, which goes either in their request or as aliasOf in their server’s bidder configuration.

Our name on a server that already stores the slots. On the adapter face a switch chooses the key. As epom_as is recognised by any Prebid Server carrying our adapter, with nothing else to declare. As epom_{network} — the network’s own code, suggested from the deployment’s network id, or the Bidder code typed on a tag in Bidder integration — keeps our name out of their configuration at the cost of one more thing they must not forget: the face then prints the declaration that makes the name resolve on their server. Without it we are not an error there; we are dropped, and the slot runs without our demand at all. The same switch exists on Their Prebid.js, our adapter. The faces that print whole documents have no switch: there we are always epom_as.

The adapter is not in a released Prebid Server build yet. It is open as prebid-server PR #4916, so today their host builds from that branch. A stock build refuses the request rather than ignoring it, which is at least loud: request.imp[0].ext.prebid.bidder contains unknown bidder: epom_as. pbs.eashb.com already carries it, so Our Prebid Server with the shipped hosts is unaffected, and a dedicated instance Epom helps set up is built with it.

What their Prebid Server operator has to do

Almost nothing, and the list is short enough to hand over as it is:

  • The bidder ships enabled, with no per-publisher configuration. Impressions are grouped by network and sent one request per network, so several of our networks on one page cost one call each.
  • The endpoint must not be configured. The adapter works out the address of each network’s bid endpoint from the networkId in the params, per impression, because a Prebid Server may not take a bidder’s address from a publisher parameter. Overriding adapters.epom_as.endpoint sends every network’s bids to that one address instead of each network’s own. There is no per-region variant either: the adapter’s geoscope is global.
  • networkId and placementKey are required. There is no server-side default for either, and an entry missing networkId is not bid — the endpoint has nothing to resolve. host stays in the entry for Prebid.js, which sends the bid to the network’s own domain, where its cookies live.
  • Banner, video and native, for both site and app inventory. The bid endpoint it calls reads and answers OpenRTB 2.6.
  • No user sync until they configure one. The adapter declares iframe sync, but the sync URL lives on each publisher’s own deployment, so a host that has not set one gets no sync and lower match rates — nothing breaks, and there is no error.
  • Our GVL vendor id is 849 — the same one the browser path uses, see Consent.
  • To switch us off, adapters: { epom_as: { disabled: true } }.
  • Point the server at the network’s /hb/stored-requests and give it the network’s account — the server refuses an account it does not recognise. Set stored_requests_timeout_ms to 1000–2000 ms and keep the in-memory cache block.

Not working?

SymptomCheckWhere
The slot ids listing is empty after a saveOne of the three conditions is missing — the tag saved, every slot on a placement, a Serving domain set. If all three hold, the network has no network id on the ad server and serves no stored requests at allThe tag’s Slots and Tag settings; then Epom support or your account manager
Stored Imp with ID=”…” not found (in an app: Prebid server does not recognize Config Id)The id is mistyped; the tag is paused, deleted or the slot removed (gone from the answer within a minute); the slot was re-added and has a new id; the server’s stored-request fetch timed out; the server is not pointed at this network’s address yetThe full ordered list is under When the app gets nothing
The same not found on every slot the server has not cached yet, intermittentlystored_requests_timeout_ms is at Prebid Server’s default of 50 ms, shorter than a round trip to your serving domain. It is a top-level key; placed under auction: it is silently ignoredTheir Prebid Server configuration: set it to 1000–2000 ms
Every auction on their server fails, for their own ids tooOur address was configured instead of their own backend; Prebid Server tries backends in order and ours answers only our idsTheir stored_requests configuration: ours beside theirs
A slot edit never reaches their serverThey hold a document with the same id in their own store — a file in stored_requests, a database row — which answers first and never goes staleTheir own store: keep our ids out of it
Every auction fetches every slot again; load on your serving domainTheir in-memory cache block is missing (Prebid Server defaults to none)The in_memory_cache block the face prints
request.imp[0].ext.prebid.bidder contains unknown bidder: epom_asA stock Prebid Server build without the adapterTheir build — prebid-server PR #4916; pbs.eashb.com and a dedicated instance carry it
The slot runs without our demand, no error on their serverThe bidder is under an alias their server does not knowThe aliases declaration the face prints, in their request or as aliasOf in their bidder configuration
A partner on the slot never bids through their serverThe partner’s alias is undeclared; it is dropped without a wordThe declaration step 2 prints for that partner
Every network’s bids go to one addressadapters.epom_as.endpoint was overriddenTheir adapter configuration: remove the override
An entry is never bidnetworkId is missing; the endpoint has nothing to resolveThe fragment or document on their side
Low match rates, no errorNo user sync configured on their deploymentTheir sync URL for epom_as
The app logs no winning bid in the bid response with a valid configIdThe account document lacks its targeting block, or the Prebid Cache is unreachableOn pbs.eashb.com, ask your contact to check the account document; on their server, Prebid Mobile against their server
The “Check it answers” URL shows fewer entries than slotsThose slots are not in the served set — not on a placement, or the tag is not activeSlots; Serve this tag
The address answers 401 with {"requests":{},"imps":{}}Asked without ids and without the listing secret — an empty envelope does not mean the network has no slotsRead the status, not the body; the secret from Epom support
The browser shows an error on the array-form URLA browser sends the [ of imp-ids=[…] raw and the server refuses it before we see itUse the repeated imp-id= form the face prints
A change is on the ad servers but not in the appThe Prebid Server caches a resolved slot for five minutesWait five minutes

Reference

The keys and timings are below; what each of the three faces hands over — the endpoint, account and SDK calls, the stored-request address and the slot documents, the adapter entry and the alias — is on the subpage Prebid Server faces reference.

FaceRead it for
Our Prebid ServerWhere to send the auction, the account, the SDK calls for an app, the s2sConfig and cache blocks for a page, the slot ids
Their Prebid Server, our setupThe stored-request address and its two query shapes, the listing and its secret, one document per slot, the check URL
Their Prebid Server, our adapterThe epom_as entry to merge per slot and the alias declaration

Keys and timings at a glance

ItemValue
Slot id{network}-{slot}, e.g. n1234-26; fixed for the slot’s lifetime
Account id on our Prebid Serverthe network id, e.g. n1234
Auction endpoint (shipped)https://pbs.eashb.com/openrtb2/auction
Cache (shipped)https://cache.eashb.com/cache
Stored-request addresshttps://{serving-domain}/hb/stored-requests, ?imp-id= repeated or ?imp-ids=[…]; ?request-id={network id} for the account document
Listing (no ids)HTTP Basic, any username, the listing secret; 401 + empty envelope otherwise; off with no secret set
Ad servers pick up a tag changewithin about a minute
Prebid Server cache of a resolved slotfive minutes (ttl_seconds: 300 in the block above)
stored_requests_timeout_msPrebid Server default 50 ms; set 1000–2000 ms; top-level key
Protocol on the bid endpointOpenRTB 2.6
GVL vendor id849

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.