In my webiste i call the scirpt in the head section.
<script async src="//www.mysite.com/adserv/www/delivery/asyncjs.php"></script>
After that i only insert the <ins data-revive-zoneid="325" data-revive-id="1231231236728d3123911a0123"></ins> section for every banner load.
Maybe is good four you.