Code for enabling Ads on Mobile

In Previous archived post someone posted of a code for enabling Ads on Mobile… Unable to find it now… anyone have the link to that post or aware of to enable existing ads to be mobile friendly on blogger platform… @gulshan

You can use below code

<style>
.example_responsive_1 { width: 320px; height: 100px; }
@media(min-width: 500px) { .example_responsive_1 { width: 468px; height: 60px; } }
@media(min-width: 800px) { .example_responsive_1 { width: 728px; height: 90px; } }
</style>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-XXXXXXX11XXX9" crossorigin="anonymous"></script>
<!-- example_responsive_1 -->
<ins class="adsbygoogle example_responsive_1"
     style="display:block"
     data-ad-client="ca-pub-XXXXXXX11XXX9"
     data-ad-slot="8XXXXX1"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
1 Like

Thanks Sir, there was another very small code just to add to existing ad script, any idea since not sure if the above ad code works for infolinks and other advertisers apart from hidious google adsense…

Have a look https://archive.gulshankumar.net/t/responsive-ad-unit-vs-responsive-ad-unit-by-specifying-the-size/5543/18

Getting this error >> The webpage at https://archive.gulshankumar.net/t/responsive-ad-unit-vs-responsive-ad-unit-by-specifying-the-size/5543/18 might be temporarily down or it may have moved permanently to a new web address.

Could you please try this backup link?