Note: This article assumes you are using a classic template. On a Layouts-enabled blog, just click the "edit" link for your AdSense page element, the click the "Remove Page Element" button.
The special AdSense tab in Blogger's Template section does not currently have a way to automatically remove ads for you. So if, for some reason, you decide you no longer want to display ads on your blog, you'll need to remove the code manually. It's just a matter of finding the right code and deleting it, so it's pretty easy.
Click on the Template tab for your blog, and make sure you in the "Edit Current" view (where you see all the code) rather than on the AdSense tab. Then scan through your code until you find some code that looks like this:
<script type="text/javascript"><!--
google_ad_client="ca-pub-XXXXXXXXXXXXXXXX";
google_ad_width=234;
google_ad_height=60;
google_ad_format="234x60_as";
google_ad_type="text";
google_color_border="999999";
google_color_bg="000000";
google_color_link="CC6600";
google_color_url="CC6600";
google_color_text="999999";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
The numbers will be different, depending on what layout and colors you've chosen, and it will have your own AdSense ID in it instead of all those X's. But the basic format will be the same.
Once you've found that code, just delete it. Everything you see above can go. Then save your changes and republish your blog.
Another way to remove the code it to reset your template to one of our default versions. This is easier than looking through the code yourself, but please note that it will also remove any other customizations your changes you have made.
If you ever decide you want the ads back, just click on the AdSense tab, sign in, and choose the layout and colors you want.
0 التعليقات: