In the template doesn’t work, because the script has to be in the middle of the content.
And an editor without script knowlege should be able to change the script in the content.
Thanks for the answer.
Sounds very complicated… because I am not the real coding specialist.
Maybe I try it first with a iframe.
Iframe works in Markdown.
Then, in the editor, you can keep inserting your script here at first (even if it’s not really recommended), so it should look like this:
<script async src=“//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
## this is some content
this is some paragraph with the adsense below
{% include 'partials/adsense.html.twig %}
the paragraph continue here
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>