Start Ad Serving with OpenX- A Sequel

Exclusive offer: get 50% off this eBook here
OpenX Ad Server: Beginner's Guide

OpenX Ad Server: Beginner's Guide — Save 50%

Build and maintain professional advertising solutions for your web sites with OpenX Ad Server

$26.99    $13.50
by Murat Yilmaz | March 2010 | Open Source

Read Start Ad Serving with OpenX here.

Time for action – adding a zone to the website

In this section, we will add a zone to the website.

  1. Click on Add new zone link on websites screen near our newly defined website name. Note that your website name differs from this sample.

    OpenX

  2. We only need to fill in the Name field and choose the Size that is exactly the size of the banner we have provided before. As our banner size is 728x90, we do the same for zone size. The fi elds highlighted with a red rectangular border in the following screenshot show these fields:

    OpenX

  3. Click Save Changes button to complete adding a zone for the website.

What just happened

We have learned how to add a zone for the newly added website definition. We defined a name for the zone and a size, which is the same size as the previously uploaded banner

Time for action – linking the Amazon banner to the zone

In this section, we will link the banner to the newly created zone

  1. Click on the Linked Banners link near our zone definition.

    OpenX

  2. Select Link individual banners option.

    OpenX

  3. Let's browse until we find our banner and let's choose it.

    OpenX

  4. Click the small arrow near the banner name.

    OpenX

    Now, we have completed linking the banner to our zone.

What just happened

We have learned how to link a banner to a website zone. We chose Link individual banners option, then browsed advertisers, campaign, and banners lists until we find and choose our banner from the list. Note that banner and zone sizes have to match in order to list the available banners in the linking screen.

OpenX Ad Server: Beginner's Guide Build and maintain professional advertising solutions for your web sites with OpenX Ad Server
Published: March 2010
eBook Price: $26.99
Book Price: $44.99
See more
Select your format and quantity:

Time for action – serving the banner on the website

In this section, we will serve the Puzzles Games for Kids banner from the Toys & Games campaign of Amazon advertiser in a zone defined on a web page at our website.

  1. Click on the Invocation Code link on Zone Properties page.

    OpenX

  2. Now, we are on the invocation code settings page. Notice that the Javascript Tag option and invocation Bannercode is automatically selected. If not, select Javascript Tag first and apply Select All on the code text. Right-click on the code and select Copy.

    OpenX

  3. It is now time to create or open a sample HTML file. We will need to paste this code on the section where we want the advertisements to appear. In this example, we opened sample.htm and pasted the code after the second paragraph of the HTML file.

    OpenX

  4. The next step is to upload the file to our web server. We can use an FTP client, such as Core FTP.

    OpenX

  5. Let's check now how our page looks on the webserver by browsing to http://yourwebsite.com/sample.htm.Note that your website is diff erent from the sample and you should browse to your own website.

    OpenX

  6. Wait for around 10 minutes, if you don't see the advertisement served there immediately. Then refresh again. Finally, the advertisement should appear there.

What just happened

We first saw how to copy and paste zone invocation code to a sample HTML file. We then uploaded this file to our website using a free FTP client named as Core FTP. We browsed to this page and have seen that our banner is there and being served. We have successfully completed serving our first advertisement on a web page using the fastest way possible.

Pop quiz – understanding the basics

Which of the following statements are true?

  1. We can't serve advertisements on our website without adding a zone activation code.
  2. Image banner sizes and zone sizes don't have to be same.

Have a go hero – serving your own campaign banner

Now, it is your turn to test what you have learned so far.

  • Think about another advertisement scenario and serve a banner on your website, but use a new zone and a new HTML file
  • Try to achieve the whole process on your own by not looking at the steps
  • If difficulties occur, re-read this article.

Summary

In this article, we have gained a fundamental knowledge about how OpenX Ad Server works basically. We followed the fastest possible way to start serving an advertisement without entering the details of advertiser, campaign, and website settings.

In this article we have discussed how to:

  • Define an advertiser
  • Create a campaign and banner
  • Define a website and zone on this website
  • Link the banner to this zone
  • Serve this banner on this website zone by using a web page

If you have read this article you may be interested to view :

OpenX Ad Server: Beginner's Guide Build and maintain professional advertising solutions for your web sites with OpenX Ad Server
Published: March 2010
eBook Price: $26.99
Book Price: $44.99
See more
Select your format and quantity:

About the Author :


Murat Yilmaz

Murat Yilmaz is a software developer and an online entrepreneur who lives in Antalya, Turkey. He has over 10 years of experience in different IT fields, including development of web-driven solutions, large databases, and OLAP systems. He has worked in several multinational companies in Istanbul and Moscow as a consultant. He currently runs his own blog and an e-commerce and online advertising network. He holds a bachelor's degree in Computer Science from Marmara University at Istanbul. He spends his free time playing progressive rock songs, online chess, and reading scientific books.

He has also authored two other books, OpenCart 1.4: Beginner's Guide and OpenX Ad Server: Beginner's Guide.

Books From Packt

 

Amazon SimpleDB Developer Guide
Amazon SimpleDB Developer Guide

NHibernate 2.x Beginner's Guide
NHibernate 2.x Beginner's Guide

Drupal 7 First look
Drupal 7 First look

JavaFX 1.2 Application Development Cookbook
JavaFX 1.2 Application Development Cookbook

VirtualBox 3.1: Beginner's Guide
VirtualBox 3.1: Beginner's Guide

Pentaho 3.2 Data Integration: Beginner's Guide
Pentaho 3.2 Data Integration: Beginner's Guide

Microsoft Silverlight 4 Business Application Development: Beginner’s Guide
Microsoft Silverlight 4 Business Application Development: Beginner’s Guide

Moodle 1.9 Theme Design: Beginner's Guide
Moodle 1.9 Theme Design: Beginner's Guide

 

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software