You are here

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

Same filename and directory in other branches
  1. 5 README.txt
  2. 6.3 README.txt
  3. 6 README.txt
  4. 6.2 README.txt
Module: Google Admanager
Author:
- Thomas Bonte <www.thomasbonte.net>
- Hai-Nam Nguyen aka jcisio <www.jcisio.com>

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/config/system/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
Note: in this module the term "ad slot" is used for "ad  unit"

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.

== Custom tag
If you want to pass custom tag into ad slot as described at
http://www.google.com/support/dfp_sb/bin/answer.py?answer=91225
you can use this function:
  google_admanager_add_attribute($key, $value)

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