Skip to content

Brian Krogsgard

is Constantly Curious

  • Get in touch
  • About me

Tag: Responsive Design

Serve different Google Ad slots based on window size

Posted on December 28, 2012 by Brian Krogsgard

I’m wrapping up a responsive site where the client uses Google Ads to manage their ad sales. Google Ads insert iframes for their banners, and it’s impossible to resize them when necessary. Here’s the snippet I’m using to switch the ad size depending on the window size.

Howdy :)

My name is Brian. I'm a web developer in Birmingham, Alabama. I love building websites, and I build them with WordPress. I blog about the web and WordPress around here. I tweet too. Have something to share with me? Get in touch!
© Brian Krogsgard, 2016 | Made with WordPress