{"id":6405,"date":"2016-12-08T09:00:32","date_gmt":"2016-12-08T03:30:32","guid":{"rendered":"http:\/\/www.amazecraze.com\/?p=6405"},"modified":"2017-03-18T13:08:37","modified_gmt":"2017-03-18T13:08:37","slug":"hide-adsense-ads-website","status":"publish","type":"post","link":"https:\/\/jsmwebsolutions.com\/blog\/hide-adsense-ads-website\/","title":{"rendered":"How to Hide AdSense Ads on your Website"},"content":{"rendered":"<p>\n\tAdSense is one of the most popular tools for website owners and advertisers, introduced by Google which can easily increase the traffic on your website overnight. AdSense alone can help millions of people to earn thousands of dollars every day.\n<\/p>\n<p>\n\tGoogle released Responsive ads earlier in 2016 and also announced that it would be no longer supporting flash ads from January 2017. The responsive ads are a great alternative to website owners as they can automatically adjust themselves as per the device. In other terms, ads can easily adapt to a 4 inch or a 6 inch phone or a laptop.You don&rsquo;t have to learn coding for these adaptations as the code behind these Ads can easily detect the browser and display it in a correct size. Responsive Ads also give more control to brands, as they can display more content. While advertisers can tinker with the image and name to have more control.\n<\/p>\n<pre>\r\n<strong>How to hide ads <\/strong><\/pre>\n<p>\n\tGoogle doesn&rsquo;t allow modifications in ads other than responsive ads. Moreover, Google has also listed other things you must avoid.\n<\/p>\n<ol>\n<li value=\"NaN\">\n\t\tHiding ads units by using display: none\n\t<\/li>\n<li value=\"NaN\">\n\t\tModifying ads such that content and ads overlap\n\t<\/li>\n<li value=\"NaN\">\n\t\tManipulating the ads by using hidden keywords, IFRAME, etc or manipulating the ads to attract user&#39;s attention.\n\t<\/li>\n<li value=\"NaN\">\n\t\tDistributions of ads via email and software.\n\t<\/li>\n<li value=\"NaN\">\n\t\tManipulating the ads to trigger an ad click by the user\n\t<\/li>\n<\/ol>\n<p>\n\tModifications that you can try\n<\/p>\n<ol>\n<li value=\"NaN\">\n\t\tModify the responsive ads.\n\t<\/li>\n<li value=\"NaN\">\n\t\tImplement A\/B testing.\n\t<\/li>\n<\/ol>\n<p>\n\tBut in scenarios where you want to hide the ad completely, for example, you might want to display roll-over ads only in desktop, not on mobile phone, you can use CSS coding to hide the ads.\n<\/p>\n<p>\n\tSource : Google\n<\/p>\n<p>\n\tAnother example,\n<\/p>\n<p>\n\t&lt;ins class=&rdquo;adsbygoogle&rdquo;\n<\/p>\n<p>\n\tstyle=&rdquo;&#8230;.\n<\/p>\n<p>\n\t&lt;script&gt;\n<\/p>\n<p>\n\t(adsbygoogle = &ldquo;window.adsbygoogle || [ ] ).push ( {} ) ;\n<\/p>\n<p>\n\t&lt;\/script&gt;\n<\/p>\n<p>\n\tThis is a small snippet of a standard AdSense code\n<\/p>\n<p>\n\tTo modify the code to display no ad, we just need to add a class and media query to hide Ads in a mobile phone if the screen width is less than 400 pixels.\n<\/p>\n<p>\n\tModified code will look like :\n<\/p>\n<p>\n\t&lt;style&gt;\n<\/p>\n<p>\n\t@media (max-width : 400px) }\n<\/p>\n<p>\n\t.no_ads {\n<\/p>\n<p>\n\tdisplay:none;\n<\/p>\n<p>\n\t&nbsp;&nbsp;&nbsp;}\n<\/p>\n<p>\n\t}\n<\/p>\n<p>\n\t&lt; ins class=&rdquo;adsbygoogle no_ads&rdquo;\n<\/p>\n<p>\n\t&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AdSense is one of the most popular tools for website owners and advertisers, introduced by Google which can easily increase the traffic on your website overnight. AdSense alone can help&hellip;<\/p>\n","protected":false},"author":1,"featured_media":6925,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[1,232],"tags":[260],"class_list":["post-6405","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-responsive-websites","category-tech","tag-how-to-hide-adsense-ads-on-your-website"],"rttpg_featured_image_url":{"full":["https:\/\/jsmwebsolutions.com\/blog\/wp-content\/uploads\/2017\/03\/How-to-Hide-AdSense-Ads-on-your-Website-1.jpg",742,302,false],"landscape":["https:\/\/jsmwebsolutions.com\/blog\/wp-content\/uploads\/2017\/03\/How-to-Hide-AdSense-Ads-on-your-Website-1.jpg",742,302,false],"portraits":["https:\/\/jsmwebsolutions.com\/blog\/wp-content\/uploads\/2017\/03\/How-to-Hide-AdSense-Ads-on-your-Website-1.jpg",742,302,false],"thumbnail":["https:\/\/jsmwebsolutions.com\/blog\/wp-content\/uploads\/2017\/03\/How-to-Hide-AdSense-Ads-on-your-Website-1-150x150.jpg",150,150,true],"medium":["https:\/\/jsmwebsolutions.com\/blog\/wp-content\/uploads\/2017\/03\/How-to-Hide-AdSense-Ads-on-your-Website-1-300x122.jpg",300,122,true],"large":["https:\/\/jsmwebsolutions.com\/blog\/wp-content\/uploads\/2017\/03\/How-to-Hide-AdSense-Ads-on-your-Website-1.jpg",742,302,false],"1536x1536":["https:\/\/jsmwebsolutions.com\/blog\/wp-content\/uploads\/2017\/03\/How-to-Hide-AdSense-Ads-on-your-Website-1.jpg",742,302,false],"2048x2048":["https:\/\/jsmwebsolutions.com\/blog\/wp-content\/uploads\/2017\/03\/How-to-Hide-AdSense-Ads-on-your-Website-1.jpg",742,302,false]},"rttpg_author":{"display_name":"Aj","author_link":"https:\/\/jsmwebsolutions.com\/blog\/author\/admin\/"},"rttpg_comment":0,"rttpg_category":"<a href=\"https:\/\/jsmwebsolutions.com\/blog\/category\/responsive-websites\/\" rel=\"category tag\">Responsive Websites<\/a> <a href=\"https:\/\/jsmwebsolutions.com\/blog\/category\/tech\/\" rel=\"category tag\">Tech<\/a>","rttpg_excerpt":"AdSense is one of the most popular tools for website owners and advertisers, introduced by Google which can easily increase the traffic on your website overnight. AdSense alone can help&hellip;","_links":{"self":[{"href":"https:\/\/jsmwebsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/6405","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jsmwebsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jsmwebsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jsmwebsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jsmwebsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=6405"}],"version-history":[{"count":1,"href":"https:\/\/jsmwebsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/6405\/revisions"}],"predecessor-version":[{"id":6954,"href":"https:\/\/jsmwebsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/6405\/revisions\/6954"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jsmwebsolutions.com\/blog\/wp-json\/wp\/v2\/media\/6925"}],"wp:attachment":[{"href":"https:\/\/jsmwebsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=6405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jsmwebsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=6405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jsmwebsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=6405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}