Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Advertising Entity

184 sites Security covered Drupal 9–11
View on drupal.org

This module provides a unified system for managing and displaying ads from various providers on your Drupal website. It allows for consistent targeting based on content, easy ad replacement, and integration with theme breakpoints and consent management.

This module provides a unified way to display ads on your Drupal website.

Why you might want this module to have a consolidated ad management:

  • Be able to attach targeting information in one way accross multiple ad providers based on your content via Advertising context fields. You can also turn off ads on specific content pages through that field type.
  • Always be able to replace your existing ads by others of any type with just a few clicks, without losing any targeting context.
  • All your ads respect your theme's breakpoints in the same way by using the Theme Breakpoints JS module.
  • Configure consent-aware personalization: This module offers a unified way to configure GDPR compliant ads.

Available provider integrations

Have a further integration based on ad_entity and want to list it here? Please tell us!

Requirements

Quick start

  • Install this module.
  • Set permissions to view ads. As there are two separate entity types (ad_entity and ad_display) involved, make sure your roles do have granted view access to both types by setting: "View Advertising entities" and "View Display configs for Advertisement".
  • You need at least one further module which defines an Advertising type.
    The ad_entity_dfp module for example enables you to create
    types of Doubleclick for Publishers (DFP) advertisement.
    This module can be found in the modules subfolder.
  • Configure global settings for Advertising entities
    at admin/structure/ad_entity/global-settings.
  • Create and manage your Advertising entities at admin/structure/ad_entity.
    When your theme has multiple breakpoints, you can create one entity for each.
  • Create and manage Display configurations for your Advertisement at
    admin/structure/ad_entity/display. Once you've created a Display config,
    you'll be able to place it as a block at admin/structure/block.

About view handlers

For each advertising type, there are usually different view handlers to choose:

  • A default HTML view, which is the way for viewing the ads on a regular page.
  • An iframe, which could be used for feeds or publishing on external sources.
  • Facebook Instant Articles (FIA), which is basically an iframe as well.
  • Accelerated Mobile Pages (AMP), currently only provided by the DFP submodule.

About Advertising contexts

A given Advertising context is able to extend or manipulate the information and
defined behavior for Advertising entities being displayed on a page.

Advertising context can be defined by content such as nodes and taxonomy terms.

To enable users defining contexts, the Advertising context field must be
attached to an entity type. Choose unlimited cardinality to let users add multiple contexts.

The field provides different formatters for the Advertising context.
In the Manage display section of your entity type, place the context field
into the content region to deliver the user-defined context on the page.

Depends on

Dependencies of the latest stable release

Required by

1 tracked project depends on this one

Activity

Tracked releases
1
Tracked since
Oct 2025
Latest release
10 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
8.x-1.6 Stable 9–11 Oct 2, 2025