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
+24.1k Golang : Convert IP address string to long ( unsigned 32-bit integer )
+12.9k Golang : concatenate(combine) strings
+5.6k Golang : How to determine if request or crawl is from Google robots
+8.9k Golang : Detect number of faces or vehicles in a photo
+21.7k Golang : Strings to lowercase and uppercase example
+27.9k Golang : Get first few and last few characters from string
+10.8k Golang : Clean formatting/indenting or pretty print JSON result
+25.2k Golang : Encrypt and decrypt data with AES crypto
+6.4k Android Studio : How to detect camera, activate and capture example
+14.8k Golang : Update database with GORM example
+20.7k Golang : Match strings by wildcard patterns with filepath.Match() function
+4.7k Swift : Get substring with rangeOfString() function example