• Resolved sidelancer

    (@sidelancer)


    My website (dragoninquisition.com) is not displaying its three ads (header, sidebar, and body). The weird thing is that the ads or at least a colored background briefly show when I load up my website but then disappear. The body ad sometimes shows properly but not always.

    I tried using the front end debug and it shows that the blocks are loading in, but the ads are not displaying for some reason.

    The issue is present on both desktop and mobile, although on mobile it looks like the ad code is not even being inserted.

    I have another website (witcherhour.com) with the exact same ad positions and it’s all working fine. The only difference between the two sites is that I installed the AMP plugin on this site, but I removed it recently because I thought it was causing the issue.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Spacetime

    (@spacetime)

    Please enable remote debugging.

    You have some javascript errors on the page.
    Please check.

    Thread Starter sidelancer

    (@sidelancer)

    I enabled debugging. How can I check the errors?

    edit: I found a bunch of javascript errors: “uncaught exception: TagError: adsbygoogle.push() error: No slot size for availableWidth=0”

    and this warning came up several times: “The script from “https://ap.lijit.com/containertag?containerId=18&zoneId=351086&v=2” was loaded even though its MIME type (“text/html”) is not a valid JavaScript MIME type”

    I tried to google these errors but I have a hard time understanding what to do. Do you know how I can fix these errors?

    Also if it helps, I’m using Sovrn (another ad provider). If it can’t find an ad then it shows adsense ads instead.

    Thank you

    • This reply was modified 5 years, 1 month ago by sidelancer.
    • This reply was modified 5 years, 1 month ago by sidelancer.
    Plugin Author Spacetime

    (@spacetime)

    Javascript errors No slot size for availableWidth=0 are because you are using responsive ad code and the ad is hidden because of device settings (i.e. width = 0).
    Use insert method instead:
    https://adinserter.pro/documentation/device-detection

    Other ad blocks are blank – Google is not serving ads to your website:
    https://adinserter.pro/documentation/adsense-ads#ads-not-displayed

    Thread Starter sidelancer

    (@sidelancer)

    Hey Spacetime, I changed the method to insert, but now nothing shows. There’s no ad and no empty space like before.

    Plugin Author Spacetime

    (@spacetime)

    Insertion method only fixes javascript errors for adsense code: No slot size for availableWidth=0.
    However, you still have errors on pages.

    Please note that the plugin only inserts your ad codes.
    Ads are served by ad network.

    Thread Starter sidelancer

    (@sidelancer)

    Hmm you’re right. That slot size thing is not even the issue. That java error only showed after I forced the banner ad to display on all three device types to try and solve the issue of the ad not showing.

    So one thing I can understand for sure is that Sovrn is not displaying ads. But then the question is, why doesn’t it use passback to display a google ad instead. This is what it does on my other website, but it doesnt work here for some reason.

    I also recently got a warning from adsense about missing an ads.txt file. Do you think that could cause the missing ads?

    Thanks for the help, I think the issue is with Sovrn or Adsense.

    • This reply was modified 5 years, 1 month ago by sidelancer.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Ads not showing’ is closed to new replies.