6.9.13

Manage multiple affiliate banners with a simple script on blogger

1 comment
Today most of the bloggers use affiliate banner ads for monetizing their online content along with the conventional PPC/PPM ads via adsense. There are a lot of options for affiliate ads, which bloggers can use.

If you are using a number of different affiliate networks or programs, it becomes difficult to place all the affiliate banners effectively on the blog without compromising the quality of the blog. Because putting up a lot of banners here and there masks the original content of the website and has negative impact on the readership.

The best way to manage multiple advertising and affiliate programs free of cost is off course DFP (doubleclick for publishers) or OpenX ad server. Both of these are complete ads serving suites and has the capacity of managing a lot of different types of ads, and also provide statistics and insight of the ad campaign.

For wordpress users there are ad management plugins available which can be used to manage multiple ads. But no such pluin is available for blogger (blogspot blogs).

If you are not a power publisher and have only few image based affiliate banners, which you want to display at a single ad slot on your blog/website this simple script can help you manage multiple banners at the same ad space. This script can rotate multiple banners with each refresh of your website page, working virtually as the ad servers. The down side is this script do not provide any kind of click statistics or insight.

Here is the script code.
<script type="text/javascript">
//***Banner Manager by http://www.newbietechtips.com***//

var images = [], 
index = 0;

images[0] = "<a href = 'Banner link 1'><img src='/banners/banner.gif' alt='Banner 1'></a>";
images[1] = "<a href = 'Banner link 2'><img src='/banners/banner2.gif' alt='Banner 2'></a>";
images[2] = "<a href = 'Banner link 3'><img src='/banners/banner3.gif' alt='Banner 3'></a>";

var _0xf27f=["\x72\x61\x6E\x64\x6F\x6D","\x6C\x65\x6E\x67\x74\x68","\x66\x6C\x6F\x6F\x72","\x77\x72\x69\x74\x65","\x3C\x61\x20\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x6E\x65\x77\x62\x69\x65\x74\x65\x63\x68\x74\x69\x70\x73\x2E\x63\x6F\x6D\x2F\x22\x20\x72\x65\x6C\x3D\x22\x64\x6F\x66\x6F\x6C\x6C\x6F\x77\x22\x20\x74\x61\x72\x67\x65\x74\x3D\x22\x5F\x62\x6C\x61\x6E\x6B\x22\x20\x62\x6F\x72\x64\x65\x72\x3D\x22\x30\x22\x20\x73\x74\x79\x6C\x65\x3D\x22\x70\x6F\x73\x69\x74\x69\x6F\x6E\x3A\x20\x66\x69\x78\x65\x64\x3B\x20\x62\x6F\x74\x74\x6F\x6D\x3A\x20\x31\x30\x25\x3B\x20\x72\x69\x67\x68\x74\x3A\x20\x30\x25\x3B\x20\x74\x6F\x70\x3A\x20\x30\x70\x78\x3B\x22\x20\x2F\x3E\x3C\x2F\x61\x3E"];index=Math[_0xf27f[2]](Math[_0xf27f[0]]()*images[_0xf27f[1]]);document[_0xf27f[3]](images[index]);document[_0xf27f[3]](_0xf27f[4]);
</script>


Just replace the banner landing link, banner image url and alt text the the above positions. You can add any number of such banners in this script. After adding your banner links this script can be added with a HTML/Javascript widget on the blogger blog.

The example of banner rotator is placed in the sidebar as an example.

You can download the js file here

1 comment:

  1. This script can rotate multiple banners with each refresh of your website page, working virtually as the ad servers. Cheap Autoblogs

    ReplyDelete