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
+13.3k Golang : Image to ASCII art example
+4.7k Golang : Calculate a pip value and distance to target profit example
+9k Golang : How to get garbage collection data?
+5.5k Golang : Error handling methods
+10.8k Golang : Web routing/multiplex example
+5.2k How to check with curl if my website or the asset is gzipped ?
+30.9k Golang : bufio.NewReader.ReadLine to read file line by line
+7.7k Javascript : Put image into Chrome browser's console
+6.3k PHP : Shuffle to display different content or advertisement
+8.6k Golang : Gaussian blur on image and camera video feed examples
+8.1k Golang : Number guessing game with user input verification example
+5.6k Golang : Launching your executable inside a console under Linux