Edit
window.ANConfig = window.ANConfig || {}; window.ANConfig.placements = window.ANConfig.placements || []; window.ANConfig.placements.push({ adUnitId: '10-horizontal-banner-1', propertyId: '105745', placementId: '840103', data: { catalogs: [ { catalogId: '599995', items: [] }, ], }, onLoad: function (adUnitId) { console.log('1', adUnitId); }, onFail: function (adUnitId) { console.log('0', adUnitId); //fallback code }, }); (function () { if (!document.getElementById('ap-js')) { var ver = new Date().toISOString().split(':')[0].replace(/\D/g,''); var apjs = document.createElement("script"); apjs.type = "text/javascript"; apjs.async = true; apjs.setAttribute('id', 'ap-js'); apjs.src = "https://central.gjirafa.com/js/ap-gjanout.js?v=" + ver; document.head.append(apjs); } })();