Each of Google’s 95 APIs has employees to support it. So, we’re used to seeing tutorials from Googlers about this API or that. Last week the search giant did something different. In a series of posts, Silvano Luciani wrote a series of posts showing how the Google Chart API can help make sense of data from the Google AdSense API.
The series of posts begins with a hypothetical–but realistic–request from “your CEO:”
He wants you to add AdSense reporting to his dashboard, and he wants to see the following:
- a line chart showing the number of ad requests for the current year, broken down by month
- a column chart showing the number of page views, ad requests, matched ad requests and individual ad impressions for the current year, broken down by month
- a table showing the number of ad requests, matched ad requests and individual ad impressions for the current year, broken down by ad client id
- a geo chart showing the number of page views for the current year broken down by country
He also requires the ability to interact with data: he wants to refine the visualization of the line and column charts filtering by lowest and highest number of ad requests shown in the charts.
Luciani attacked each of those bullet points in a blog post, complete with live examples and source code. There’s been a lot of criticism the last week about Google favoring its own services. I think this is a great example of when it’s wholly appropriate. The company has a bunch of APIs and it makes sense to show how they can be used together.
If you’re looking to do something similar with someone else’s APIs, give a look at the 14 charts APIs listed in our directory.