How to add Google News your Site?

February 4th, 2009 by Manpreet | Filed under blogging, google.

Today Google launched a new extension to the AJAX Search API, a Google News-based element. This element embeds a news slideshow on your site, letting your users see headlines and previews from Google News based on queries that you’ve selected. Here is an example of the NewsShow in action:

To add above code to your blog or website copy code below:

The element comes in two standard sizes: 728×90 and 300×250. So easy add news isn’t it:

1.) To add 300×250 size copy code below:

<iframe src=”http://www.google.com/uds/modules/elements/newsshow/iframe.html?format=300×250″ width=”320″ height=”270″></iframe>

2.) To add 728×90 copy code from below:

<iframe src=”http://www.google.com/uds/modules/elements/newsshow/iframe.html?” width=”740″ height=”100″></iframe>

3.) But the problem is the above shows only latest headlines. And the question is if I have a tech website , then what a political news is doing on my website or blog. Here is the solution. In the code above if you want only technology news then just edit the code to:

<iframe src=”http://www.google.com/uds/modules/elements/newsshow/iframe.html?format=300×250&q=technology” width=”320″ height=”270″></iframe>

Here is the result of above code:

Similarly you can do it for Science, Microsoft, Yahoo, superbowl, cricket etc. kind of specific news by just simply changing (q= your choice )

-

Tags: , , , ,

2 Responses to “How to add Google News your Site?”

  1. Is ripping off headlines and leads protected by “fair use”?

    http://www.niemanlab.org/2009/01/gatehouse-nyt-deal-bad-precedent/

    Yeah, bloggers will love this but what if the publishers don’t want their headlines and leads on their blogs? Just because you think you’re doing something for the publisher by providing a link, doesn’t mean they agree with you.

    Oh, well, let Google legal handle it.

  2. Ya Stephen You are right We also Did a post few days back on this court case Hyperlinks: The heart-beat Internet & Blogging under threat?.

    Let see what we can get out of the case of two parties..Will Google be sued or what? till then enjoy..

Leave a Reply