Not too long ago, I received an email from Google AdSense stating they are dropping their plugin for WordPress. Within the email, they provided two options in placing AdSense ads into WordPress sans the Google plugin. I was able to apply both methods to my site. I made a quick tutorial on how I did it. Check it out.
I encountered a problem with the responsive ads that were generated. If the ad chosen by Google was smaller than the size of the container, a bit of yellow shows. I figured I’d tweak the code generated by Google by adding
"background-color:transparent" setting to the
style attribute. I decided to go inline instead of tweaking the style sheet. My logic is: if I decide to change my theme, the inline code should stay the same, whereas, the external style sheet will update with the theme.