Responsive Google Adsense
Problem :
Google Adsense have several recommended ads sizes for publisher to put on their website. However, these ads recommended sizes are not optimize for mobile screens and often not suitable for website with responsive design. Usually, it is the width size that mess up the screen when viewed with different devices such as tablets and smartphones.
Diagnostic :
Because the Adsense codes are generated and most people just cut and paste with the hard coded width size. No one paid attention that width size can be tweaked slightly to cater for responsive website.
Solution :
I've found that the quickest way to solve the width problem is just to change it from ... let say width:200px
to width:100%
Give it a try and see how it goes. My solution had been tested on desktop, laptop, iPad, Android Tablet and Lenovo Android smartphone.
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+34.1k Golang : How to split or chunking a file to smaller pieces?
+10.4k Get form post value in Go
+11.6k Golang : Convert int(year) to time.Time type
+4.3k Golang : How to deal with configuration data?
+8.8k Golang : Check a web page existence with HEAD request example
+4.3k Golang : The Tao of importing package
+12k CodeIgniter : "Fatal error: Cannot use object of type stdClass as array" message
+9.3k JavaScript/JQuery : Detect or intercept enter key pressed example
+6.6k Golang : Gorrila set route name and get the current route name
+9.9k Golang : Intercept and process UNIX signals example
+11.4k Golang : zlib compress file example
+4.6k PHP : Convert string to timestamp or datestamp before storing to database(MariaDB/MySQL)