Help Center > Manage Your Account > Serving Code

How can I combine multiple ads in the same placement?

For your convenience and better performance, you can display multiple ads in a zone using a single serving code. Each ad is tracked separately for both impressions, clicks and other ad metrics. For example, displaying a column of four 250x250 ads. Please follow these steps to generate the serving code for a zone that has multiple ads:
  • Sign into your account, follow the menu Zones/ All
  • Click on the Zone's name
  • Click on the Serving Code tab to generate the ad tag for this zone
  • Select the Number of Ads you want to display
  • Copy and paste this code into your web page where you want to display

Mixing dimensions and mixing banners with text-links

You can also mix banners of different dimensions (eg: 120x300, 120x600) and text-links together. For example, you can show either: four text link ads, two 120x300 ads or a single 120x600 in one single ad space. To setup the serving code for this advanced ad serving option, you can enter the following value into the "Custom Parameters" field when generating the serving code: &dim=0x0x4|120x300x2|120x600
  • Four text ads side-by-side, or
  • Two 120x300 ads, or
  • One full 120x600 skyscaper banner

Demo

CSS Styling

You can change the look and feel of your ads to match your website's design or layout by changing the CSS properties. Each of the ad instance is within a DIV tag container. Each DIV container has a CSS class named AdSpeed. Additionally, text-link ads can have a different styling from display ads. Text ads use two CSS classes: AdSpeed and AdSpeedText. For example:
<div class="AdSpeed">Ad One</div>
<div class="AdSpeed">Ad Two</div>
<div class="AdSpeed">Ad Three</div>

<div class="AdSpeed AdSpeedText">Text Ad #1</div>
<div class="AdSpeed AdSpeedText">Text Ad #2</div>
<div class="AdSpeed AdSpeedText">Text Ad #3</div>

By default, the ads will be displayed vertically, top to bottom. You can change the CSS styling for the DIV class to display horizontally, multiple ads side by side, with float:left. For example:

<style type="text/css">.AdSpeed {padding:3px;float:left;}</style>
<script type="text/javascript" src="http://g.adspeed.net/ad..."></script>

Ad Spacing

If you for example want to display a vertical column of four 125x125 ads with some spacing between the ads, you can use this CSS rule:
<head>
...
<style type="text/css">
  .AdSpeedWrapper {width:130px;}
  .AdSpeed {padding:3px;float:left;}
</style>
...
</head>
...
<div class="AdSpeedWrapper">
  <script type="text/javascript" src="http://g.adspeed.net/ad..."></script>
</div>

Ad Grid

You can also use CSS float to setup an ad grid. For example, four 125x125 ads with two ads on each row can be displayed with:
<head>
...
<style type="text/css">
  .AdSpeedWrapper {width:270px;}
  .AdSpeed {padding:3px;float:left;}
</style>
...
</head>
...
<div class="AdSpeedWrapper">
  <script type="text/javascript" src="http://g.adspeed.net/ad..."></script>
</div>

Other Articles in Serving Code

Understand advanced ad serving settings for standard, pop-up/pop-under, and interstitial serving code
Search Help Center
There was a problem with your submission. Please correct the following items:

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

    Related Articles

    • Group i
      "Documentation for API methods to manage one or multiple groups. API Version1.2.7 (build 20110606). Documentation was last modified on Sun, ..."
    • Campaign i
      "Documentation for API methods to manage one or multiple campaigns. API Version1.2.7 (build 20110606). Documentation was last modified on Sun, ..."
    • Advertiser i
      "Documentation for API methods to manage one or multiple advertisers. API Version1.2.7 (build 20110606). Documentation was last modified on Sun, ..."
    • Channels i
      "Documentation for API methods to manage one or multiple channels. API Version1.2.7 (build 20110606). Documentation was last modified on Sun, ..."

    Have questions? Contact Us

    Testimonials for our Ad Servers

    • I have to say I am very impressed with the new version of your site. Great work!

      Chinedu E
      HopStop

    • I've signed up for the trial run but am confident that I'll continue. Great service!

      Wade W
      Cycling Tips Blog