Browse the help center

OpenRTB integration reference

Field-level reference of both OpenRTB directions — the bid request Epom sends DSP partners and the response fields it reads back, the floor / PMP / creative-scan filters, the loss reasons and auction macros a buyer receives, and the /hb/bid endpoint Epom answers as a seller.

Reference network manager admin

This is the field-level map for anyone plugging a DSP into Epom, or plugging Epom into a buyer, and for debugging why a partner sees no bid opportunity, a malformed request, or a bid that never wins.

Epom speaks OpenRTB in two directions, and they are separate implementations with different defaults:

DirectionEpom’s roleEndpointProtocol
Outbound — Epom asks DSPs to bidExchange / SSPThe partner’s endpointPer partner, default 2.5
Inbound — a buyer asks Epom to bidSeller / bidderPOST /hb/bid on the ad-serving host2.6

Most of this page is the outbound direction, because that is where the field surface is large. The inbound direction is covered under Epom as a seller; the product side of it lives in Header bidding.

For the outbound direction: for each OpenRTB banner reached during ad selection, Epom builds one bid request per eligible banner, POSTs it to that banner’s DSP partner endpoint, and runs an auction over the returned bids. Partners are configured in DSP Partners; the demand-side banner in OpenRTB banners.

Note: two banners pointing at the same partner produce two requests, not one — the unit is the banner, not the partner. A banner whose DSP partner is deactivated is dropped before any request is built.

Note: the request is a JSON POST with Content-Type: application/json; charset=UTF-8 and an x-openrtb-version header naming the partner’s protocol version; the body is gzipped only when the partner has Gzip bid request on. Version, timeout, currency conversion and endpoint are per-partner settings — see the DSP Partners field table. Protocol version defaults to 2.5; native protocol to 1.1. Null fields and empty arrays are omitted from the JSON rather than sent.

Note: on a header-bidding call, a DSP partner is asked only when its Allow in header bidding setting is on, the platform-wide programmatic switch is on, and its pricing model is CPM. Otherwise its banners are skipped for that call.

What this reference covers

PageRead it for
This pageThe two directions, Currency, The bid floor, the essentials of the request and the response, native impression trackers, the partner “network parameters” and the coverage note
OpenRTB bid request fieldsEvery field of the outbound request: the top-level BidRequest, the privacy signals, imp by placement type, site and app, device, user, pmp.deals, inventory masking
OpenRTB bid response, auction and macrosThe response fields Epom reads and ignores, the four stages a returned bid passes, second-price clearing, the loss reasons, the auction macros
Epom as a seller: the /hb/bid endpointThe inbound wire contract: limits, validation, the no-bid answer, floors, what each returned bid carries

Currency

Epom accounts in USD. Prices, floors, revenue and reports are dollars. A partner may be quoted in its own currency — set as the DSP partner’s Currency, priced at the partner’s contractual rate or at the day’s reference rate: the ECB’s for the currencies it publishes, Frankfurter’s for the rest. A UTC day is priced with the latest fixing dated before it, so the rate does not move during the day and can be checked against the ECB’s published history. Without one every request carries cur: ["USD"] and USD floors; a creative carries no currency of its own.

With a currency, the request is quoted in it: cur, imp.bidfloorcur and pmp.deals[].bidfloorcur name it, and imp.bidfloor and every deal floor are converted at its rate. The bid response is then read by the currency it names:

Response curRead as
absentthe currency the request asked for
USDdollars, unconverted
the requested currencyconverted to USD at the same rate
any other currency a rate is held forconverted to USD at the day’s rate the network holds for it, whatever the request asked for; counted and logged, because the floor went out in another currency
a currency no rate under seven days old is held for, or not a currencyrefused with loss reason 3 (invalid bid response), counted and logged — never read as dollars

The auction then runs in USD: floors, second-price clearing and deal floors compare dollars. Settlement goes back in the bid’s own currency: ${AUCTION_PRICE} is the clearing price converted back at the rate that priced the bid (a first-price win reads exactly what you bid), ${AUCTION_CURRENCY} names that currency, and ${AUCTION_MBR} divides like units.

Warning: when no rate can be had — none fetched for the currency and no contractual one, or the fetched one is more than seven days old — the partner is not asked, and every such request is counted and logged. A currency is never priced at 1.0.

The bid floor

