Setting Default Banner Ads

Example

Displaying your company banner by default on your home page.

MGI Tags

  • mgiBannerAd

Steps

  1. Create a new banner ad set that includes only your company banner.
  2. Open your home page in a text editor.
  3. Add the defaultBannerAdSet parameter to the mgiBannerAd tag.
  4. Save your home page.
  5. FTP your home page and your company banner ad to the web server running MGI.
  6. View your home page in a browser.


Step 1: Create a new banner ad set that includes only your company banner.

A default banner ad set displays when all other banner ad contracts have been fulfilled. Following the directions in the Beginner Displaying Banner Ads tutorial, create a new banner ad set named "Default". Add only one banner ad record that includes your company as the Client and Ad Name. In the default banner ad set, the start date and end date are ignored, so those settings may be left blank. Set the projected hits to a very high number to activate the banner. (If multiple banners are in the default banner ad set, they each have an equal chance of being displayed.) In the HTML Code, enter the HTML code to link and display your company banner ad. For example,
<center>
<a href="http://www.comp.com">
<img src="Banners/cobanner.gif">
</a>
</center>
Leave the Impressions and Click Thrus at their default settings.

Step 2: Open your home page in a text editor.

Open your home page page in a text editing program that allows you to view and modify HTML.

Step 3: Add the defaultBannerAdSet parameter to the mgiBannerAd tag.

Add the defaultBannerAdSet parameter to the mgiBannerAd tag and bannerAdSet parameter that is on your home page. In the defaultBannerAdSet parameter, enter the name of the new banner ad set that you created in Step 1.
<mgiBannerAd bannerAdSet="LongBanners" defaultBannerAdSet="Default">

Caution: Banner ad sets are database tables, therefore the banner ad set name is case-sensitive.

Step 4: Save your home page.

Save the changes you have made to your home page.

Step 5: FTP your home page and your company banner ad to the web server running MGI.

Upload your home page and your company banner ad to the web server running MGI.

Step 14: View your home page in a browser.

View your home page in a browser. Banners from the "LongBanners" set will display until the total number of impressions for each banner has been fulfilled. When those impressions are fulfilled, your company banner from the "Default" banner ad set will be displayed until new banners are added to the "Long Banners" set.


[Return to the Displaying Banner Ads Menu]


[User Guide Main Menu] [Understanding MGI Menu] [Using MGI Menu] [Referencing MGI Menu]