Update old ad code to the new one

If you have existing ad units you'd like to keep using, you can easily upgrade your ad code within your account using our import code option.

  1. On your website, find and copy the AdSense code that you'd like to update.
  2. Sign in to your account at http://www.google.com/adsense.
  3. Visit the My ads tab.
  4. Click the Import old ad code link.


  5. On the next page, name the ad unit you're creating. We suggest including the site, page, location, and appearance.
  6. Paste the code that you copied into the Old AdSense code box.
  7. Click Import. This creates a new AdSense unit with the same settings as the old one.
  8. Replace the old code on your pages with the newly generated code, and save your pages.

In the future, you'll be able to make changes to this AdSense unit from within your account, without updating your pages.