imp.bidfloor is the first non-zero value along this chain, evaluated for the request’s country:

banner Bid Floor → placement Bid Floor → site Bid Floor → the banner’s own price → the campaign price → the site CPM threshold

A header-bidding request raises the result to the publisher’s floor when that is higher.

If every link is unset or zero, no floor is sent. An empty country code short-circuits the chain to zero. The two price links only contribute when the pricing type yields an eCPM — see CPM threshold for the pricing-type table.

Warning: the javadoc above this method in the source states a different order (placement before banner) and lists a seventh step, “open rtb country bid floor”, that does not exist. The order above is what the code does. Do not use the javadoc.

Two things sit outside the chain:

  • A header-bidding caller’s floor raises ours. When the inbound request names its own floor, the value sent onward to DSPs is the higher of the two. This applies only to header-bidding requests; ordinary serving keeps the chain’s answer.
  • There is no per-partner floor. Nothing on the DSP partner sets or adjusts a floor, and there is no way to quote different partners differently except by giving them different banners.

Note: nothing takes a margin off DSP spend. The winning bid price is banked as the raw settlement price. Epom’s margin is taken on the publisher side, as revenue share on the site or placement — the buyer’s price is never marked down. (A “fee” field exists in the floor model but is never populated by any code path; it is always zero.)

The bid request

Epom builds one request per eligible banner, with exactly one imp typed to the placement. The essentials per object are below; every field, with the corner cases, is on OpenRTB bid request fields.

ObjectEssentialsDetail
Top-level BidRequestid, one imp, site or app, device, user, at (first price unless Always 2nd price or an explicit FORCE_FIRST_PRICE = false), tmax (the partner’s Timeout (ms) minus the time the auction batch has already used; 10 ms or less left and the request is never sent) and cur on every request; bcat, source (pchain and schain), regs, test and ext conditionally. badv, bapp, wseat and allimps are not sentRequest: top-level BidRequest
Privacy signalsOff by default. With Pass privacy signals to DSPs on, gdpr, the TCF consent string, us_privacy, gpp / gpp_sid and coppa go to regs and user.consent on a 2.6 partner, under ext on earlier versions — forwarded, not enforcedPrivacy signals: regs and user.consent
imp by placement typeimp.banner for display (w/h, format[] to 2.5 partners only, pos, battr; btype never), imp.video (linearity, mimes, min/max duration, a fixed six-protocol list VAST 2.0–4.0, skip settings, playback methods, ssai), imp.native (ver, request, battr); shared: imp.id is the transaction id, tagid, bidfloor, bidfloorcur, instl, rwdd, secure, pmp, extDisplay, Video, Native, Shared imp fields
site / appThe live page domain, page URL and referrer (the site’s configured URL when neither is usable), a hashed site.id, the generated publisher id or the site’s Seller ID, IAB categories, the content fields a stitcher describes; app adds bundle, storeurl, verRequest: site and app — with the Google IMA domain, a readable tag id and whether the roll position is sent
deviceua, ip / ipv6, js, connection type, carrier, language, OS, device type, make / model, ifa with ext.ifa_type, lmt / dnt only when the ad request carried them, geo with an alpha-3 country and lat/lon from IP or GPS (geo.type tells which); screen size is never forwarded; a GDPR-anonymised request is strippedRequest: device
userEpom’s UID, the consent string, the synced buyeruid, custom data, keywords, DMP segments, the proprietary ext.privateBrowsing, the WebView package and every custom parameter as ext.<name>Request: user
pmp.dealsOnly when the campaign has PMP deals and one matches: private_auction, the deal id, floor and currency, wseat, at; a private auction with no matching deal is never sentRequest: pmp.deals
Inventory maskingA masked site becomes Site_<id> with domain, page and ref cleared (MD5 hashes with field hashing on); publishers are never the raw accountInventory masking

The bid response and the auction

Epom parses the standard seatbid[].bid[] structure and discards anything it does not read. The essentials are below; the full tables and corner cases are on OpenRTB bid response, auction and macros.

