Google AdSense ad sizes

Sometimes, you find yourself in the middle of nowhere, and sometimes, in the middle of nowhere, you find yourself... trying to fit ads into your website. Sure, Google offers a list of AdSense ad sizes, but unless you're some sort of pixel wizard, chances are you're going to have a hard time imagining what a 234x60 block looks like. They've also got pictures of the top performing ad sizes, which is nice... except for the fact that they're a tiny bit off, which just grinds my gears.

So, as always, we're off to Python land to generate some pictures of our own. I didn't include the regional ad sizes, but the code's below, so feel free to update it as needed.

And in case you just want to download all the pictures, here's a handy download link.





































PS: you'll need to

1 2 3 virtualenv -p $( which python3 ) venv source venv/bin/activate pip install pillow

in order for the imports to work.