AdSense ads not showing, suddenly !

Posted in: Newsmag
Post count: 18

http://www.trendingtop5.com
My Adsense in active. No warning.
But my ads are not showing in site.
(I have placed a header ad and an article top ad from theme panel).

Please help.
Thanks.

Post count: 9544

Check your site with console for javascript errors which would cause ads to not show…
make sure you’re not using an adblocker on your browser.

Post count: 6535

Hi

I’ve checked your site and found a js error in browser console. This error seams to be related with a javascript from google: http://screencast.com/t/KEK4Qg89j As can be seen in the screen, the theme render the ad-sense code but the problem is with the ad content. The theme can’t control the contend delivered by google, it only render the code and display the received informations.
Try to deactivate all plugins except Visual Composer, just to make sure that there is no conflict between google ads scripts and one of your installed plugins, clear all caches and test again.

Thanks!

Post count: 18

🙁
Deactivated all plugins. Same error shown.
Installed a third party Adsense plugin. Problems persists.
Please help.

Post count: 9544

Likely good to double check the adsense code you are actually using works.

Try placing it in a simple text box widget in sidebar to see if the code is even accurate?

Post count: 18

Hey Chris,
Checked as you said. Placed a simple text box in default side bar.
The same error massage appear twice.

Post count: 9544

Then the code is bad, your site wasn’t allowed or has been removed for bad content/warned about ad usage (check your adsense account for “messages”!), you have conflicting plugin, etc.

Likely good to go back to your AdSense account get the working code, make sure you’re only inserting the provided block of <script></script> from Google.

Don’t use third party plugin as that won’t help if the code itself doesn’t work.

Post count: 9544

Perhaps share your ad code here and just ### your account ID/campaign ###.

Post count: 18

No message or policy violation in my Adsense. Here is the code –
<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<!– Image only –>
<ins class=”adsbygoogle”
style=”display:block”
data-ad-client=”ca-pub-753250##########”
data-ad-slot=”##########”
data-ad-format=”auto”></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>

An interesting observation – The header ad is showing properly in all Error 404 pages!

Post count: 18

I think the root casue may be W3 Total Cache Javascript minification.
I have disabled minify option, even disabled and delete the plug in.
But things have not changed. How to restore ?

Post count: 6535

Hi

After checking your site again I’ve noticed that the the link google’s javascript is different then the one from the theme: http://screencast.com/t/7Y9mpIgRQSL The correct link appear only on 404 page, where the ads are displayed fine: http://screencast.com/t/RvFrMydUIA I am not sure why that link is different but you can try to deactivate all plugins except Visual composer, just to make sure that there is no conflict, clear all caches and test again.
Also you can try to make a new local install on your computer, with the latest version of WordPress, the current version of the theme available on themeforest, V 2.3.5, Visual Composer plugin and test the ads again.

Thanks!

Post count: 18

Hi Andrei,
I have upgraded both wordpress and Newsmag. Deleted all plugins and rechecked.
Only one case where I did it successfully – Manually placing Sync google ad code in single.php
Check any random post.
But the default ADs blocks in Theme panel are not taking any code. So I am not able to place ad in home page/header/side bar. 🙁
You have rightly identified, Ad codes are changing in my site.
I am still doubting on W3 Total Cache Javascript minification.
Any suggestion please ?

Post count: 9544

Don’t use any Javascript minification as it doesn’t work well on the fly with ANY theme.

Post count: 18

Agreed Chris.
But now, how to revert back?
Any modification required in minify.php?

Post count: 9544

Can’t you just turn off the minification? I don’t use W3 Total Cache — so no help from me on that, sadly.

Post count: 6535

Hi @tt5

If you made any changes in theme files or any other file related with WordPress try to revert them. Also for cache try to use WP Super Cache plugin which is tested and works fine with the theme. Here is our documentation regarding its setup: https://forum.tagdiv.com/cache-plugin-install-and-configure/

Thanks!

Post count: 18

Thanks for all your helps.
Its actually a problem with W3 Total Cache. Its cached files are affected by PUA.Phishing.Bank virus.
No support for this plugin since last 5 months. Trying to sort out the issue.

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