Showing posts with label iGoogle. Show all posts
Showing posts with label iGoogle. Show all posts

Friday, June 24, 2011

Showing Adsense Ads on iGoogle gadgets


Recently igoogle made changes to its site and stop supporting ads from adsense in home view. They says it is only supported in canvas view but that seems to be also broken there is already defect logged for the same but they closed stating won't fix because of adsene employee at adsense forum conversation says it could be adsense issue. Finally none of them has given solution for the same.
 I observed that when my igoogle gadget is loaded from www.gmodules.com then ads are displayed exactly fine but there is problem when igoogle gadget is loaded from www.ig.gmodules.com or any other host which ends with ig.gmodules.com (e.g jkasdjkasdkj.ig.gmodules.com , pqexlfgjsjkdlfg12jks.ig.ig.gmodules.com etc.) the Adsense ads are not displayed on such gadgets.

Finally I figured out workaround for the same for my gadgets, and I would like to share the same with you. Which could be very much helpful in your adsense revenue until google fixes this annoying issue. Following are simple steps you need to follows:

Your igoogle gadget must be having <content> section  for example
<Content type="html" view="home">
    <![CDATA[ 

Just after starting of this section put following javascript code which helps your gadget to be rendered from www.gmodules.com domain.


<script>
    //workaround for showing Adsense ads within iGoogle gadgets/widgets by http://technical-tejash.blogspot.com 
    var hostname = document.location.hostname;
    
    if (hostname.indexOf('ig.gmodules.com') > 0) {
      
      document.location.href = 'http://www.gmodules.com'+document.location.href.substring(document.location.href.indexOf('/', 10));
    }
</script>

If your gadget has more than one <content> sections then you need to place above code at the beginning of each <content> sections.

For your reference your can find following my gadget has working adsense ads on igoogle

All In One


All Emails

Yahoo Messenger App

Multiple Chat App!

Share |
Showing posts with label iGoogle. Show all posts
Showing posts with label iGoogle. Show all posts

Friday, June 26, 2009

Open Social: How To Migrate old URL of App / Gadget / Widget to New URL ?


I received email from Google Pages stating that they going to move to Google Sites and when I check further Google Sites doesn't support files like XML, HTML, CSS, JS. Now, here the problem begins since I have hosted most of my Google and Orkut Apps on Google Pages. Similar issue with geocities.com which is also going to be closed soon, and their also I hosted some apps XML, CSS and JS files.

I can figure out the place where can I host my files but I can not find any way on iGoogle or Orkut to change the origianl URL of my App, Gadget and Widget to something new. But in last few days I found the way to migrate the old URL to new URL and here are some simple step by step gude for both iGoogle and Orkut sandbox.

For hosting XML file
You can use Google Gadget Editor to host all XML files of your gadget. [Click Here]
To host other files like images, CSS, JS please refer some free hosting site here
And then make relavant changes in your open social XML file

Migration for iGoogle Gadgets / Widgets

There are two methods that you can use to create a gadget alias:

  1. You can use the gadget alias request form here.
  2. Submit a request to email [sites-migration@google.com] (will take longer than option 1).
Migration of Orkut Apps

Some important things to remeber befor migrating Orkut Apps
1. You must have claimed ownership of the existing app.
To claim ownership of an app, visit http://www.google.com/gadgets/directory/verify
2. You be logged in with the account with which you claimed ownership.
3. The existing app must be a featured app on Orkut.
4. The new application URL must NOT have been used as an app on ANY google container -- including orkut, iGoogle, etc.
Note: This is very important, otherwise the migrate request will fail. It is recommended that you create an absolutely new and unique URL when migrating. Unfortunately, this also means that you cannot test the new app URL on sandbox before issuing a migrate request.

Step for migratting Orkut Apps
1. Visit http://sandbox.orkut.com/AppUrlMigrate.aspx
2. Type in your existing app url and the new URL to migrate to.
3. Check the exisiting and new app URLs. (see attached screen shot)
4. Double check - (you really don't want a typo in the new URL).
5. Hit the submit button.
6. A migration confirmation message will appear.
7. The migration changes will propagate through caches and will be live in 24 hours.
Caution: If you use the same existing app URL on any other google property, this migration request will have an effect on the other property.

Source: http://orkutdeveloper.blogspot.com/2009/06/app-url-migration-tool-available.html

Share |
Showing posts with label iGoogle. Show all posts
Showing posts with label iGoogle. Show all posts

Monday, May 11, 2009

Open Social: Getting Started Tutorial using GGE (Google Gadget Editor)


If you are new to Open Social, then first thing you can do is try some sample open social apps / gadgets on iGoogle using Google Gadget Editor (GGE) it has lot of sample apps / gadget examples available to use various kind of Open Social APIs.

To use Google Gadget Editor (GGE), please check the following steps

  • Go to htttp://www.google.com/ig and login / sign in using your gmail / google id
  • After this you are at iGoogle home page
  • Now to install Google Gadget Editor (GGE) app / gadget / widget to your iGoogle home page go to http://www.google.com/ig/directory?url=gge.xml and click on Add it now button to add Google Gadget Editor to your iGoogle home page
  • After adding you can click on File -> New withing this Google Gadget Editor
  • It will display list to samples as shown bellow
  • In the category drop down you can select whether you want to see Popular Gadgets or API Examples
  • You can open any examples and have look at its code as a reference while building your app / gadget / widget
  • After doing all this you can edit the code accouring to your requirements or copy & paste your own code here
  • Click on File -> Save As to save your newly created gadget
  • Once it is saved you can check your gadget / widget / app in the Preview tab, to verify how it will look when it is deployed
  • When eveything is alright you can click on File->Publish to publish your app / gadget / widget to iGoogle
  • It will show dialog with 3 options as bellow:
- Add to my iGoogle page

- Publish to iGoogle Directory

- Add to a webpage
Among this click on Publish to iGoogle Directory and your app / gadget / widget is published to iGoogle directory

Share |

No comments yet

Topics

 
Embed Wave to Blogger