Nexx Web tag
Example of Nexx Web tag
Integrate the following script in the <head>:
<head>:<head>
<script async src="//cdn.nexx360.io/loader.js"></script>
<script>
var n360Ad = n360Ad || {};
n360Ad.que = n360Ad.que || [];
n360Ad.que.push(function(){
n360Ad.setConfig({
account: 'ENTER YOUR CUSTOMER ID',
gdpr: 1,
timeout: 2000,
ids: {
id5: { partnerId: ENTER YOUR CUSTOMER ID },
},
targeting: {
key1: 'value1',
key2: ['value1', 'value2']
},
lazyLoading: {
isActive: 1,
fetchRatio: 2,
mobileFetchRatio: 4,
},
amazon: {
isActive: 1,
pubId: 'ENTER YOUR AMAZON PUB ID'
}
});
n360Ad.setTargeting('key1', 'value1');
n360Ad.setTargeting('key2', ['value1', 'value2']);
n360Ad.defineOutOfPageSlot('/your_GAM_network_ID/your_GAM_adunit','div-1')
.setNexx360TagId('ENTER YOUR PLACEMENT ID')
.setLabel('oop')
.setTargeting('adunit', 'oop_ad')
.setTargeting('position', 'atf');
n360Ad.defineSlot('/your_GAM_network_ID/your_GAM_adunit',[[728,90],[970,250]],'div-2')
.setNexx360TagId('ENTER YOUR PLACEMENT ID')
.setLabel('header')
.setTargeting('adunit', 'header_ad')
.setTargeting('position', 'atf');
n360Ad.defineInjectedSlot('/your_GAM_network_ID/your_GAM_adunit',[[300,250],['fluid']],'div-3')
.setNexx360TagId('ENTER YOUR PLACEMENT ID')
.setInjectedSelector('h3')
.setInjectedPosition('beforebegin')
.setInjectedMaxRepetition(4)
.setInjectedStyle('text-align:center; margin-bottom: 20px;')
.setInjectedLabel('adunit', 'incontent_ad')
.setTargeting('adunit', 'incontent_ad')
.setTargeting('position', 'mtf')
.setTeadsPageId('ENTER YOUR TEADS PAGE ID')
.setTeadsPlacementId('ENTER YOUR TEADS PLACEMENT ID');
n360Ad.refresh();
})
</script>
</head>Integrate the following script in the <body>
<body>Nexx Web tag configuration
Typology of ad placements creation
Integration options
Amazon SSP integration
Teads SSP integration with client-side connexion
Last updated
Was this helpful?