Answer the question
In order to leave comments, you need to log in
Which extension should I choose for google adsense ads?
Gentlemen, this is the question. If I want to move a google adsense ad script outside the site markup, which extension should I choose. I suspect .js, but I could be wrong. That is, in other words, I want to push the advertising script into a separate file, and then insert it into the markup.
As far as I understand, similar script looks like this
Answer the question
In order to leave comments, you need to log in
Well, how-how ... like this, probably:
index.php
....
<body>
<header>Типа_меню</header>
<?
include "my_adsense_data_file.php";
?>
</body>
....
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle" ... ></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question