Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Mailchimp 3.1.5 Minor update available for module mailchimp (3.1.5). Release: Commerce Shipping 3.0.5 Minor update available for module commerce_shipping (3.0.5). Release: GoogleTag Manager 2.0.1 Minor update available for module gtm (2.0.1). Usage Milestone: Easy Breadcrumb Module easy_breadcrumb crossed 100,000 active installs. Release: MCP Sentinel 2.17.0 Minor update available for module mcp_sentinel (2.17.0). Release: Commerce ML Exchange 2.0.1 Minor update available for module cmlexchange (2.0.1). Release: Commerce ML Exchange 2.0.0 Major update available for module cmlexchange (2.0.0). Release: SynImport 2.0.0 Major update available for module synimport (2.0.0). Release: Contact ajax 3.0.0 Major update available for module contact_ajax (3.0.0). Module Revived: Contextual Filter from Referer 1.0.2 Module contextual_filter_referer updated after 22 months of inactivity (1.0.2).

Advertising Entity

96 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
11 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