Native ads blend seamlessly into pages. Content-Driven Native advertising takes a step further by matching ads with page content. As a result, your pages display relevant ads blending into content.
AdRelevantis SSP provides Content-Driven Native ads for publishers. With AdRelevantis Bidder Adapter, you get native ads that match with content of your pages.
To use AdRelevantis Bidder Adapter, add in your page head the following code.
<script async src="//www.adrelevantis.com/js/dev/prebid.js"></script>
<script src="//www.adrelevantis.com/js/contentdriventag.js"></script>
<script>
var PREBID_TIMEOUT = 5000;
var FAILSAFE_TIMEOUT = 6000;
var adUnits = [{
code: 'div_1',
sizes: [
[360, 360]
],
mediaTypes: {
native: {
title: {
required: true
},
image: {
required: true
},
sponsoredBy: {
required: true
}
}
},
bids: [{
bidder: 'adrelevantis',
params: {
placementId: 13232354,
allowSmallerSizes: true
}
}]
},
{
code: 'div_2',
sizes: [
[250, 250]
],
mediaTypes: {
native: {
title: {
required: true
},
image: {
required: true
},
sponsoredBy: {
required: true
}
}
},
bids: [{
bidder: 'adrelevantis',
params: {
placementId: 13232354,
allowSmallerSizes: true,
cpm: 0.50
}
}]
},
{
code: 'div_3',
sizes: [
[1, 1]
],
mediaTypes: {
native: {
title: {
required: true
},
body: {
required: true
},
image: {
required: true
},
sponsoredBy: {
required: true
},
icon: {
required: false
},
}
},
bids: [{
bidder: 'adrelevantis',
params: {
placementId: 13232354,
allowSmallerSizes: true
}
}]
}];
var pbjs = pbjs || {};
pbjs.que = pbjs.que || [];
</script>
<script>
var adDivIds = ['div1','div2','div3'];
document.addEventListener("DOMContentLoaded", function(event){ adrtags("D435C107A8844E15BAA5D4A9B7D94FC5", adUnits, adDivIds); });
</script>
Add the following <div> tags in your page body.
<div id='div1'>
</div><br>
<div id='div2'>
</div><br>
<div id='div3'>
</div>
The above code and tags display 3 Native ads in the page. You can add more or less <div> tags to your page to have more or less Native ads in the page.
When the page is open, the code will analyze the content and bid based on the content. In the end, you will see Native ads that match the page content.
Here are a few examples that show Native ads that match page content: