Help me out please . I have java script code to show full scree ads like this ..
<script language="javascript" type="text/javascript">
var _sa = _sa || [];
_sa.push(["initialize","c57c634d-2bab-4350-95dc-2dd4d477e6bc"]);
_sa.push(['displayAd']);
(function () {
var sa = document.createElement('script');
sa.type = 'text/javascript';
sa.async = true;
sa.src = '//ads.appnext.com/ad/source.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(sa, s);
})();
</script>
Can any one tell me how to execute this code and show full screen ad when my layout starts ?