Help Center Manage Your Account Plugins

How do I use AdSpeed Ad Server in Drupal?

If your site is powered by Drupal, it is easy to integrate AdSpeed Ad Server into your website. These are the instructions to manually add the serving code into Drupal via a HTML widget block:
  • Sign into your Drupal admin account
  • Click on "Structure", click on "Blocks", then click on "Add New Block"
  • Enter the block's public title (eg: "Advertising") and description
  • Paste the serving code you generated in AdSpeed into the "Body" field and select "Full HTML"
  • Click on "Save Block"
  • Once the block is saved, you should see it in the list of available blocks and corresponding regions
  • Click on the "Region" arrow for that block and select an appropriate ad placement region (eg: sidebar, footer) and click "Save Blocks"

AdSpeed Ad Server Module for Drupal

This Drupal module enables you to display ads in your website while managing, serving, and tracking ad metrics (impressions, clicks) with your existing AdSpeed account.
Download and Install
  1. Download AdSpeed Ad Server Module for Drupal package
  2. Unzip it to drupal/modules/ folder. The module files should be placed inside drupal/modules/adspeed/
  3. Click on Drupal's menu Administer / Site Building / Modules and check the box to enable "AdSpeed Ad Server" module
Usage
Click on Drupal's menu Administer / Site Configuration / AdSpeed Ad Server to make change to the settings. You can create multiple ad blocks and set the zone ID for each block. After saving the new configuration, you can click on Drupal's menu Administer / Site Building / Blocks to enable, move, or arrange the defined ad blocks to display ads on your website.

Place multiple ads on header and both sidebars

If you have two sidebars (left and right) and want to place multiple ads in both sidebars and also the page header, you should use the single-call ad request method for the fastest performance. In this setup, you do not use AdSpeed module described in the previous section since it only supports a single zone for each block. Instead, you would manually create 3 Drupal blocks, one for the header and one for each of the sidebar. Instructions to create a Drupal block is described on the top section.
  1. Setup the ads and zones in your AdSpeed account. You would need to determine which zones are on the left sidebar and which zones are on the right sidebar
  2. Click on the main menu "Tools / Wizard" in your AdSpeed account to generate the serving code for this single-call setup. The output will have 2 parts: "Preparing ads" and "Displaying each ad"
  3. Create the first block in Drupal, paste the code from "Preparing ads" section and the code for the Header zone from "Displaying each ad" section in step 2
  4. Create the second block in Drupal and paste the code for the Left sidebar zones from "Displaying each ad" section in step 2
  5. Create the third block in Drupal and paste the code for the Right sidebar zones from "Displaying each ad" section in step 2
  6. Link all 3 blocks to their corresponding regions (eg: Header, Sidebar first, Sidebar second)
  7. Other Articles in Plugins

    AdSpeed Ad Server can be extended and integrated with many other external systems via our plugins, extensions, modules and APIs.

    Cannot find an answer for your question? Ask our Customer Care team

    Related