Last updated March 7, 2009. Created by baronmunchowsen on March 7, 2009.
Log in to edit this page.

The ad module and related modules provide a number of configuration options.

Global settings:

The ad module allows you to specify some global settings at Administer >> Content management >> Ads >> Settings >> Global settings.

Even if you do not plan to make any changes, you should visit this page at least one time as the ad module will perform a series of sanity tests when you visit this page, alerting you to any installation problems.

This page begins by displaying the path to serve.php. If you see an error here, then the ad module is not properly installed. Review the directions in INSTALL.txt to properly install the ad module.

In the General section you can specify what happens when an advertisement is clicked. For example, you can choose to have the resulting Destination URL opened in the same browser window, or in a new browser window. You can also enable the "nofollow" check box causing ads served by the ad module to include rel="nofollow" in automatically generated links. You can select to display advertisements using JavaScript, jQuery, IFrames, or Raw HTML. Finally, you can disable URL validation, and enable advertisement filtering.

Checking 'Filter ads' allows you to apply Drupal's standard input filters to your advertisements. If you enable this option, be sure to apply a compatible filter that doesn't strip away the and other tags used by the various advertisement types.

The next section allows you to configure IFrames, if you are using them to display advertisements.

For better performance, you can also enable a cache. At this time there is only a file cache available. When the file cache is enabled, ads are quickly displayed from a cache file without bootstrapping Drupal. On very busy websites you may need to increase the number of cache files to prevent cache file contention.

Text ads:

The ad_text module allows you to specify some minimum and maximum lengths for text ads at Administer >> Content management >> Ads >> Settings >> Text ads.

Image ads:

The ad_image module allows you to specify some image constraints on a per-group basis at Administer >> Content management >> Ads >> Settings >> Image ads.

Embedded ads:

Manually and automatically embedded ads can be configured at Administer >> Content management >> Ads >> Settings >> Embedded ads.

Looking for support? Visit the Drupal.org forums, or join #drupal-support in IRC.