Hi.
Is there any plugin to use Yandex Ad (https://partner2.yandex.ru) banners with Discourse (with auto disabling for trust users)?
2 Likes
Perhaps there is another way? The ads code doesn’t work (
I managed to add ads from Yandex. But ads are displayed only after refreshing the site page (ctrl + f5). Ads do not appear automatically
How did you do it? Could you please share?
- I used https://github.com/discourse/discourse-adplugin. You need to create your own ad.
You need to add a code from Yandex like
<! - Yandex.RTB R-A-******-* -> <div id = "yandex_rtb_R-A-******-*"> </div>
- And add the full code from Yandex to
- Add to " content security policy script src" код
https://mc.yandex.ru/metrika/tag.js
Unfortunately, the ad from Yandex appears only after refreshing the site page (ctrl + f5). If you solve this problem, please share the solution.
2 Likes