Google Ad Manager

This module enables you to easily configure Google Ad Manager Ad Slots for Drupal. Each defined Ad Slot becomes a block and can be added to a region.

Installation instructions

  • Copy the 'google_admanager' module directory in to your Drupal sites/all/modules directory as usual
  • Go to admin/settings/google_admanager and fill in the form (find your ca-pub code)
  • For each submitted Ad Slot name, you will get find a block at admin/build/block which you can add to a region
  • Add the following code in template.php file or adjust _phptemplate_variables($hook, $vars) if it's already in
    <?php
    function _phptemplate_variables($hook, $vars) {
      if (
    $hook == 'page') {

        if (
    module_exists('google_admanager')) {
         
    $vars['scripts'] .= google_admanager_add_js();
        }

        return
    $vars;
      }
      return array();
    }
    ?>

Releases

Official releasesDateSizeLinksStatus
6.x-1.02008-Nov-248.24 KBRecommended for 6.xThis is currently the recommended release for 6.x.
5.x-1.22008-Dec-138.17 KBRecommended for 5.xThis is currently the recommended release for 5.x.


 
 

Drupal is a registered trademark of Dries Buytaert.