How to Conceal Adsense Ads on your Website
How to Conceal Adsense Ads on your Website ? yes,we can do it.We Know already that Google AdSense is playing a major-role on all Websites.Here I’m gonna tell you how to Conceal AdSense Ads on your Website.First,We should not change the Code as the Adsense Script nimble-witted,It detects Browser’s width and Serves Right size consequently.Now contemplate a slightly divergent scenario where,instead of showing bijou sized ad.you would like to utterly conceal AdSense Ad if the screen width is less than ‘X’ pixels.For a case you may have 160×600 px Skyscraper in your website’s sidebar but it should be displayed on PC not on a Mobile phone when it is viewed.There are two techniques to accomplish this.you can either write a CSS media query that which will utterly Conceal the sidebar on a mobile phone and thus the appended Adsense Ad will also be hidden from the User.This will however be Anti to Adsense program policies,because the AdSense ad which will still be provided on the User’s Screen though Concealed from View.
How to Conceal AdSense Ads with CSS Media Queries
Adsense ad is which itself ‘blocked’ from providing on a small screen.There’s a mechanism which is being played behind it.It is also feasible with CSS media queries but the big divergent is that we need to apply the CSS rules to the ad element not the parent receptacle.The standard Adsense Code which you will see below, is scrapped that which will provide a 160×600 pixels ad unit.If you copy and paste the below ad unit into your website,It will always download and provide the ad irrespective of the User’s screen size.if you need to avert the AdSense ad from showing on all Bijou screens.We have to make a few changes to the default code.
If you carefully heed the two scraps.You will find that we’ve appended a new class sidebar_bar ads to the default AdSense snippet. Next we’ve appended a media query that which will conceal all elements of this class if the screen width is less than 480 pixels.
By this technique,No ad requests is made to the Google server and No ad is shown to the Users.The ad areal is totally concealed and the Content below will get pushed up and evacuated.