TopicEssentialsDetail
Fields Epom readsprice, adm, nurl, lurl, impid, crid, adid, cat[], adomain[], dealid, ext, seat, and the response id / bidid / cur / customdata. cid, attr[], iurl and w/h are ignored. Exactly one seatbid with exactly one bid, or the response is discarded wholeResponse: fields Epom reads
What happens to a returned bidFour stages: validation and the floor (a deal bid skips imp.bidfloor), the private-auction pre-filter, the creative scan (a BLOCKED creative drops out and the runner-up wins), deal validation. No size limit on the response or admWhat happens to a returned bid, Is there a size limit?
Auction and clearingSecond price only when the auction type resolved to it and more than one bid survived: min( max(deal floor + $0.01, second-highest bid + $0.01), winning bid ). Require a competing DSP withdraws a lone bidder rather than changing the ruleAuction and clearing
Loss reasonsNine codes reach ${AUCTION_LOSS}: 0, 3, 4, 7, 100, 101, 102, 103 and 200; sent only with Call loss notification URL onLoss reasons
Auction macros${AUCTION_ID}, ${AUCTION_BID_ID}, ${AUCTION_IMP_ID}, ${AUCTION_SEAT_ID}, ${AUCTION_AD_ID}, ${AUCTION_PRICE} (the clearing price in the currency of your bid, also :$$ENC$$), ${AUCTION_CURRENCY}, ${AUCTION_LOSS}, ${AUCTION_MBR} (clearing ÷ bid, at most 1); an unresolvable macro becomes an empty stringAuction macros

Native bids: which imptrackers and eventtrackers fire as impression beacons

For a native bid, Epom takes the impression trackers out of the native response in adm and fires them as impression beacons of the served ad, next to its own:

Native response versionTrackers fired at the impression
1.0, 1.1Every URL in imptrackers
1.2Every URL in imptrackers plus every eventtrackers entry with event: 1 (impression) and method: 1 (image pixel) that has a url — duplicates fired once

Not fired: eventtrackers with method: 2 (JavaScript), entries for other events (viewability 2–4 and custom events), and jstracker. Each tracker URL is macro-processed first, so ${AUCTION_PRICE} and similar auction macros are filled. In a native template the beacons are written as hidden 1×1 images by $$NATIVE_IMPRESSIONS$$, so they load when the ad renders — the same moment Epom’s own impression beacon fires. They do not change how Epom counts: the impression in Epom’s reports is Epom’s own beacon; the partner’s trackers feed the partner’s numbers.

Epom as a seller: /hb/bid

Epom also answers OpenRTB bid requests, as a bidder in a Prebid auction: POST /hb/bid on the ad-serving host, OpenRTB 2.6, up to 40 impressions per request, 204 No Content for no bid, 400 with a JSON error for a rejected request, and one seatbid with seat epom in USD. The full wire contract — what each returned bid carries, adomain, bid.exp, capping and limits on bids, the placement gate and the VPAID placeholder duration — is on Epom as a seller: the /hb/bid endpoint; the product side in Header bidding.

Partner “network parameters”

Beyond the OpenRTB fields above, a partner integration uses named parameters drawn from a fixed set of 16. These are partner-onboarding values, filled on the DSP partner and/or the OpenRTB banner — not OpenRTB spec fields. Fourteen are the checkboxes of the partner’s Parameters card: Template Content Adapter, Broker Url, Win Notification URL, Traffic Tier, Mask Inventory, Second Price Only, Allow empty DSP UUID, Force First Price Auction Type, Call loss notification URL, Send winner price in loss notification, Hash Publisher Site Field’s Values, Send supply chain (banner override), Seller domain override (asi, banner override) and Interstitial. The other two are the template ids the code reads, Template Native Adapter and the deprecated Template General. No other keys are accepted.

None of them is a fee, margin, commission or revenue share; no such parameter exists.

Coverage note

This page documents both directions of the standard path in full: every field Epom’s builder populates, every response field it consumes, the filter pipeline, the loss reasons, the auction macros, and the seller endpoint’s contract.

This page does not enumerate per-partner-type differences. Several of the 16 branded partner types receive small partner-specific adjustments — a nulled or emptied banner object on pops, partner-specific imp.ext keys, forced interstitial, test:0, or the markup read from a partner-specific place in the response. They change when a partner’s integration is revised; ask Epom support or your account manager what your specific partner type sends.

One setting is easy to mistake for a gap: with Pass privacy signals to DSPs off, the default, the outbound request has no regs and no user.consent — see Privacy signals. device.dnt and device.lmt are sent whenever the ad request carried them — see Request: device.

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.