Last year, we launched a new version of the AdSense code. We'd like to take this opportunity to remind you that you're welcome to update your ad code if you want to take advantage of the new optimization features. The new ad code is available when you sign in to AdSense and get code from your account and works for both Auto ads and ad units.
Do I have to replace my old ad code with the new ad code?
There's no requirement to replace the existing ad code on your site, but doing so will allow AdSense to trigger optimization features which can improve performance of the ads on your site.
Tips: If you do choose to update your ad code, make sure that:
- You update all the ad code on your site. For the most optimal results, we recommend you avoid having a mix of old and new ad code on the same page.
- Your publisher ID is correct in all new ad code.
What does the new ad code look like?
Auto ads code example:
Ad unit code example:
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ignored1234567890123456"
data-ad-slot="5678"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>