- First a fall login to your adsense dashboard and create a new ad unit of width 300 or less and choose their type ( image, text or text+image ) , best choice would be text+image as it increases targeting on ad placements. Now just save the ad unit and copy the code to notepad as we will need it in next step.
google_ad_client = "ca-pub-XXX";
google_ad_slot = "YYY"; and note down the values XXX and YYY. Now substitute these values in the below given code.