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
- Adsense Code Example
- While replacing the new google AdSense Optimized ad code, make sure that:
Google Adsense Optimized Ad Code
Google’s 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.
Adsense Code Example
Google Adsense 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.
6 Comments
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?