Wednesday, July 29, 2009

Monetize Your Google Gadget.

Inspired by the response to Increase Traffic | Create a Google Gadget ( Topping the popularity chart on this blog for the last month ) I researched methods to add advertisements to Google Gadgets.

Here is the method by which you can add any type of advertisement to your Google Gadget. Since you can put a Google Gadget within a post ( in contrast to Blogger Widgets ) this method also allows you to add Google Adsense Ads. within your post as demonstrated here ........

First create your Google Gadget. Looking for content to put in your Google Gadget? I have created one which shows the pictures from my picasa gallery as a sample. You can create a similar one based on your photo album collection. After creating the gadget and adding the Google Adsense or Amazon code as shown below submit it to the Google directory for syndication.

Aishwarya Rai Photos

Gadgets powered by Google

In the below code substitute the items in red with your own code :

1. Change the Module Preferences to those of your own.

2. Change the image URLs' to those from your Picasa gallery album.

3. Change the Amazon Ad. code to your own code.

4. Change the Google Analytics code to your own code.

The code for the Picasa photo albums Google Gadget is shown below :

<?xml version="1.0" encoding="UTF-8" ?>
<ModulePrefs title="Aishwarya Rai Photos"
category="Fun & Games"
description="Aishwarya Rai Photos">
<Require feature="analytics"/>
<Content type="html">
<div id="ashcontainer"
<script type="text/javascript">

var counter = 0;

// Preload the images using _IG_GetImage().
var images = new Array();
images[0] = _IG_GetImage("");
images[1] = _IG_GetImage("");
images[2] = _IG_GetImage("");
images[3] = _IG_GetImage("");
images[4] = _IG_GetImage("");

// Browse through photos sequentially. When you get to the end of the array, start over.
function browse(){
if (counter == images.length)
counter = 0;
_gel("ashcontainer").innerHTML = "";


<br />
<div style="text-align: center;">
<input type=submit value="Next ->" onClick="browse()">
<iframe src="" width="125" height="125"

scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe></div>
<script src="" type="text/javascript">

<script type="text/javascript">
_IG_Analytics("UA-xxxxxx-xx", "/ash");

Then paste the whole code in Google gadget editor online scratchpad and save it as an xml file. Publish the Google Gadget and get free publicity for your blog.

Lastly in Google Gadget editor go to File--->Publish----->Add to a Webpage. Customize your gadget and click Get Code button. Copy and paste the code in the Edit Html tab of post editor when creating post and Publish.
Stumble Delicious Technorati Twitter Facebook
If you enjoyed this post, make sure you subscribe as an Reader!


Post a Comment

← Newer Post Older Post → Home

Recent Posts

Recent Comments

Follow Me - Advertise your site at! Submit your site and get tons of traffic! - Advertise your site at! Submit your site and get tons of traffic!