The JavaScript installation code is designed to function in as many different environments as possible. However, if the code simply won’t work for you for whatever reason, such as limited access to the page’s source code or a conflict with the document.write statement, the simple, non-blocking solution detailed below may work for you.

At the bottom of your page, paste the following code (or include it in an external JavaScript file), replacing the brackets with the values from your universal installation code:

<script type="text/javascript">
    (function(d) {
        var params =
        {
            id: "[Your ID value]",
            d:  "[Your D value]",
            wid: "[Your WID value]",
            cb: (new Date()).getTime()
        };

        var qs=[];
        for(var key in params) qs.push(key+'='+encodeURIComponent(params[key]));
        var s = d.createElement('script');s.type='text/javascript';s.async=true;
        var p = 'https:' == document.location.protocol ? 'https' : 'http';
        s.src = p + "://api.content.ad/Scripts/widget2.aspx?" + qs.join('&');
        d.getElementById("contentad[Your WID value]").appendChild(s);
    })();
</script>

In the body of the page, place the following code where you would like the widget to appear:

<div id="contentad[Your WID value]"></div><!-- Load Widget Here --></div>

If you are unable to add HTML to the page:

Skip the second step, and change the line document.getElementById("contentad[Your WID value]").appendChild(s); so that the value of getElementById is the ID of an element currently on the page inside of which you would like the widget to appear.

If you have a support question or bug report, please contact our support team.