AdSense Plugin & Old Google Code

Since launching my Simple AdSense Insert plugin yesterday, I’ve had a query with regard to the parameters.

The user came to supply the parameters to the plugin and found that one of them – google_ad_slot – didn’t exist in the AdSense code.

After some digging, it turns out that is because Google changed the code format sometime before late 2007. If you’re using code from before then, it more than likely won’t have the ad_slot parameter. If this is the case, you simply need to go back into AdSense and recreate your advert (or, if you had it saved, simply bring it back up again) and get the new code.

Posted by David Artiss

Enterprise Happiness Engineer for the WordPress VIP team at Automattic. Gamer, film lover and general fan of all things Marvel, Star Trek and Star Wars. Failed comedian. Writer for The Big Tech Question. World's Greatest Grandma.

Talk to me!

This site uses Akismet to reduce spam. Learn how your comment data is processed.