var AdButler = AdButler || {};
AdButler.ads = AdButler.ads || [];
var abkw = window.abkw || '';
var plc378612 = window.plc378612 || 0;
var plc378614 = window.plc378614 || 0;
var plc378613 = window.plc378613 || 0;
var plc389895 = window.plc389895 || 0;
var plc389896 = window.plc389896 || 0;
var plc389897 = window.plc389897 || 0;
var plc389898 = window.plc389898 || 0;
var plc389899 = window.plc389899 || 0;
var plc389900 = window.plc389900 || 0;
var plc378615 = window.plc378615 || 0;
var plc378616 = window.plc378616 || 0;
var plc378623 = window.plc378623 || 0;
var masterObject = {
topAd: {
id: 378612,
counter: plc378612
},
homepageAd2: {
id: 378614,
counter: plc378614
},
sidebarTopAd: {
id: 378613,
counter: plc378613
},
sidebarAd1: {
id: 389895,
counter: plc389895
},
sidebarAd2: {
id: 389896,
counter: plc389896
},
sidebarAd3: {
id: 389897,
counter: plc389897
},
sidebarAd4: {
id: 389898,
counter: plc389898
},
sidebarAd5: {
id: 389899,
counter: plc389899
},
sidebarAd6: {
id: 389900,
counter: plc389900
},
sidebarBottomAd: {
id: 378615,
counter: plc378615
},
bottomAd: {
id: 378616,
counter: plc378616
},
offerTopAd: {
id: 378623,
disabled: false,
counter: plc378623
}
};
Object.keys(masterObject).forEach(function(key) {
var entry = masterObject[key];
var element = document.getElementById(key);
if (element && !entry.disabled) {
document.getElementById(key).innerHTML = `
`;
AdButler.ads.push({
handler: function(opt) {
AdButler.register(
161318,
entry.id,
[728,90],
'placement_' + entry.id + '_' + opt.place,
opt
)
},
opt: {
place: entry.counter++,
keywords: abkw,
domain: 'servedbyadbutler.com',
click: 'CLICK_MACRO_PLACEHOLDER'
}
});
}
});