You are here

README.txt in DFP Small Business (Google Ad Manager) 6

Same filename and directory in other branches
  1. 5 README.txt
  2. 6.3 README.txt
  3. 6.2 README.txt
  4. 7.2 README.txt
Module: Google Admanager
Author: Thomas Bonte <www.thomasbonte.net>

Description
===========
Adds the DoubleClick for Publishers code to your website.
Note: it was Google Admanager before.

Requirements
============
DoubleClick for Publishers account https://www.google.com/dfp/
Get your DFP Property Code at https://www.google.com/dfp/admin

Installation
============
1. Copy the 'google_admanager' module directory in to your Drupal 
   sites/all/modules directory as usual
2. Go to admin/settings/google_admanager and fill in the form
3. For each submitted Ad Slot name, you will get find a block 
   at admin/build/block which you can add to a region

Upgrade
=============
Previous versions of the google_admanager module required you to place some
code into the theme's template.php file, but this version DOES NOT.
Please remove such code from the template file before you upgrade. 

First BACKUP you theme's template.php file, then remove the following code if it exists. 

function _phptemplate_variables($hook, $vars) {
  if ($hook == 'page') {
    if (module_exists('google_admanager')) {
      $vars['scripts'] .= google_admanager_add_js();
    }

    return $vars;
  }
  return array();
}


function phptemplate_preprocess_page(&$vars) {

  // Insert Google Ad Manager scripts into header
  if (module_exists('google_admanager')) {
    $vars['scripts'] .= google_admanager_add_js();
  }

}

== Lazy loading
Lazy loading is an experimental feature, allow you to insert DFP javascript
just before closing </body>. This makes browser render content faster.

Two drawbacks at the moment:
- Not supported if you are using inline ad filter
- When using with Panels, must select the pane style as "System block"

== In-Content ad
1. Enable the Google Admanager filter in your input format
2. Add [google_ad:ADSLOTNAME] where you want ad to be displayed

Note: you must place at least one ad block in a page, so that
Google Admanager script can be initialized.

== Superslot
A superslot is a block that contain many ad slot, each has its own visibility
settings.

Support
=======
Offcial Drupal project page
http://drupal.org/project/google_admanager

File a bug or support request at 
http://drupal.org/project/issues/google_admanager

File

README.txt
View source
  1. Module: Google Admanager
  2. Author: Thomas Bonte
  3. Description
  4. ===========
  5. Adds the DoubleClick for Publishers code to your website.
  6. Note: it was Google Admanager before.
  7. Requirements
  8. ============
  9. DoubleClick for Publishers account https://www.google.com/dfp/
  10. Get your DFP Property Code at https://www.google.com/dfp/admin
  11. Installation
  12. ============
  13. 1. Copy the 'google_admanager' module directory in to your Drupal
  14. sites/all/modules directory as usual
  15. 2. Go to admin/settings/google_admanager and fill in the form
  16. 3. For each submitted Ad Slot name, you will get find a block
  17. at admin/build/block which you can add to a region
  18. Upgrade
  19. =============
  20. Previous versions of the google_admanager module required you to place some
  21. code into the theme's template.php file, but this version DOES NOT.
  22. Please remove such code from the template file before you upgrade.
  23. First BACKUP you theme's template.php file, then remove the following code if it exists.
  24. function _phptemplate_variables($hook, $vars) {
  25. if ($hook == 'page') {
  26. if (module_exists('google_admanager')) {
  27. $vars['scripts'] .= google_admanager_add_js();
  28. }
  29. return $vars;
  30. }
  31. return array();
  32. }
  33. function phptemplate_preprocess_page(&$vars) {
  34. // Insert Google Ad Manager scripts into header
  35. if (module_exists('google_admanager')) {
  36. $vars['scripts'] .= google_admanager_add_js();
  37. }
  38. }
  39. == Lazy loading
  40. Lazy loading is an experimental feature, allow you to insert DFP javascript
  41. just before closing . This makes browser render content faster.
  42. Two drawbacks at the moment:
  43. - Not supported if you are using inline ad filter
  44. - When using with Panels, must select the pane style as "System block"
  45. == In-Content ad
  46. 1. Enable the Google Admanager filter in your input format
  47. 2. Add [google_ad:ADSLOTNAME] where you want ad to be displayed
  48. Note: you must place at least one ad block in a page, so that
  49. Google Admanager script can be initialized.
  50. == Superslot
  51. A superslot is a block that contain many ad slot, each has its own visibility
  52. settings.
  53. Support
  54. =======
  55. Offcial Drupal project page
  56. http://drupal.org/project/google_admanager
  57. File a bug or support request at
  58. http://drupal.org/project/issues/google_admanager