Header bidding in an app with Prebid Mobile
Sell in-app inventory through Prebid Mobile — step by step from one slot per app ad unit to the configId in the app, which placement type each format needs, what the ad server reads off an in-app request, a checklist for every SDK message when the app gets nothing, and Prebid Mobile against a publisher's own Prebid Server.
What it is and why
An app has no browser auction: Prebid Mobile asks a Prebid Server for each ad unit by its slot
id, and the same header-bidding tag answers. Every Prebid Mobile ad unit in the app is one slot in
the tag, and a slot answers one kind of creative — the impression’s media type (video, native or
banner) picks the path on our side, and a slot is built on one placement of one type. The app
developer never sees your serving host or placement key: they put one configId per ad unit into
the app, and everything else lives in the stored request we serve for that id. The server side —
slot ids, our Prebid Server, their Prebid Server — is on
Header bidding through a Prebid Server, and the
example apps are the end-to-end reference for
iOS and Android.
Example. A running app shows a 320×50 banner on the home screen, a 300×250 rectangle in the
activity feed and a rewarded video after a workout. That is three slots on one tag: two on Site
Placements sized 320×50 and 300×250, one on a Video Placement marked Rewarded. After the save
the Code face lists n1234-26, n1234-27 and n1234-28; the developer sets each as the
configId of the matching ad unit, points the SDK at the auction endpoint with the account
n1234, and the app fills on its first auction after the ad servers pick the tag up — within a
minute.
Typical scenarios
| The app ad unit | Build the slot on | Ad units on the slot |
|---|---|---|
Banner (BannerView / BannerAdUnit, e.g. 300×250, 320×50) | Site Placement | The placement’s size |
| In-banner video, interstitial video, rewarded video | Video Placement (tick Rewarded for a rewarded unit) | Leave empty |
Native (NativeAd) | Native Placement | Leave empty |
| Interstitial image, playable — anything full-screen that is not VAST | Non-standard Placement | Leave empty |
| An app that renders through Google (the original API: the SDK writes the bid’s price into a Google ad request as key-values) | Any of the above, plus the Google Ad Manager line item | — |
| An app whose Prebid Server is the publisher’s own | The same slots; their server reads our address, and their account document is theirs to file | see Prebid Mobile against their server |
A rewarded video and a rewarded playable are two slots with two ids, even when the creative is the same file.
Step by step
-
On the tag’s Slots face, add one slot per app ad unit, on the placement type the table above names — the full table, with why each row is what it is, is under In an app: what each slot needs. Name the slot after the ad unit it serves (
mrec-home,interstitial-level-end), so the id listing becomes the app’s own configuration table. GAM ad unit and Fallback markup do nothing for an app.
-
Save the tag with Serve this tag on. The ids exist only after this save.
-
Open Code → Our Prebid Server (or Their Prebid Server, our setup when the publisher runs their own) and copy Where to send the auction, Their account on it and, on our server, the two SDK calls under In an app — see Our Prebid Server. Then copy the listing under 1. The slot ids.

