Monetize Your Google Gadget. ~ The Blog Doctor.

Monetize Your Google Gadget.

New Visitor? Like what you read? Then please subscribe to my Blog Feed or sign up for Free Email Updates. Thanks for Visiting!

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.

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.

See my Google gadget with Amazon Ads. on the left side of this post.


Anonymous said...

I have kept on trying.
This is the exact error message that I get.

Error parsing module spec:
XML parse error:
Missing quotes (") for attribute value

I will appreciate some pointer.
Dr. Ashok Koparday

vin said...

Dr Ashok,

Just add quotes around your attribute values like this :


and correct it from :


The above is just an example.

vin said...

Dr Ashok,

You can also email me directly for any detailed help :

drbhatns AT gmail DOT com.

Afiesyafie said...

Thanks for the tips


Skip to top of post.

Search Blog Before Commenting


Post a Comment

Please use the above search box to search this blog before posting your valuable comments.

Comments posted on Dummies Guide to Google Blogger (Beta) are moderated and will be approved only if they are on-topic and not abusive. Try not to include website URLs/links in your comments. You can email me : drbhatns at gmail dot com for any blogging question. Thanks,


The Blog Doctor The Blog Doctor2 Blog Doctor Home


Tips On Blogger and Latest News.

Skip to top of post.