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.
Setting up a Drupal blockThese are the instructions to add the ad tag into Drupal via the Drupal block without installing or using a custom module.
- 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 ad tag you generated from 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"
Older Drupal Versions
- Copy the serving code of the zone or a specific ad
- Sign into your Drupal account. Go to the Administration area of your website
- Click "Administer"
- Choose "Site building"
- Click on "Blocks"
- Click the "Add block" button
- Put in your information for "Block description" and "Block titile"
- Paste the ad tag into "Block body"
- Click on "Input format" under the "Block body"
- Choose "Full HTML"
- Click "Save block"
- Under the "Disabled" part, find the added block
- From the drop-down menu, choose the position the block should appear on the website to activate it
- Click "Save block" again
AdSpeed Ad Server Module for DrupalThis custom 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
- Download AdSpeed Ad Server Module for Drupal package
- Unzip it to
drupal/modules/folder. The module files should be placed inside
- Click on Drupal's menu Administer / Site Building / Modules and check the box to enable "AdSpeed Ad Server" module
UsageClick 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 sidebarsIf 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.
- 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
- 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"
- 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
- Create the second block in Drupal and paste the code for the Left sidebar zones from "Displaying each ad" section in step 2
- Create the third block in Drupal and paste the code for the Right sidebar zones from "Displaying each ad" section in step 2
- Link all 3 blocks to their corresponding regions (eg: Header, Sidebar first, Sidebar second)
Other Articles in Plugins
AdSpeed Ad Server can be extended and integrated with many other external systems via our plugins, extensions, modules and APIs.
- How do I use AdSpeed Ad Server in Joomla?
- How do I use AdSpeed Ad Server in Movable Type?
- How do I use AdSpeed Ad Server in WordPress?
Cannot find an answer for your question? Ask our Customer Care team
"Documentation for API methods to manage your campaigns in our ad server. API Version1.3.7 (build 20200318). This page was updated ..."
"Documentation for API methods to manage one or multiple channels. API Version1.3.7 (build 20200318). This page was updated on Thu, ..."
- How can I put ads into my blog/website?
"Our ad server can display ads on all blog platforms, web authoring software and content management systems (CMS) via a ..."
"Documentation for API methods to manage one or multiple advertisers. API Version1.3.7 (build 20200318). This page was updated on Thu, ..."
- How do I use AdSpeed Ad Server in Joomla?
"If your site is powered by Joomla, you will find our Joomla module easy to install and integrate to your ..."