Advertisements allow enterprises to reach their prospective cus¬tomers, therefore managing ads and making sure that the right ad is dis¬played on the right website holds impor¬tance. OpenAds (free and Open Source ad server) offers a perfect solution for the aforementioned. In this article we show you how this Ad server can help you man¬age your ads easily. A look at three terms you would need to get familiarized with before we proceed:
1.Publisher: A publisher is one who owns a website on which the ads are displayed. The work of the publisher is to specify an ad area on the website.
2.Advertiser: An advertiser owns the ads to be displayed on the publisher's website. To start your ad server you need at least one advertiser.
3.Campaign: It is owned by advertisers and consists of set of banners which will be displayed on the publisher's website. Using this, the advetiser can set the frequency of ad delivery, prior¬ity setting, and limitation of the ads being displayed.
The Ad server can run on any Web server that supports PHP and MySQL. Let's as¬sume that you already have a Web server running, along with the necessary re¬quirement on a Fedora-based system. Now download the Ad server software from the website 'www.openads.org' and extract the ftIes to the root folder of your Web server. Ad server provides you with a Web-based installation, so access its configuration page on a Web browser locally or through any client connected to the Ad server. For this, open Internet Explorer and put the URL as' <your -server's- ip¬address>l<openads-directory-name>'. It brings you to the welcome page. Click on Next to proceed. After you agree the terms and policies, it checks your system to en¬sure that everything is properly installed. Initially, it would need write permissions on some of the folders within the 'OpenAd' folder. For this run the following com¬mand on the Ad server:
11 chmod a+w openadsjvarj
11 chmod a+w openadsjvarjcachej
11 chmod a+w openadsjvarjpluginsj
11 chmod a+w openadsjvarjpluginsjcachej 11 chmod a+w openadsjvarjpluginsjcachej 11 chmod a+w openadsjvaJjpluginsjcon¬figj
11 chmod a+w
openadsjvar jtemplates_com piledj
11 chmod a+w openadsjwww/imagesj
After these commands are executed, click on 'continue' to proceed to database setup. Now, to set up your database pro¬vide the username and password to login into the MySQL database and also the database name that should be used for
storing the data. In the advance section provide 'table name prefIx' which will be added to the name of each table. This will help you distinguish between Ad server ta¬bles and other tables within the database. Click on 'continue' to proceed. Next it asks for basic confIguration option such as lan¬guage selection, time zone, and path to core folder. Once the confIguration is done click on 'continue'to proceed. Now specify the administrator username, password, and the mail address of the administrator. And click on continue. Then it asks you that should it load any default data onto the server or not. This is basically for demo purpose only. Select 'yes' if you want or else 'no' and click on continue. This fInishes the full installation of the Ad server.
Creating advertiser accounts and campaigns
For creating advertiser log on to the Ad server, and navigate to 'Inventory> Advertiser and Campaigns' page. Click on the 'Add new advertiser' link provided in the page, it asks you to provide basic information of the advertiser such as name, contact, email, etc. It also provides you the option of notifying the advertiser through email whenever a campaign is activated or deactivated. Once all the info is f1lled, click on 'next' which will take you to the next page for creating campaign for the newly created advertiser. For creating campaign click on 'add new campaign' link provided on the page.
Provide the necessary info such as inventory details in which you can specify'impression booked: Here a no. is allocated, eg 20, so only 20 times a particular ad will be displayed on a particular website. Second, the 'contract detail' in which you will specify the start and end date of a cam¬paign. Third, 'priority level: where you can set the priority of each ad which fInally affects the delivery of the ads. For example the lowest priority ad will be displayed less number of times than a high priority ad. The interesting fact about this Ad server is that you can set an option called 'Delivery Capping: Using this one can limit the no. of each ad that is being displayed on a particular website for a particular visitor. Once all the confIguration and information are made click on 'Save Changes:
Creating a publisher and zone For creating a publisher navigate to'Inven¬tory >publishers & Zone' and click on 'Add new publisher' link. Fill up the info such as login details so that the publisher can login and have some basic control over their re¬spective zones, payment details, and other information like unique users/month, page rank, category, and help me. Zone can be fully confIgured in the administrator mode and also allow you to link the campaign and banners from the inventory to a particuar zone. Once the zone is created a simple HTML code is generated which is a giveaway code. This HTML code is copied and embedded into the existing HTML code of the publisher website.
To create zone, navigate to Inventory> Publisher & Zones> PC¬Quest (name of the publisher» Zone Overview and click on 'Add new zone' link. Fill up the necessary information, ie name of the zone (eg 'My Zone'), description, zone type, size, and cost. Zone type is an option by which you can decide how the banner will be displayed on the pub¬lisher's website, eg banner, pop up, text ads, etc. Click on 'next' to proceed. Then come the chain settings: if suppose there is no banner for a particular zone then what should it do? Should it stop delivering any banner or don't show any banner on that particular zone. Or it should append some HTML code defined by you. After completing the configuration click on 'Save Changes:
Creating banners
After creating the advertiser and pub¬lisher it's time to upload a banner. For this navigate to Advertisers & Campaigns> PCQuest (name of the advertiser»Cam¬paign Overview> PCQuest campaign (name of the campaign) > Banner Overview and then click on 'Add new ban¬ner' link. Next choose the type of banner:
1.Local banner (SQL}-stored locally on the OpenAd SQL server
1.Local banner (Web server}-stored by OpenAd server on an FTP site or a specific directory
2.External banner-stored on a re¬mote server
3.HTML banner- these are simple HTML codes and Text Ads which include only text-based ads.
In our case it is a 'Local banner (SQL): so select Local banner (SQL) from the drop down list, click on the 'browse' but¬ton, and navigate to the folder where your banner is kept. Select the banner you want to use and click on 'OK' button. In the'destination URl: field you need to specify the address to which the visitor will be navigated to, ifhe/she clicks on the banner. Next is the'Target' option in which you can specify that when the user clicks on the banner, the URL specified in the desti¬nation field will be opened on a new browser or not. The destination URL and Target are optional fields. Fill the necesAfter you have uploaded the banners, it's time to make use of them.
Make sure that the banner size of the advertiser matches the zone size which is defined by the pub¬lisher else things will not work. For link¬ing a particular banner to a publisher's zone navigate to inventory> Publisher & Zone> PCQuest (name of the pub¬lisher»Zone Overview>My Zone > Linked banners and then from the drop down list choose PCQuest (advertiser) from the 'Select the campaign' option. Then select the campaign name that you gave for the chosen advertiser (in our case My Campaign) and click on blue arrow key, which finally links the ad to a zone. For testing this navigate to inventory> publishers & zone> PCQuest (publisher's name» Invocation code and then click on 'copy to clipboard' provided on the right side of the page, make an index.html file on any Web server root folder, and paste the code into the index.html file. Now open this newly created Web page from any client machine, this shows you the ad that the publisher intends to display.