Google releases a new ad code in AdSense

Google releases a new ad code in AdSense

Google today released a new ad code in AdSense, the program that provides publishers a way to earn money with programmatic ads on their online content.

Google says 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, and Google is recommending publishers to update the ad code if they want to take advantage of the new optimization features.

New Auto ads code example

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

Old Auto ads code example

<script data-ad-client="ca-pub-1234" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>



Read more