Since we received positive feedback about the new AdSense for content and AdSense for search code generation wizards, we've created a referrals code wizard to help guide you through the process of implementing referral buttons on your site. Simply choose Referrals from the AdSense Setup page of your account and select the product of your choice.

And don't forget, now you can display referral buttons in a text link format as well.