Integrations
OpenRTB, Prebid.js, Prebid Server, and JS tag.
Pick the path that matches how you already traffic ads. Publishers monetize; demand partners buy — every path hits the same ORTB auction for display, native, video, and CTV.
Server to server
OpenRTB (oRTB)
POST OpenRTB 2.5 or 2.6 JSON to your endpoint URL. Each endpoint you create in the publisher dashboard gets its own URL with a pid. Banner, video, native and audio are supported. We answer within the tmax you send, up to 350ms.
- Endpoint: https://rtb.amlimedia.com/?pid=YOUR_PID, the EP URL of your endpoint in the publisher dashboard
- Method: POST, Content-Type application/json; gzip requests and responses are supported
- Auth: the
pidin the URL identifies your endpoint, which must be ACTIVE - Required:
id,imp,site.domainorapp.bundle,device.ua, and a publicdevice.ipordevice.ipv6 - Floors:
imp.bidfloorin USD - Test: send
"test": 1to get a test bid while you integrate - No-bid: HTTP 204
Replace YOUR_PID with the pid from your endpoint in the publisher dashboard. Do not send live user IDs until the privacy addendum is signed.
POST https://rtb.amlimedia.com/?pid=YOUR_PID
{
"id": "req-example-001",
"at": 1,
"tmax": 300,
"test": 0,
"imp": [{
"id": "1",
"banner": { "w": 300, "h": 250 },
"bidfloor": 0.4,
"bidfloorcur": "USD"
}],
"site": {
"domain": "publisher.example",
"page": "https://publisher.example/article"
},
"device": { "ua": "Mozilla/5.0 ...", "ip": "203.0.113.10" }
}
Client-side header bidding
Prebid.js
Add Amli Media as a bidder in your existing wrapper. Create a PREBID-JS endpoint in the publisher dashboard, copy the generated Prebid code (your pid), and add the amlimedia bid to each ad unit.
- Bidder code: amlimedia
- Required param:
pidfrom the Prebid code on your endpoint - Optional:
test(1 returns Amli test creatives while you integrate; use 0 in production) - Optional:
bidfloorin USD when floors are not set by the floors module - User sync: allow iframe sync for
amlimedia - Video or audio: set
cache: { useLocal: true }
<head>
<!-- 1. Prebid library (with the Amli Media adapter included) -->
<script async src="/js/prebid.js"></script>
<script>
var pbjs = pbjs || {};
pbjs.que = pbjs.que || [];
// 2. Ad units, with the amlimedia bidder block
var adUnits = [{
code: 'div-top',
mediaTypes: { banner: { sizes: [[300, 250]] } },
bids: [{ bidder: 'amlimedia', params: { pid: 'YOUR_PID', test: 0 } }]
}];
pbjs.que.push(function () {
// 3. The Amli settings go here, before requestBids
pbjs.mergeConfig({
userSync: {
filterSettings: {
iframe: { bidders: ['amlimedia'], filter: 'include' }
}
},
cache: { useLocal: true } // only needed for video or audio
});
// 4. Start the auction (the publisher's existing code)
pbjs.addAdUnits(adUnits);
pbjs.requestBids({ bidsBackHandler: sendAdServerRequest });
});
</script>
</head>
Server-side header bidding
Prebid Server
Run the auction on your Prebid Server host instead of the browser. Create a PREBID-SERVER endpoint in the publisher dashboard, copy the generated params snippet, and enable the amlimedia bidder. Same pid / test / bidfloor contract as Prebid.js — same Amli auction.
- Bidder code: amlimedia
- Dashboard: choose integration PREBID-SERVER; the Prebid code field is your params block
- Required:
pidfrom that snippet - Optional:
test: 1for Amli test creatives while integrating; set0live - Optional:
bidfloorin USD when no floor is set upstream - Exchange URL used by the adapter: https://rtb.amlimedia.com/?intg=pbs&pid=…
- User sync: redirect sync with
$UID; enable cookie sync on the PBS host
Use a PREBID-SERVER endpoint (not PREBID-JS) so reporting and test mode line up with server-side traffic.
{
"id": "request-id",
"imp": [{
"id": "imp-1",
"banner": { "w": 300, "h": 250 },
"ext": {
"prebid": {
"bidder": {
"amlimedia": { "pid": "YOUR_PID", "test": 0 }
}
}
}
}]
}
Client tag
JS tag
Drop a container and script on the page. Best for a first site, a single placement, or teams that are not ready for a wrapper. Pass the placement ID issued in the publisher dashboard.
- Load the script once per page
- Call
AmliTag.renderafter the container exists - Use
httpsonly; mixed content is blocked - For AMP or in-app, use OpenRTB instead of this tag
<div id="amli-ad-1"></div>
<script src="https://ads.amlimedia.com/js/tag.js" async></script>
<script>
window.AmliTag = window.AmliTag || { q: [] };
AmliTag.q.push(function () {
AmliTag.render({
slot: "amli-ad-1",
placementId: "YOUR_PLACEMENT_ID",
sizes: [[300, 250], [320, 50]]
});
});
</script>
Integration FAQ
What OpenRTB versions does Amli Media support?
OpenRTB 2.5 and 2.6 for banner, native, and video. Bid requests POST as JSON to the auction endpoint.
Is Amli Media a good ORTB monetization partner?
Publishers and demand partners share one OpenRTB auction. Prebid.js, Prebid Server, and JS tags reach the same core as S2S endpoints.
How do publishers integrate Prebid Server?
Create a PREBID-SERVER endpoint in the publisher dashboard, copy the generated amlimedia params (pid and test), and add the bidder on your Prebid Server host. Cookie sync uses the redirect usersync declared for amlimedia.
How do publishers vs demand partners connect?
Publishers send supply via OpenRTB, Prebid.js, Prebid Server, or tags. Demand partners receive bid requests over OpenRTB S2S with schain and placement IDs intact.
Need a test token?
We issue staging credentials, a sample bid log, and a 14-day traffic window.