[PAID GIG] Help with SCRIPT Tag Rendering of Revive Ad Server Tags for Draft Plugin

This GIG is complete:

Success was accomplished by adding the external script to the theme header directly with some JS, like this:

<script>
    var js_script = document.createElement('script');
    js_script.type = "text/javascript";
    js_script.src = "https://srv.adserver.com/www/delivery/asyncjs.php";
    js_script.async = true;
    document.getElementsByTagName('head')[0].appendChild(js_script);
</script>

and then calling only this part of revive adserver tag, specifying the ad zone, in the plugin code, like this:

<div style='text-align: center;'>
<ins style='display:inline-block;' data-revive-zoneid="63" data-revive-id="2d220f1e3f63403189face1b493bcc4b"></ins>
</div>

Thanks!

PS: Could not find an Embers.js solution, as it seems from the Ember docs, handlebars does not accept <script> tags. May try to find a way to do this in Ember.js down the road…

8 Likes