The official blog for information about the Google Ads, Google Ad Manager, Google Mobile Ads SDKs for AdMob and IMA SDKs, and other Google Advertising Platform developer tools.
A few weeks ago, we caught up with Ben Birt from our AdSense API Engineering team in London. Today, we'd like to introduce you to another member of the team -- Nick Johnson, a Software Engineer who joined Google in May 2011. What’s your main contribution to API development?
I could tell you... but then I would have to use one of those flashy things from Men in Black on you. (We have those at Google). Then I’d probably have to use it on me. I’m essentially a general purpose code monkey at this point in time, but I have some very cool stuff coming into the pipeline soon.
Describe your average day at work
My average day starts with me grabbing a coffee and some cereal from the kitchen. Aside from our (seated) stand up team meeting, everything else changes on a daily basis. So long as I get to do some coding, I’m generally happy. What do you like most about the AdSense Management API?
I think the Ad Clients list call is my favourite. It’s less typing, so that makes it pretty ideal for making test calls. In all seriousness though, I think the thing I like best is the potential. The ways in which you can use and combine your data are entirely in your hands now.
We have some pretty cool surprises coming from inside Google (but when is that not true?), but we also can’t wait to see what third party developers create. Tell us one best practice about the API
Think about what you have, and what you need. Be smart with your calls and make the most of them. Try to multiplex and retrieve as much of the data you need in the least number of calls. You need to balance this with the responsiveness of your app though. Quite obviously more data will take more time.
Another important thing is that if you have any problems or feature suggestions, then by all means, please...
...tell Silvano and Sérgio :) (members of the AdSense API Developer Relations team)
Enough work stuff, let’s go personal.
We’ve heard that you lived in Scotland for some years. Is it true that they deep fry everything up there?
I think we both know that science has proven any foodstuff can be improved by submerging it in a large quantity of hot fat. It’s like adding “in space” to the end of a plot description. I did live in the beautiful city of Edinburgh (s’up to my homies on the Morningsi-ide) for ten extremely pleasant years, before I moved down to the big smoke for a job with the big G.
No, it’s not true that the Scottish deep fry everything. It would be far more accurate to say they will deep fry anything. Don’t knock it until you’ve tried it though. Deep fried Mars bars are very real, but I’m afraid I never tried them. I was worried I might like them. Ok, let me ask you some geeky questions now. I’ve heard that you like functional programming...
Truly, your wit is sharp as a pillow.
Functional programming is something I’m slowly getting my head around, but the biggest barrier (for me, at least) is the attitude of the functional programming evangelists. It’s like talking to someone who thinks Emacs is better than Vim.
I mean, come on. Since it’s obligatory in these sorts of interviews, why don’t you throw some film and book recommendations our way?
I’m at least as big a film nerd as I am a computer nerd (and I do the latter for a living!), so I could literally talk to you all day about that. If I’m completely honest, the film I saw in 2011 which I enjoyed the most was almost certainly Fast [and Furious] 5, but I’m not sure I’d go so far as to say it’s the best film I saw this year. I will always love The Matrix, Fight Club, Pitch Black and Amélie, and right now I’m really quite excited about Joss Whedon(!)’s The Avengers.
If I had to recommend one book it would probably be either The Hitchhiker’s Guide to the Galaxy, or Neal Stephenson’s Cryptonomicon (though that is really not a light read, in any sense of the word). Recently I read, and loved, “The Alloy of Law”, Brandon Sanderson’s follow up to his brilliant Mistborn trilogy, so I think I’ll also have to recommend those books. Will you fix my computer?
No. Fine. Will you code my favorite API?
I’m on it.
You can start using the service by checking out the reference documentation, that contains also some sample scripts, and this tutorial that implements the use cases mentioned above.
Happy Google Apps Scripting with the AdSense Management API!
Following the launch of the AdSense Management API in October 2011, we visited our AdSense API Engineers in London to get to know them a bit better. Our guest today is Ben Birt, a Software Engineer who has worked on the AdSense API team since October 2010.
What’s your main contribution to API development?
I write a lot of the code! More seriously, my general concerns are on the reports side of the API, as well as general code design/maintenance.
Describe your average day at work.
An average day usually consists of the usual: reading/answering email, maybe attending a meeting or two, and then the more fun stuff: actually writing code. I usually end up working on two or three code-related tasks at a time, each of which might take me a week or so.
What do you like most about the AdSense Management API?
I’m really happy that for the first time ever, AdSense publishers have access to data that has traditionally been limited to the AdSense website. App developers have in the past been forced to screenscrape AdSense, but now have access to a much more robust method of data access that is safer for the end user (since they don’t have to give up their password), and easier to use for the developer.
I also really like that because we have built a standard Google API, we get a bunch of integrated tools for free: auto-generated client libraries for just about any language you can name, command-line access to the API (via GoogleCL), and more!
Tell us one best practice about the API.
Being intelligent about the requests you make will save you bandwidth and API quota. Inventory really doesn’t change all that often (especially ad clients), so it’s fine to cache some data for at least a little while.
You can also use ETags to help with this. However, don’t worry about requesting more quota - we fully expect any developer with a moderately successful app/website to need more fairly quickly.
Ok, now we want to know more about you outside work. Tell us one thing that you like about London.
I grew up in the middle of the countryside, so I love the sheer number of things to see, places to eat, and activities to do here. It’s also really easy to get around.
Let’s talk about hobbies. What book, movie and TV show would you recommend to our users?
I’m just going to end up sounding like a sci-fi geek, but here you are:
Book: If you’re into sci-fi, I strongly recommend pretty much anything by Iain M. Banks. I really love his writing style; especially anything set in the “Culture” universe.
Movie: Star Trek (as in the new one). I think it’s a great action-oriented reboot of the franchise with fast pace and excellent cast.
TV show: I really love QI. You might not have heard of it if you’re not British.
It’s a quiz show hosted by Stephen Fry who is one of the funniest and most interesting people on Earth, but it’s not really anything like any other quiz show - the contestants are usually all comedians so every episode is hilarious.
Mmm, now we want to know how much of a geek you are. Top Games of 2011?
These are in no particular order:
The Witcher 2: The makers of this game managed to improve on what was already a near-perfect game in the original Witcher. The game has a really well-thought-out plot - nearly every single task/quest is linked to the main story in some way; it could almost be read like a book. The game also looks gorgeous.
The Elder Scrolls V Skyrim: The game looks amazing, particularly when you’re outside, halfway up a mountain and can see across half of Skyrim! I love the sheer number of things you can do in this world: it’s not all connected up in a (near) single narrative like The Witcher 2; instead you get a massive open world where you can literally do whatever you want.
Thanks Ben, please go back to code our favorite API!
Sorry, I just got Skyrim delivered - I’ll be working from home. ;)
If the current usage is approaching the 10k daily limit, or you estimate that future usage will exceed it, you may request additional quota via the "Quotas" tab in the API console.