Answer the question
In order to leave comments, you need to log in
How to insert YAN advertising banner code in Vue?
Hello everyone, you need to insert the Yandex ad banner code in the Vue.js component:
<!-- Yandex.RTB R-A-702382-1 -->
<div id="yandex_rtb_R-A-702382-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-A-702382-1",
renderTo: "yandex_rtb_R-A-702382-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>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question