adsense-logo

This is lightweight module that provides a simple integration with Google Adsense. The idea here is to provide your client like(eg: ca-pub-12345678...) and the module will automatically attach the necessary script to the <head> tag of all the pages.

Features

This module provides a configuration page with a simple field for the client id. After configuring the page and hit save the module will automatically load the necessary scripts.

Configuration

  1. Create your Google Adsense account.
  2. Configure the account and reach the step of incorporating the adsense to your site.
  3. Install the module as you usually do, see: https://www.drupal.org/node/895232 for more details
  4. Now you can go to Admin > Config > Services > Easy Adsense(admin/config/services/easy-adsense)
  5. Using the client code provided by adsense, fill the field and hit save
  6. Export the configurations in order to keep the data

That's it, your site should have necessary scripts for the google ads on the <head> tag.

Similar projects

Simple Adsense

This module is heavily inspired by the simple adsense module. But, the simple adsense module does not receive any kind of updates anyomre, so the idea is to have a new module for Drupal 9 and 10.

Adsense

The adsense module is another option, both modules are able to connect to google adsense. The main difference between the adsense module and this module is, the adsense module have more features like blocks and the option to choose where the ad will be displayed, this module does not have anything like that, the idea is to connect to adsense and allow the users to manage how the ads will be displayed using the admin panel provided by the google adsense.

Project information

Releases