@yariplus ya~~ thanks bro~ solved it
u so awesome guy~ ^^
show 3 different posts disappearing advertising.
help pls
Nodebb doesnt reload pages so i guess thats a problem for adsense
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?
@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
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>
An ad plugin would not be so good?
@lombisi To my knowledge, we do not have one for DFP as yet.