Hello,
I'm attempting to implement Adsense on my website, though I'm unsure where I need to put the code provided by Adsense after sign up.
EDIT: For some odd reason, the forum isn't letting me post, therefore I'll just put what I was going to post here:
Thanks,
Niall
I'm attempting to implement Adsense on my website, though I'm unsure where I need to put the code provided by Adsense after sign up.
Code:
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-XXXXXXXXXXXXXXXX",
enable_page_level_ads: true
});
</script>
EDIT: For some odd reason, the forum isn't letting me post, therefore I'll just put what I was going to post here:
The code provided is specified to be "Paste it into the HTML of (website URL), right after the <head> tag.". Will it still work in the suggested templates? Also, is the code provided actually for the implementation of the adverts or simply for validation purposes?Hello @NiallOG, you might find this useful:
https://xenforo.com/community/resources/visual-list-of-ad-locations.1383/
(just add the code in the relevant template)
There are also third party add-ons that can help manage AdSense and other ads.
Thanks,
Niall
Last edited: