Google has updated their adsense code to a newer version. Although it provides support to convert the legacy / old adsense code to the new one in the adsense admin panel easily, and also, it still counts the clicks and impressions on the old adsense code blocks, but it doesn’t provide any features to generate the code block with the old adsense code.
There are various ad block format codes available below in this article which provide you with the old adsense code, pretty cool han! You just need to enter your adsense Ad Client id, which is like: pub-xxxxxxxxxx where xxxx is different for every user and you can get it from any adsense code block from google adsense panel easily.
Here is a list of old Google Adsense Codes that can be used to switched up and customized to meet your design and site requirements easily just by editing it directly. Just add your publisher / Adsense Ad client id number, and customize the colors.
Infact, all the all adsense codes use the same code, only the height and width is different mainly in these three line:
google_ad_width = 250;
google_ad_height = 250;
google_ad_format = “250x250_as”;
Select the code you want from available Old Google Adsense Ad Formats:
300×250 Medium Rectangle (Recommended by Google)
728×90 Old Google Adsense Code
<script type="text/javascript"><!-- google_ad_client = "pub-XXXXXXXXXXXXXXX"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text"; google_ad_channel = "your_ad_channel"; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_text = "000000"; google_color_url = "008000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
468×60 Old Google Adsense Code
<script type="text/javascript"><!-- google_ad_client = "pub-XXXXXXXXXXXXXXX"; google_ad_width = 468; google_ad_height = 60; google_ad_format = "468x60_as"; google_ad_type = "text"; google_ad_channel = "your_ad_channel"; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_text = "000000"; google_color_url = "008000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
234×60 Old Google Adsense Code
<script type="text/javascript"><!-- google_ad_client = "pub-XXXXXXXXXXXXXXX"; google_ad_width = 234; google_ad_height = 60; google_ad_format = "234x60_as"; google_ad_type = "text"; google_ad_channel = "your_ad_channel"; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_text = "000000"; google_color_url = "008000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
125×125 Old Google Adsense Code
<script type="text/javascript"><!-- google_ad_client = "pub-XXXXXXXXXXXXXXX"; google_ad_width = 125; google_ad_height = 125; google_ad_format = "125x125_as"; google_ad_type = "text"; google_ad_channel = "your_ad_channel"; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_text = "000000"; google_color_url = "008000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
120×60 Old Google Adsense Code
<script type="text/javascript"><!-- google_ad_client = "pub-XXXXXXXXXXXXXXX"; google_ad_width = 120; google_ad_height = 600; google_ad_format = "120x600_as"; google_ad_type = "text"; google_ad_channel = "your_ad_channel"; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_text = "000000"; google_color_url = "008000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
160×600 Old Google Adsense Code
<script type="text/javascript"><!-- google_ad_client = "pub-XXXXXXXXXXXXXXX"; google_ad_width = 160; google_ad_height = 600; google_ad_format = "160x600_as"; google_ad_type = "text"; google_ad_channel = "your_ad_channel"; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_text = "000000"; google_color_url = "008000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
180×150 Old Google Adsense Code
<script type="text/javascript"><!-- google_ad_client = "pub-XXXXXXXXXXXXXXX"; google_ad_width = 180; google_ad_height = 150; google_ad_format = "180x150_as"; google_ad_type = "text"; google_ad_channel = "your_ad_channel"; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_text = "000000"; google_color_url = "008000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
120×240 Old Google Adsense Code
<script type="text/javascript"><!-- google_ad_client = "pub-XXXXXXXXXXXXXXX"; google_ad_width = 120; google_ad_height = 240; google_ad_format = "120x240_as"; google_ad_type = "text"; google_ad_channel = "your_ad_channel"; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_text = "000000"; google_color_url = "008000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
200×200 Old Google Adsense Code
<script type="text/javascript"><!-- google_ad_client = "pub-XXXXXXXXXXXXXXX"; google_ad_width = 200; google_ad_height = 200; google_ad_format = "200x200_as"; google_ad_type = "text"; google_ad_channel = "your_ad_channel"; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_text = "000000"; google_color_url = "008000"; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
250×250 Old Google Adsense Code
<script type="text/javascript"><!-- google_ad_client = "pub-XXXXXXXXXXXXXXX"; google_ad_width = 250; google_ad_height = 250; google_ad_format = "250x250_as"; google_ad_type = "text"; google_ad_channel = "your_ad_channel"; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_text = "000000"; google_color_url = "008000"; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
300×250 Old Google Adsense Code
<script type="text/javascript"><!-- google_ad_client = "pub-XXXXXXXXXXXXXXX"; google_ad_width = 300; google_ad_height = 250; google_ad_format = "300x250_as"; google_ad_type = "text"; google_ad_channel = "your_ad_channel"; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_text = "000000"; google_color_url = "008000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
336×280 Old Google Adsense Code
<script type="text/javascript"><!-- google_ad_client = "pub-XXXXXXXXXXXXXXX"; google_ad_width = 336; google_ad_height = 280; google_ad_format = "336x280_as"; google_ad_type = "text"; google_ad_channel = "your_ad_channel"; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "0000FF"; google_color_text = "000000"; google_color_url = "008000"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
One site is: http://oldadsensecode.com/ which provides you with the old adsense code block for your site. However, if you still don’t feel comfortable in using this, you can use any of the above old adsense code blocks codes, and just change pub-xxxxxxx to your google adsense ad client id and customize the ad block the way you want!.