Google has recently announced the New Adsense Optimized ad Code which can improve the performance of ad loading on your websites. The new AdSense ad code works for both auto ads and also for manual ads.
To get the benefit of faster ads loading on your website, Publishers need to update their old Adsense ad code with the new google AdSense ad code.
For publishers using auto ads, publishers are not required to take any actions. The Adsense new code will be applied to your website automatically and you can enjoy the fast performance of the ads offered by Adsense new ad code.
Table of Contents
- Google Adsense Optimized Ad Code
- What does the new ad code look like?
- While replacing the new google AdSense Optimized ad code, make sure that:
Google Adsense Optimized Ad Code
The Google new Adsense ad code is optimized for performance so that the ads on the website load quickly, and help publishers improve their web core vitals.
We 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. Google Updates about New Version of Adsense Code.
What does the new ad 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>

Google also said that publishers do not have to update the old code to the new code. Google says, โthere is no requirement to replace the existing ad code on your site.โ
โHowever, youโre welcome to update your ad code if you want to take advantage of the new optimization features,โ the company added.
Google also advises publishers to avoid having a mix of old and new ad codes on the same page.
While replacing the new google AdSense Optimized ad code, make sure that:
- Publishers should update all the ad codes across their websites.
- For the most optimal results, Google Also recommends Publishers avoid having a mix of old and new ad codes on the same page.
- Make sure to verify Your publisher ID, so that it is correct in the all-new ad code.
FAQ
Do publishers need to make any changes?
No, Publishers donโt need to take any action. Publishers will have access to the new ad code the next time while signing in to AdSense and get the code from the Google Adsense account.
Do Publishers have to replace their siteโs old ad code with the New Optimized ad code?
Thereโs no requirement to replace the existing ad code on the Website. However, Publishers may update your ad code if they want to take advantage of the new optimization features.
Does Adsense optimized ad code improve performance?
Yes, googleโs new optimized Adsense ad codes are optimized to load faster and also help in improving web core vitals.
good
The ads are already started to load faster with new AdSense optimized ad codes. Before it was too slow.
Optimized AdSense Codes are really loading fast. Thatโs really great, before the website speed used to get slow down because of ads. Now publishers donโt need to worry about that anymore.
While using new optimized ad code , i noticed that sometimes ad doesnot shows up. Is it an error?