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.
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.