Community Documentation

Views

Last updated September 10, 2009. Created by milesgillham on July 6, 2009.
Log in to edit this page.

Views

Views support for Ad Module is provided by the Ad Views Module.

Installation

  1. Download ad_views and install (untar) where you normally place your additional modules.

Configuration

  • Ad Views provides an extra base type called "Advertisements" (not Node) which picks up installed Ad modules.
  • Some relationships are provided such as Users (ad owner and who clicks on an ad) and Files (for uploaded file content such as images).
  • A basic default view is provided.

View types

  • Advertisement
  • Ad Image Format
  • Ad Flash Format

Row styles

  • Advertisement

Ad Module provides a base type called Advertisement which leverages off of the base Node. The primary value of this exta row style is that you can create a view that will display any ad type supported by the Ad Module.

To use it:

  1. Create a new view based upon Advertisement
  2. Choose "Items to display: 1" (in this case 1)
  3. For random ad display go to "Sort criteria" and select "Global: random"
  4. Click on "Row style: Fields" and change it to "Advertisement". This is equivalent to choosing "Node" in other views, but Ads aren't quite the same.
  5. You can choose the way the ads are rendered (raw, iframe, jquery, javascript, default). FYI, javascript and default don't seem to work, but you'll get most of what you need out of raw (the default), iframe or jquery.
  6. You can then use the Filters section to choose how you want to select your ads. For image ads "Ad Type: image".
  7. You may want to ad other filters to pin down particular ad groupings, that's up to you. The ad renderer will simply not display ads it thinks are invalid (eg expired or not approved). So if you get blanks then that's what is happening. A number of fields are used by the Ad module for workflow so you may not get what you expect sometimes.

Ad Groups

The Ad Module uses taxonomy to specify ad groups. If you want to filter by these do this:

  1. Add a Filter for "Taxonomy: Term" (you'll see a bunch of extra filters such as Node - this is a good thing as although Advertisement is a new base type, it leverages from Node)
  2. At this point you can choose any taxonomy you like, but choose "Ad groups" as the Vocabulary, and "Dropdown" for "Selection type". Press "Update".
  3. And voila. You should see a selectable list of all Ad group types.

Page status

No known problems

Log in to edit this page

About this page

Drupal version
Drupal 6.x
Audience
Site administrators

Site Building Guide

Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.
nobody click here