Google AdSense – AD Unit Code: where to place it?

Posted in: Newspaper
Post count: 4

Hi there,

I applied for Google Adsense. Once completed the registration, I copied the JS verification code provided by Google and I inserted it into the head.php after the <head> tag.

They approved my website and now I’m creating my first Adsense Unit that I’ll place into my website through the Ads settings under the Theme Control.

My question is: do I have to remove the verification JS code I put into the <head> tags or not?

I know I just have to paste the AD Unit Code into the Ads settings of the theme, leaving the theme automatically adapts the Ads for desktop, tablet, mobile, but I don’t know what to do with the verification code.
Actually, I inserted the AD Unit code into the Post Ads space and saved the changes but nothing still appears on my posts as Ad content.

Could you help me, please?

Thanks in advance,

Mauro.

Post count: 22421

Hello Mauro,

For Adsense you will have to wait a bit longer. We have reports of new Adsense ads taking up to a few days or even a week before they delivered the ad. Adsense tends to delay like that unfortunately. It does this on every theme. Try to do a google search on the subject so you will see what I mean. I’m not sure about the js code you placed in the head section but you can leave it there as it will probably not cause any damage but you should ask the people at google if you should keep the code in the head or you can remove it. I cannot say for sure. We do not make the rules on google ads :).
Thank you!

Post count: 1

Hello,

I’m trying to figure out how to place the verification code onto my site. Sounds like you’ve done this successfully in the head.php. Where can I access this file?

Winston

Post count: 20688

Hi,


@winstonsmith1984
You need to insert the code in the header.php file found in the main theme folder, between the head tags – https://www.screencast.com/t/xiodQBWJv2

Thanks

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