I also wanted to add Google Adsense to MediaWiki without editing the source PHP files. I found the an extension called WikiBanner which allowed code to be added to a top and bottom banner.
How to add Google Adsense to MediaWiki
About the Author: Matt Woicik
Matt is a digital marketing strategist and the owner of ML2 Solutions, a digital marketing agency. He helps businesses increase awareness and get more leads using digital marketing. New marketing methods are confusing, always changing and difficult to figure out. Matt helps to explain things and provide solutions with clear results.