Ad display issues

Posted in: Newspaper
Post count: 3

I have issues with displaying the in-line ads on my site(http://newspaperdev2.wpengine.com/). The ads seem to work when tested separate from the theme. These same working ads do not work when we try to paste the same code into the theme panel in-line ads area. The add appears to attempt to insert, as there looks to be a space where the ad should be, and this space changes in size depending on the ad script inserted.

We have most plug-ins disabled and would prefer to use the theme ad manager solely,rather than leaning on AdvancedAds plug-in or other to get the full functionality we are seeking. Any help would be most appreciated!

Post count: 20688

Hi,

There seem to be some errors in the console related to ads
https://www.screencast.com/t/1bKHrzMKBrGQ
The ads are producing 403 errors. Here is a related topic that you could read for more information
https://productforums.google.com/forum/#!topic/adsense/YOuPXrshybc

Thanks

Post count: 3

Hi Simion. Thank you for taking the time to reply. I double checked that the domain was not banned from AdSense, it’s not. I do see those 403 codes, but I’m not understanding why the same code that works fine in a simple HTML file outside the theme would be returning a 403 when used inside it. What is the theme code doing to the request that could account for this? Thank you!

Post count: 3

As a follow up, the bare bones code, shown below, was used to independently confirm that the adsense was working and pulls the resource image successfully.


<!DOCTYPE html>
<html>
<head>
<title>Test Ads</title>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
</head>
<body>
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-XXXXXXXXXXXXXXX"
data-ad-slot="XXXXXXXXXXX"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</body>
</html>

Post count: 20688

Hi,

If the Adsense code is valid, the theme will display it properly. Please check if is not somehow disabled in the theme panel
https://www.screencast.com/t/7YVQeYQVJEt
Those options should be disabled by default
https://forum.tagdiv.com/ads-adsense-overview/
You could try to deactivate all plugins except the ones provided with the theme, remove any modifications you might have made to the theme, and clear any installed cache. Then check if the ad is displayed.
Please note that the theme by default, using only the included plugins and no modifications, displays Adsense ads without any problem. Something must be causing this, you just need to identify what.

Thanks

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