nonAdsense Asynchronous ad doesn't work

Posted in: Newspaper
Post count: 21

For my site I’d like to use not only Adsense, but Russian local add sistem partner.yandex.ru too.
It uses Asynchronous code like:

<!-- R-88747-1 Яндекс.RTB-блок  -->
<div id="yandex_ad_R-88747-1"></div>
<script type="text/javascript">
    (function(w, d, n, s, t) {
        w[n] = w[n] || [];
        w[n].push(function() {
            Ya.Context.AdvManager.render({
                blockId: "R-88747-1",
                renderTo: "yandex_ad_R-88747-1",
                async: true
            });
        });
        t = d.getElementsByTagName("script")[0];
        s = d.createElement("script");
        s.type = "text/javascript";
        s.src = "//an.yandex.ru/system/context.js";
        s.async = true;
        t.parentNode.insertBefore(s, t);
    })(this, this.document, "yandexContextAsyncCallbacks");
</script>

So if I put on site page nothing is shown =(
Please help to solve the problem.

Post count: 780

Hello,

are you sure the code is correct? I get an error even in a html file if I just paste it:
http://screencast.com/t/jzDLnp7DYe

Did you tested it in a simple html page? (outside of wordpress).

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.