Connect your site to Google Adsense

Posted in: Newspaper
Post count: 19

Hi,

I’m trying to set up my WordPress site (using Newspaper 8.8.2) so it can display Google Ads and I’m stuck on the first step to just connect my site with AdSense.

First I followed Google’s “Connect your site to AdSense” instructions that tell you to copy some code between the <head> tags of each page I want ads. I did this by editing the header.php file and copying the code below between the <head> tags (using the correct code not ca-pub-123456789). This didn’t work.

<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: “ca-pub-123456789”,
enable_page_level_ads: true
});
</script>

Next I followed the instructions here: https://forum.tagdiv.com/header-ads-adsense/
and pasted the code above in the header section.

It still didn’t work. I tried so many times that now I have to wait 24 hours before I can try again!

Your help would be most appreciated.

Thanks,
Janelle

Post count: 23312

Hello Janelle,

First of all, please update the theme to the latest version of it which is NP 9.0.1 via FTP way because this is the surest method in this case. Before this, make a full backup to your database to avoid losing all of your data and check the results. The Google AdSense has been fully tested with the theme and should works as expected, without any problems.

Thanks for your understanding!

Post count: 1

Hello, I have the same problem, I can not connect to my Google Adsense account and I have installed version 9.0.1

Post count: 23312

Hello dbayon,

Unfortunately, please notice that our theme does not manage your AdSense account, sorry! The theme only takes you Ad Code and display it on the frontend. If you have some troubles with your account, you have to contact the Google AdSense department because they should be able to provide a more accurate response.

Thanks for your understanding!

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