Having problem with pop up pro

i want to show adsterra ads via pop up but they don't show when i save the code
In panel when i click preview pop up it redirects to ad
where only ad is shown nothing else
can you tell me any fix to this
code used is
<script type="text/javascript">
atOptions = {
'key' : '9ace9877260fd101769d0e00de90839f',
'format' : 'iframe',
'height' : 250,
'width' : 300,
'params' : {}
document.write('<scr' + 'ipt type="text/javascript" src="http' + (location.protocol === 'https:' ? 's' : '') + '://www.bnhtml.com/invoke.js"></scr' + 'ipt>');