• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Adsense Ads wont load properly

Scheduled Pinned Locked Moved Unsolved Technical Support
7 Posts 3 Posters 2.6k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    d3athwarrior
    wrote on last edited by
    #1

    I have hosted a live forum running at sonic-developers.com with advertisements in the widget areas at top, right sidebar and bottom.

    The issue is that after navigating inside any subcategory or to a thread on the forum, that is 2 or 3(max) navigations, the Adsense advertisements stop loading.

    Can someone help me with pointing and fixing out the issue? I've been loosing revenue steadily due to the advertisement issue.

    C 1 Reply Last reply
    0
  • C Offline
    C Offline
    carbonphyber
    replied to d3athwarrior on last edited by
    #2

    @d3athwarrior Did something change recently or has this been the case since you installed NodeBB?

    D 1 Reply Last reply
    0
  • D Offline
    D Offline
    d3athwarrior
    replied to carbonphyber on last edited by
    #3

    @carbonphyber said:

    @d3athwarrior Did something change recently or has this been the case since you installed NodeBB?

    Its been this way since the day I installed NodeBB.

    1 Reply Last reply
    0
  • D Offline
    D Offline
    d3athwarrior
    wrote on last edited by
    #4

    @psychobunny or @julian Guys can you help me out pls?

    1 Reply Last reply
    0
  • C Offline
    C Offline
    carbonphyber
    wrote on last edited by
    #5

    The only thing that came to mind was the possibility of pjax (partial page reloads) where the iframe or the original scripts were removed from the page when part of the page's content was reloaded.
    I don't know enough about NodeBB yet and haven't had time to investigate. That and I detest turning off AdBlock.

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #6

    I think this has always been the case for adsense, since NodeBB doesnt do full page reloads the ads only show for the 2-3 navigations and then stop refreshing.

    Once solution is to remove ajaxify and do a full page load on each navigation.

    At some point I also managed to get it working with Google DFP, using this code in a widget.

    https://gist.github.com/barisusakli/a1ff2ac801c6d716169c.

    If you want to disable axaxify and test you can comment out this line.

    1 Reply Last reply
    0
  • D Offline
    D Offline
    d3athwarrior
    wrote on last edited by d3athwarrior
    #7

    @baris Thanks for the tip. I did disable ajaxify for anchor tags as you said, restarted nodebb and it worked! It loads ads properly!!

    Thank you so much, I was looking for this part since so long! 👍 😄

    Will test more for whether it breaks other things or is all set and keep this thread updated.

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development