Hi people, a basic question.
Where should I insert the “general” Google AdSense code? -> Is in Index.php?
That is, I read where to insert the codes for Header, Sidebar, and others.
But the code that goes between Head General labels ?.
Hello Mariano Jonte,
Please refer to the following documentation here -> https://forum.tagdiv.com/newsmag-header-ads/
Thanks for your understanding!
Catalin:
Thank you man…. Gracias hermano.
Saludos… regrats
Wait a minute…. i insert the ad sense code in header section…. and no function.
My code:
<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: “XXXXXXX”,
enable_page_level_ads: true
});
</script>
Whats wrong?
Hello,
If your ad code is new then it can take up to a few weeks days before the ad gets delivered. You can test the ad directly inside the post content and see if it renders any ad on the front-end. Your ad could require an extra implementation though. Please check with google and see if you need to add anything in the head tag in header.php. Page level ads for example require this implementation.
Thank you!
Hi BOGDAN B., thank for your response.
Google just tells me: “add this code after the <head>”, nothing else.
Therefore, with the NewsMag Theme do not have that possibility, I think.
They do not tell me anything else.
I just need to know where I insert the code … please, I’ve been trying to do it for a long time.
Thanks for you time and dedication.
Google Ad Sense oficial instruction:
If you have started using AdSense recently, one of the first things you should do is connect your website to the platform. To do this, you must copy the code that appears on your AdSense home page and paste it between the <head> and </ head> tags of the HTML code of your page.
Hello,
Just as I suspected. You will find the head tag here: https://www.screencast.com/t/VfwsrZ1ROi
Thank you!