google adsense sparklines

31 May 2006

sparklines_infosthetics.jpgsince a couple of weeks, the infosthetics website contains a sparkline diagram of its relative daily Google Adsense earnings, updated hourly. in contrast to the quite static "unique visitors" graph, this sparkline is more volatile & shows more complex patterns that are interesting to grasp. it is loosely based on a script that creates an Adsense RSS feed. instead of a RSS file, it now parses the data into a sparkline.
for those wanting to have their own Adsense sparklines on their website, the source code (PHP) can be downloaded here. one also needs the sparkline PHP library & some basic knowledge of crontab on your webserver to set up the automatic hourly execution of the script.
but most importantly, one must first kindly ask Google Adsense permission for its use! note that this display is in accordance to the Google Adsense policy, as it does not disclose the earnings directly, but only shows its relative fluctuations. see more information about this issue after the break.

add to delicious.gif add to digg

recent entries

air pollution helium balloon brand-based collaborative tag clouds tkaap video tracking interface BMW kinetic sculpture flokoon visual search pulsating emotion organism cinema redux film mosaics laser-cut sound analysis sculptures caffeine usage arcs zoomii visual amazon store mapping scientific citations collective prediction network all the water in the world reflect conversation table

extra

this was the answer from Google Adsense on the request of using the sparkline display: "Thank you for taking the time to email us. Gen­er­ally publishers are not permitted to disclose daily earnings information in any form. However, you may implement the chart you have de­scribed, as long as it does not display any numbers or draw undue attention to the ads.
The above permission applies specifically to websites administered by you, and may not be transferred to any other publishers. We appreciate your efforts to remain in compliance with our program policies."

so be sure to ask permission first!

comments

Perhaps this is a good place to ask; I've often wondered why some columns are black and others dark(er) grey? And does everyone get the same greys in your sparklines?

a visual distinction is made between weekdays & weekends, & between the current & all previous months.
any visual attribute can be altered in the code, of course!

hey, what a really nice hack, I'd never thought of something like this when I wrote the Adsense to RSS script :)

(I'm also happy to be mentionned in your blog that has been in my feedreader for quite a while now:)

Very cool.

This is great! Is there any way to make the background transparent?

sujay: the sparklines PHP library generates a png image, & png supports transparency, so in principle: yes. you'll have to look into the sparklines code itself, however.

hi editor,

Does the sparklines package also produce that flat "pie"/line segment sparkline for browser use?

aloha,
Eric

Eric,
all the other sparklines, including the flat line diagram for browser use, are based on the AWStats log file of this website.

in particular, the flat line is a pure HTML hack with 4 stretched grey pixels (i.e. img src=pixel.gif width=value height=1).

Interesting script indeed. Im mailing google right now :) btw... I hope I can use logs that are in cPanel ?

david, the script you can download on this page only generates the Adsense sparklines.

Comments: (you may use HTML tags for style)

Hi, my aim is gonna be to make other people know about it. it's incredible i am not the only one who thinks so.
My JavaScript knowledge is not extensive, but I'm a quick learner.

Wanted to use this place to ask; I've often wondered why some columns are black and others dark(er) grey? And does everyone get the same greys in your sparklines?

tito, see the 2nd comment in this section. you can choose the colors yourself by altering the code.

Like many others, ithink application of this technologies is going to be bountiful.Thank you

This is great! Is there any way to make the background transparent?

Wonderful and beautiful stuff!


I'll be sending this to my companies' design team, my system architects and my web analytics business unit.


Visualisation of data remains one of the pain points in Web Analytics, my line of work, as it's a lot of data to diggest.


These kinds of initiatives will certainly help adoption of Web analytics: make the data interesting and a pleasure to look at!


Thanks for this great initiative, great blog!




Aurélie Pols


Only European member of the WebTrends Insight Network

Great feature. It's really interesting to have a look at the diagram.

When will I start getting paid.

This would be a great fit for our organization. Sparklines are a great fit for this type of report.

v.attractive scipt ..

Adsens with context of aesthetics follows a simple rule...Be very simple with ads..

http://students.50webs.org

blah.

Aggravated white space.

AMAZING system...I'm out of words...It's genius

On personal opinion, I find this very helpful.
Guys, I have also posted some more relevant info further on this, not sure if you find it

useful: http://www.bidmaxhost.com/forum/

Fine, this technologies is going to be bountiful, thanks.

Wonderful and beautiful stuff!


I'll be sending this to my companies' design team, my system architects and my web analytics busin

That's a very nice hack. I like to have all my informations in graphs. Only downside is, you have to wait for Google reply :)

Oh man, This is awesome! Many Kudos to you. I love the graphs!

It's a beautiful stuff!if it can used to My blog,will a wonderful thing.

hi i like your site

thank you

www.issagheit.blogspot.com
google adsense

What do you think about the design of Kleinanzeigen online.

Nice Greetings

comments (you may use HTML tags for style)comments (you may use HTML tags for style)comments (you may use HTML tags for style)

note that this display is in accordance to the Google Adsense policy, as it does not disclose the earnings directly, but only shows its relative fluctuations
electronic projects

It doesn't show the absolute values - too bad! But because it's obviously never zero it's more than I earn from my adsense :-)

Thanks for the interesting article and the discussion afterwards.

Gotta love ">google adsense

hey guys, Sparkline charts are available on silverlight, thinking of where to chk it out? ok here is the link visifire an amazing charting component powered by silverlight offered under open source just for free

shop

post a comment