AdSense code insertion

Posted in: Newsmag
Post count: 30

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 ?.

Post count: 9544

header.php ?

Post count: 9544

For sidebar, why not use a widget ?

Post count: 30

In header.php?…. secure?

Post count: 23312

Hello Mariano Jonte,

Please refer to the following documentation here -> https://forum.tagdiv.com/newsmag-header-ads/

Thanks for your understanding!

Post count: 30

Catalin:

Thank you man…. Gracias hermano.

Saludos… regrats

Post count: 30

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?

Post count: 22421

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!

Post count: 30

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.

Post count: 30

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.

Post count: 22421

Hello,

Just as I suspected. You will find the head tag here: https://www.screencast.com/t/VfwsrZ1ROi

Thank you!

Post count: 30

Bogdan, ty, i try.

Saludos

Viewing 12 posts - 1 through 12 (of 12 total)
The forum ‘Newsmag’ is closed to new topics and replies.