Direct Integration (n360ortb)
Last updated
Was this helpful?
Was this helpful?
<head>
<!-- Load the n360ortb library -->
<script>
!function(){if(!window.n360ortb){window.n360ortb={init:function(){e("init",arguments)},fetchBids:function(){e("fetchBids",arguments)},setDisplayBids:function(){},targetingKeys:function(){return[]},que:[]};var n=document.createElement("script");n.async=!0,n.src="https://lib.nexx360.io/nexx360ortb/api.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(n,t)}function e(n,t){window.n360ortb.que.push([n,t])}}();
</script>
<script>
// Initialize the library
n360ortb.init({
currency: 'EUR'
});
// Fetch bids for your ad slots
n360ortb.fetchBids({
slots: [
{
tagId: 'your-tag-id',
divId: 'ad-container',
sizes: [[300, 250], [300, 600]]
}
]
}, function(bids) {
// Handle the bid response
console.log('Bids received:', bids);
});
</script>
</head>