-
Hand the ids and the example apps to the app developer. Each id is the
configIdof one ad unit; the SDK calls carry the auction endpoint and the account already filled in. -
Ask the developer to start the ad units from the SDK’s initialisation callback, as the example apps do — an ad unit built before
initializeSdkfinished sends its request and never receives the answer. -
Check the result in the Header Bidding report; a slot that returns nothing is explained on the placement’s troubleshooting log (What the troubleshooting log says about a bid) and in Not working? below.
Caveats and exceptions
Who does what. The network manager builds the tag and hands over the slot ids; the publisher’s developer puts the ids into the app (what a publisher installs). 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, a Prebid Server for the app to call, and a network id on the ad server so the slot ids exist — see Slot ids.
Only four placement types can be slots. The picker lists the others closed off, each ending in not supported yet — Application Placement and Mobile Site Placement among them, which is where an in-app integration would otherwise start. Build the placements for an app on Site, Video, Native and Non-standard Placements.
A banner slot bids only in a size the app asked for. The app’s own request sizes are what the bid is matched against; a creative bids only in a size the app asked for. Video is never size-matched — the SDK plays the VAST it receives — and a native bid is described by its assets, not by sizes.
Rendering through Google. If the app renders through Google instead of through Prebid — the original API, where the SDK writes the bid’s price into a Google ad request as key-values — the Google Ad Manager line item section applies unchanged. A slot rendered by Prebid needs no Google ad unit and no line item.
A tag edit reaches an app within five minutes. 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.
Device ids on a declined reader. device.ifa is ignored when lmt or dnt is set and when
it is all zeros — what iOS returns when App Tracking Transparency is refused, and Android when
personalisation is opted out. On iOS the vendor id the SDK sends in device.ext.ifv is used in
its place, so capping keeps working for a reader who declined. Android sends no equivalent, and
on Android the app also needs the AD_ID permission, or Google Play Services withholds the id and
every cap silently stops applying.
Prebid Mobile against their server
An app never bids in the browser: Prebid Mobile always calls a Prebid Server, and when that server is the publisher’s own, everything under Their Prebid Server, our setup applies plus what the SDK adds. The example apps are the end-to-end reference; this is the part that touches your side.
configId is the slot id. Prebid Mobile sends no bidder parameters from the app: it puts the
configId into imp.ext.prebid.storedrequest.id and stops. Our host and placement key never
appear in the app — they are in the stored document, which is why the address or the per-slot
copies must be in place first.
The account is a stored request too, and it is theirs to file. The SDK sends the account id both as the account and as a request-level stored request. That account id comes from their Prebid Server host, not from us — we issue the serving host and the placement key, and nothing else; a publisher who asks their Epom contact for an account id is asking the wrong party. Our address answers a request-level id only for our own network id, so on their server the document has to live in their own backend, under the account id their host issued, and it needs the targeting block or the rendering API displays nothing it receives:
{
"id": "their-account-id",
"ext": { "prebid": { "targeting": {
"includewinners": true,
"includebidderkeys": true
} } }
}
Their server needs a Prebid Cache. The rendering API caches creatives for display; without one a good bid answers no winning bid in the bid response. We answer video with inline VAST and depend on no cache ourselves, so this is entirely on their side.
Full-screen slots. An interstitial or rewarded request — instl=1 or rwdd=1 — is answered
through a slot built on a Non-standard Placement whose ad units are left empty, so its document
carries no banner block. A request that names a size is answered at that size; one that names
none is answered at the device’s own width and height; the creative’s own size is not matched —
see Full-screen and other Non-standard slots.
App identity and device ids are read exactly as under In an app: what each slot needs.
Not working?
The SDK has a small vocabulary, and each phrase points somewhere specific.
“Prebid server does not recognize Config Id” is the SDK’s wording for the server’s Stored Imp with ID=”…” not found: the auction ran, and no stored request answered to that id. In order of likelihood:
| # | Check | Where |
|---|---|---|
| 1 | The id is not exactly what the tag lists. Both halves count: n1234-26 is one slot on one network | Copy it from 1. The slot ids on the Code face rather than typing it |
| 2 | The slot is not in the served set. Only slots on a tag that is saved, has Serve this tag on and is not deleted are served, and only slots that point at a placement. A tag paused to edit it stops bidding within a minute, and its ids drop out of the server’s answer once its cache of them expires | The tag’s Serve this tag switch and the slot’s Placement |
| 3 | The slot was removed and re-added. That is a new id; the app carries the old one | 1. The slot ids against the app’s configuration |
| 4 | You saved less than a minute ago. The ad servers refresh the served set every minute; the Prebid Server never caches a miss, so a new id resolves on the first auction after that | Wait a minute and retry |
| 5 | The Prebid Server’s stored-request fetch timed out. Prebid Mobile sends no tmax on interstitial and rewarded requests, so the Prebid Server falls back to its own stored-request timeout — 50 ms by default in Prebid Server, less than one round trip to us — and reports the slot as not found; slots it already holds in cache keep working, which is why it looks intermittent and hits full-screen formats first | Whoever runs the Prebid Server raises stored_requests_timeout_ms (a top-level key in Prebid Server’s own configuration); on pbs.eashb.com, ask Epom support or your account manager |
| 6 | The Prebid Server is not yet reading this network’s slots. The network’s serving host answers /hb/stored-requests on its own; the Prebid Server has to be pointed at it when the network is set up. This message on a freshly configured network is the sign that has not happened yet | Ask Epom support or your account manager |
“no winning bid in the bid response” with the id right: the account document on the server is
missing its targeting block, so the SDK never sees hb_pb / hb_bidder on the bid and treats a
priced bid as a loss — see Our Prebid Server.
The same phrase appears when the Prebid Cache cannot be reached; both are on the server side. On
the publisher’s own server, the account document is theirs to file and the cache theirs to run —
see Prebid Mobile against their server.
A blank slot and no message is a no-fill. The ad server answered nothing, and the places to look are:
| Check | Where |
|---|---|
| The placement is not sold by an active tag | When a placement answers bids |
| No creative fits — a banner slot bids only in a size the app asked for | The ad unit’s sizes in the app against the creatives’ sizes |
| Ordinary serving rules — targeting, caps and limits, and the GDPR policy for a reader whose IP is in the EEA and whose request carried no consent string | The placement’s troubleshooting log; Consent |
The Prebid Server’s auction budget is shorter than a round trip to us. Prebid Mobile sends no tmax on full-screen requests, so the server’s own auction_timeouts_ms decides, and a bid that arrives after it is a no-bid with context deadline exceeded in the response, never an error the app shows | Whoever runs the Prebid Server sets the budget; it has to be longer than the round trip to your serving host |
The ad unit was built before initializeSdk finished, so the request went out and the answer was never delivered | Start the ad units from the SDK’s initialisation callback, as the example apps do |
A rewarded ad that closes like an interstitial — no close button held back, the reward granted on the SDK’s own terms — means the slot is not marked Rewarded; see Rewarded.
Every cap silently stopped applying on Android — the app lacks the AD_ID permission, so
Google Play Services withholds device.ifa. Where: the app’s manifest.
Reference
In an app: what each slot needs
Only four placement types can be slots. Build the placements for an app on these:
| Prebid Mobile ad unit | Placement type | Ad units on the slot |
|---|---|---|
Banner (BannerView / BannerAdUnit, e.g. 300×250, 320×50) | Site Placement | The placement’s size. The app’s own request sizes are what the bid is matched against; a creative bids only in a size the app asked for. |
| In-banner video, interstitial video, rewarded video | Video Placement | Leave empty. The SDK plays the VAST it receives, so the creative is not size-matched. |
Native (NativeAd) | Native Placement | Leave empty — a native bid is described by its assets, not by sizes. |
| Interstitial image, playable — anything full-screen that is not VAST | Non-standard Placement | Leave empty. See Full-screen and other Non-standard slots. |
What the ad server reads off an in-app request, so you know which of your settings apply:
| Request field | What it becomes on our side |
|---|---|
app.bundle | The app’s package: the Package Name dimension and App Package targeting apply to in-app traffic. app.storeurl is deliberately not read as the page URL — every impression would otherwise report and target as the app store. |
device.ifa | The user for frequency capping and everything else keyed on a user. Ignored when lmt or dnt is set and when it is all zeros; on iOS device.ext.ifv is used in its place, Android sends no equivalent and needs the AD_ID permission. |
imp.bidfloor | Honoured, as US dollars — see the floor case under Corner cases and gotchas. |
| TCF string and GDPR flag | Consent, as the SDK carries it — see Consent. |
imp.ext.prebid.storedrequest.id | The configId — the only thing Prebid Mobile sends about the slot; the stored document holds host, placement key, channel and custom parameters. |
instl=1 / rwdd=1 | A full-screen request, answered through a Non-standard slot at the named size or the device’s own width and height. |
Prebid Server settings that decide whether an app fills (set by whoever runs the server; on
pbs.eashb.com by Epom):
| Key | Default | Why it matters |
|---|---|---|
stored_requests_timeout_ms (top level) | 50 ms | Shorter than a round trip to your serving domain; full-screen requests carry no tmax and fall back to it |
auction_timeouts_ms | server’s own | A bid later than this is context deadline exceeded, a silent no-bid |
| Prebid Cache | — | The rendering API needs one; without it no winning bid in the bid response |
Account document with targeting.includewinners / includebidderkeys | — | Without it the SDK never sees hb_pb / hb_bidder and treats every bid as a loss |
Every setting of the tag and the slot is on Header bidding tag settings and slots; the slot ids, our Prebid Server and the publisher’s own are on Header bidding through a Prebid Server.
Related
- Header bidding
- Header bidding tag settings and slots
- Header bidding with Google Ad Manager
- Header bidding on a site that runs its own Prebid.js
- Header bidding through a Prebid Server
- Header bidding reports and targeting
- Header bidding: what a publisher installs
- Reference apps for Prebid Mobile — iOS and Android
- Create a placement
- Create a video placement
- Create a native placement