• 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 problem

Scheduled Pinned Locked Moved General Discussion
8 Posts 3 Posters 2.8k 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.
  • lombisiL Offline
    lombisiL Offline
    lombisi
    wrote on last edited by
    #1

    show 3 different posts disappearing advertising.

    help pls

    exodoE 1 Reply Last reply
    0
  • exodoE Offline
    exodoE Offline
    exodo Plugin & Theme Dev
    replied to lombisi on last edited by
    #2

    Nodebb doesnt reload pages so i guess thats a problem for adsense

    1 Reply Last reply
    1
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    wrote on last edited by
    #3

    Correct, AdSense doesn't work so well with single page apps because it cannot properly detect page changes and disables ads after the we change pages three times.

    Have you considered using DoubleClick for publishers?

    lombisiL 1 Reply Last reply
    0
  • lombisiL Offline
    lombisiL Offline
    lombisi
    replied to julian on last edited by
    #4

    @julian said:

    Correct, AdSense doesn't work so well with single page apps because it cannot properly detect page changes and disables ads after the we change pages three times.

    Have you considered using DoubleClick for publishers?

    I do not know anything about DoubleClick 😞

    1 Reply Last reply
    0
  • lombisiL Offline
    lombisiL Offline
    lombisi
    wrote on last edited by lombisi
    #5

    Widget:

    <div id='div-gpt-ad-xxxxxxxxxxx'>
    <script type='text/javascript'>
    googletag.cmd.push(function() { googletag.display('div-gpt-ad-xxxxxxxxxxxxxx); });
    </script>
    </div>
    <br>
    </center>
    

    head code:

    <script type='text/javascript'>
    	var googletag = googletag || {};
    	googletag.cmd = googletag.cmd || [];
    	(function() {
    	var gads = document.createElement('script');
    	gads.async = true;
    	gads.type = 'text/javascript';
    	var useSSL = 'https:' == document.location.protocol;
    	gads.src = (useSSL ? 'https:' : 'http:') + 
    	'//www.googletagservices.com/tag/js/gpt.js';
    	var node = document.getElementsByTagName('script')[0];
    	node.parentNode.insertBefore(gads, node);
    	})();
    	</script>
    
    	<script type='text/javascript'>
    	googletag.cmd.push(function() {
    	
      var mappingLeaderboard = googletag.sizeMapping().
    		addSize([1024, 768 ], [728, 90]).
    		addSize([500, 500 ], [468, 60]).
    		addSize([1, 1 ], [320, 50]).
    		build();
    	
    		googletag.defineSlot('/xx/xx', [[320, 50], [468, 60], [728, 90]], 'div-gpt-ad-xxxxxx').defineSizeMapping(mappingLeaderboard).addService(googletag.pubads());
    		
    		googletag.pubads().enableSingleRequest();
    	googletag.enableServices();
    	});
    	</script>
    
    1 Reply Last reply
    1
  • lombisiL Offline
    lombisiL Offline
    lombisi
    wrote on last edited by
    #6

    An ad plugin would not be so good?

    julianJ 1 Reply Last reply
    0
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    replied to lombisi on last edited by
    #7

    @lombisi To my knowledge, we do not have one for DFP as yet.

    1 Reply Last reply
    0
  • lombisiL Offline
    lombisiL Offline
    lombisi
    wrote on last edited by
    #8

    @julian said:

    To my knowledge, we do not have one for DFP as yet.

    noooo

    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