How can I call the Adsense Code in my node.tpl.php. I have some node-type.tpl.php files, where I theme my content types. I want to insert some Adsense AdBlocks with revenue sharing in my template files, but I only find the Content Filter snipped for inserting adsense in Content from Edior.

What php code do I have to insert into my node.tpl.php to call the adsense modul ad output?!

Comments

911’s picture

I overlooked the Infos in the Backend, only read the readme..

Got it now

<?php 
if (module_exists('adsense')) {
  print adsense_display(array('format' => '336x280', 'channel' => 1));
}
?>

Best Regards

jcnventura’s picture

Status: Active » Closed (fixed)

Follow the 'Using custom PHP code' section in the module's help and instructions page in admin/settings/adsense