Google Updates New AdSense Code for Improving Ad Performance

Google Improving ad performance with the new AdSense code for both Auto ads and ad units.

Google updated new adsense code for improving ad performance
Image Credit: Google blog
Advertisement

Google has announced an updated version of the New AdSense Code that improves the ad performance of your website. I assume that means it performs better with the page experience update and core web vitals metrics. The New AdSense Code works for both Auto ads and ad units.

Google wrote in a blog post, “recently launched a new version of the AdSense code. The new AdSense code allows AdSense to trigger optimization features earlier, which can improve the performance of the ads on your site. The new ad code works for both Auto ads and ad units.” Here is what the new code looks like for both Auto ads and ad units.

Advertisement

What does the New AdSense code look like?

Auto ads code example:

<script async src=”https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1234″ crossorigin=”anonymous”</script>
 

Ad unit code example:

<script async src=”https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1234″ crossorigin=”anonymous”</script>
<ins class=”adsbygoogle”
     style=”display:block”
     data-ad-client=”ca-pub-1234”
     data-ad-slot=“5678”
     data-ad-format=”auto”
     data-full-width-responsive=”true”></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>
New Faster Google AdSense Embed Code:
Google said you do not have to update the old code to the new code. Google said, “there’s no requirement to replace the existing ad code on your site.” “However, you’re welcome to update your Google AdSense code if you want to take advantage of the new optimization features.”. Google also said that you avoid having a mix of old and new ad codes on the same page. Does anyone test this to see if the new Adsense code type performs better with core web vitals?

Do I need to do anything?

You don’t need to take any action. You’ll have access to the new AdSense ad code the next time you sign in to AdSense and get the code from your account.

Do I have to replace my old AdSense ad code with the new ad AdSense code?

There’s no requirement to replace the existing ad code on your website. However, you’re welcome to update your ad code if you want to take advantage of the new optimization features.
 
Advertisement
Theprimetalks
Theprimetalks is a web media that provides the latest news and trending updates of India around the world at jet speed instantly.