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
+6.3k Golang : How to determine if request or crawl is from Google robots
+3k Golang : Fix go-cron set time not working issue
+7.1k Golang : Create zip/ePub file without compression(use Store algorithm)
+24.9k Golang : Storing cookies in http.CookieJar example
+5.5k Fix yum-complete-transaction error
+21.5k Golang : How to reverse slice or array elements order
+14.6k Golang : Search folders for file recursively with wildcard support
+17.3k Golang : Upload/Receive file progress indicator
+5.3k Golang : Stop goroutine without channel
+7k Golang : How to detect if a sentence ends with a punctuation?
+5.8k Golang : Compound interest over time example
+47.6k Golang : How to convert JSON string to map and slice