Inbound OpenRTB for ad networks

The request and response format for selling your newsletters' ad slots to MailAdx over OpenRTB 2.5 or 2.6: key, limits, no-bid reasons, billing notices.

Your exchange or ad server sends MailAdx a bid request for an ad slot in one of your newsletters. We answer with a bid from our advertisers' campaigns, or with a no-bid that says why. You need an approved SSP seat and its API key: see Sell your supply with an SSP seat.

Endpoint and key

POST https://mailadx.com/adserver/rtb/bid
Content-Type: application/json
X-Rtb-Api-Key: <your seat's key>
Answer Meaning
200 with a bid response We bid on one or more impressions.
204 with header X-MailAdx-Nbr No bid. The header gives the reason (below).
401 The key is missing, wrong or replaced, or the seat is paused.

A request over your seat's requests-per-second limit gets a 204 with reason rate, never an error.

The request

OpenRTB 2.5 or 2.6, JSON, up to 64 KB.

  • id: required.
  • imp: one or more banner impressions, up to 5 per request. Give sizes as banner.w / banner.h or banner.format. Optional bidfloor in USD (bidfloorcur must be USD if sent) and tagid.
  • site.domain: the newsletter's domain. If it is missing we read site.publisher.domain, then the host of site.page. It must be one of your seat's domains or a subdomain of one.
  • cur: USD. A request that excludes USD gets no bid.
  • tmax: at least 30 ms.
  • device: country, device type, OS and language, when you have them. Campaigns that target these bid only when the request shows them.
  • regs: coppa: 1 gets no bid. gdpr, us_privacy and gpp are read; see hashed email below.
  • user.ext.eids (2.5) or user.eids (2.6): a SHA-256 hash of the reader's email, if you have one. We use it only for frequency caps, and only when the request carries no GDPR flag, no US Privacy opt-out, no GPP string and no COPPA flag. It is never stored as received.
  • bcat, badv: categories and advertiser domains to block. We honour them.
  • source.schain: recorded for review.
  • test: 1: we answer as usual, and nothing is recorded or paid.

The response

{
  "id": "your-request-id",
  "cur": "USD",
  "seatbid": [{
    "seat": "advertiser-buyer-id",
    "bid": [{
      "id": "bid-id",
      "impid": "1",
      "price": 0.85,
      "adm": "<a href=\"…/adserver/ssp/c/…\"><img src=\"…/adserver/ssp/i/…\" width=\"300\" height=\"250\"></a>",
      "nurl": "…/adserver/ssp/nurl/…?p=${AUCTION_PRICE}",
      "burl": "…/adserver/ssp/burl/…?p=${AUCTION_PRICE}",
      "adomain": ["advertiser.example"],
      "crid": "creative-id",
      "cid": "campaign-id",
      "cat": ["IAB19"],
      "w": 300, "h": 250, "mtype": 1
    }]
  }]
}

Example values. price is a CPM in USD, first price: the price you clear us at is what our advertiser pays for. seat is the advertiser's buyer ID from our buyers.json (/buyers.json at the root of our domain), or our own seat ID when the advertiser has none.

Notices and what is paid

  1. Fire nurl when we win, with ${AUCTION_PRICE} replaced by the clearing price.
  2. Fire burl when the impression is billable, with the clearing price.
  3. Put adm in the email as it is. When the reader's mail app loads the image, we count the impression.

An impression is paid once, when both the burl and the image load have arrived, in either order. A repeated notice or a reloaded image is never paid twice. If ${AUCTION_PRICE} is missing or above our bid, our bid is used. The click link takes the reader to the advertiser's page.

No-bid reasons

X-MailAdx-Nbr What to check
rate You're over your seat's limit. Slow down or ask for a higher one.
invalid The body is empty, too large or not a bid request.
currency Send USD, or leave cur out.
format No banner impression with a size.
domain site.domain is missing or isn't on your seat.
tmax tmax is under 30 ms.
coppa The request is for a child-directed audience.
floor Our best bid was under your floor.
nofill No campaign fits this impression right now.
error, snapshot We couldn't answer this time. Carry on sending.

Your Reports page counts every no-bid by reason.

Related