Non Adsense Ads Not Showing

Posted in: Newspaper
Post count: 135

Hello,

We are not using adsense ads, but doubleclick server ad on our site. When i put a code “non adsense” it doesn’t show on the theme, even if they are the same dimensions of a normal adsense blocks.

Exemple of ad code

<script type=”text/javascript”>
var ord = window.ord || Math.floor(Math.random() * 1e16);
if(typeof(v_tile)==”undefined”){var v_tile=1}else{v_tile++}
document.write(‘<script type=”text/javascript” src=”http://ad.doubleclick.net/N5902/adj/rnbjunk/home;sz=300×250;tile=’+v_tile+&#8217;;’+JADV_DFP_SEM+’ord=’ + ord + ‘?”><\/script>’);
</script>
<noscript>



</noscript>

Post count: 1291

Hi,

The theme ad system was designed to work only with adsense and custom banner ads. To make it work with other ad systems you have to modify the code or look for a plugin that can handle this type of ad.

Thank you, Emil G.

Post count: 135

Where exactly could I modify the code in the theme?

Post count: 6600

Hi,

You can find the function for rendering google adsense and other ads are rendered here: http://screencast.com/t/O7gB3e1L
Hope this helps!

Thanks

  • This reply was modified 11 years by Lucian.
Post count: 135

Okey, this is for the AD Box, but i need to change also the ads on header, with a dobuleclick ads code…

Post count: 6600

Hi,

In the td_ad_box.php you would need to make your customization and try to add another case for double click ads or modify existent ones.
Note that for each ad box an shortcode will be created and rendered trough the render function: http://screencast.com/t/BR6PaojQ6KZ
If you don’t know how to do this yourself we suggest to hire a developer to help you with it as you would need custom work fort this.

Thanks

  • This reply was modified 11 years by Lucian.
Post count: 80

rnbjunk , I’m looking for a similar solution to use Google DFP in all the ad locations. What have you come up with?

Thank you.

Post count: 9544

In almost all cases it’s simpler to use an ad management system supporting shortcodes, then place the shortcodes into the appropriate spots in templates.

Post count: 780

Hi Chris,
thanks for the suggestion
Radu O.

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