Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Advertisement

Security covered Under active development 367 sites

This module provides a system for managing and displaying advertisements on your website, using blocks for placement. It allows for simple ad management and tracking, with options for scheduling ads and extending the system with custom providers and trackers.

The Advertisement module provides a flexible and extensible advertising system, allowing to display ads via the block layout.

Features:

  • Simple ad management using Ad Entity Bundles and Drupal Blocks for Ad placements.
  • Simple ad tracking
  • Ad scheduling (planned)

The advertisement system is built dynamically so that both content providers (advertisement buckets) and statistics trackers can be extended by custom modules via the plugin API. A native provider and tracker are also provided as submodules.

The native tracker module implements two trackers:

  • The "Local advertisement event tracker" tracks impressions/clicks immediately, which on high traffic sites can result in significant additional load for the web servers.
  • The "Queue-based local advertisement event tracker" tracks data via a queue, so events will only actually appear in the statistics display section after running cron or after manually processing ad_track_queue.

Note, that there is NO upgrade path from 4.x => 11.x!

Requirements

This module requires the following modules:

  • No dependencies

Optional

  • Scheduler - Required when using the "Advertisement scheduler" submodule.

Installation

Install as you would normally install a contributed Drupal module. For further information, see Installing Drupal Modules.

Configuration

After the installation, you need to install an advertisement content provider (e.g., the "Advertisement content" submodule) in order for the system to work.

If you install the native "Advertisement track" tracker module, the tracker will work out of the box. In case you want to install a custom statistics tracker, perform the following steps to enable it:

  1. Go to Configuration » Content authoring » Advertisement settings.
  2. Select the tracker that you want to use for each advertisement content provider that you installed (the native tracker module will enable itself automatically here).

After that, you can place one or more advertisement blocks in your block layout, which will then display the randomly chosen ads. In order for ads to be shown in a block, their selected size must match that of the block!

Supporting this module

Support DROWL's ♥ FOSS work on this module on OpenCollective!

Drupal and this module are FOSS. However, it takes dedicated people to develop and maintain. And they need YOU to give back!

We're committed to building and maintaining Drupal modules that benefit the entire community.

Supporting us on OpenCollective helps us continue to improve, innovate and contribute to Drupal's future. Every pledge makes a difference!

If this module has helped you, we would be very grateful for your donation to support its further development and maintenance.

Support our FOSS development ♥️

You can also speed up the development of features or bugfixes you'd love to see, by sponsoring and giving back!

Sponsor a feature or bugfix 🚀

Let's make Drupal even better, together!

Alternatives

Development proudly sponsored by German Drupal Friends & Companies:

webks: websolutions kept simple (https://www.webks.de)
and
DROWL: Drupalbasierte Lösungen aus Ostwestfalen-Lippe (OWL), Germany (https://www.drowl.de)

Ask your assistant about Advertisement

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
16
Tracked since
Jul 2023
Latest release
5 months ago
Releases (12 mo)
7 ▲ from 6
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
11.0.0-alpha2 Pre-release 10–11 Jul 9, 2025
11.0.0-alpha1 Pre-release 10–11 May 21, 2025
11.x-dev Dev 11 Apr 16, 2025
10.x-dev Dev 9–10 Sep 19, 2024
4.0.0-beta4 Pre-release 9–10 Dec 13, 2023
4.0.0-beta3 Pre-release 9–10 Jul 10, 2023