<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Joe Hayes {dot} Org &#187; Monetization</title>
	<atom:link href="http://www.joehayes.org/cat/monetization/feed" rel="self" type="application/rss+xml" />
	<link>http://www.joehayes.org</link>
	<description>Web Development and Internet Marketing</description>
	<lastBuildDate>Fri, 18 Sep 2009 13:43:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Adsense After The First Post In Wordpress</title>
		<link>http://www.joehayes.org/adsense-after-the-first-post-in-wordpress.html</link>
		<comments>http://www.joehayes.org/adsense-after-the-first-post-in-wordpress.html#comments</comments>
		<pubDate>Mon, 17 Sep 2007 19:22:56 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Monetization]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.joehayes.org/adsense-after-the-first-post-in-wordpress.hml</guid>
		<description><![CDATA[On the homepage, one of the more effective places to implement Google Adsense is after the first post (same for any other archive type page, like the categories). While the CTR (click through rate) won&#8217;t be as high as placing the code above the first post, or after the first post title, it&#8217;s much cleaner [...]]]></description>
			<content:encoded><![CDATA[<p><img align="left" src="http://www.joehayes.org/wp-content/uploads/2007/09/google-adsense-logo.gif" alt="Google Adsense Logo" title="Google Adsense Logo" />On the homepage, one of the more effective places to implement Google Adsense is after the first post (same for any other archive type page, like the categories). While the CTR (click through rate) won&#8217;t be as high as placing the code above the first post, or after the first post title, it&#8217;s much cleaner and will provide a &#8216;less spammy&#8217; place to put the code. Remember, folks are here for your content - not your ads.</p>
<p>At any rate, it&#8217;s pretty simple.  You&#8217;ll need to use this code to prevent your ad code from appearing after every single post, as Wordpress would just loop and keep showing it (which would likely be against Google&#8217;s TOS as they only allow 3 ad blocks per page).</p>
<p>First, open your index.php (or home.php, archive.php, or any other file you want to do this for) and find this line:</p>
<p><code>&lt;?php if (have_posts())</code></p>
<p>and before, add:</p>
<p><code>&lt;?php $count = 1; ?&gt;</code></p>
<p>This will be used to track which post is being displayed. Next we&#8217;re going to add the code to display your Adsense. Find:</p>
<p><code>&lt;?php the_content</code></p>
<p>and after, add:</p>
<p><code>&lt;?php if ($count == 1) : ?&gt;<br />
Adsense Code Goes Here<br />
&lt;?php endif; $count++; ?&gt;</code></p>
<p>There you have it, quick and dirty. Remember, this has to go <em>inside</em> the loop otherwise it won&#8217;t display properly (place it <em>before</em> the &lt;?php endif; ?&gt; which closes the loop. If you wanted this outside the loop (completely before or completely after all your posts), there would be no need to iterate through a post count. You can change this code to display after any number of posts by changing the $count == 1 to whatever post number you&#8217;d like.</p>
<hr />
<p><small>&copy; mdvaldosta for <a href="http://www.joehayes.org">Joe Hayes {dot} Org</a>, 2007. |
<a href="http://www.joehayes.org/adsense-after-the-first-post-in-wordpress.html">Permalink</a> |
<a href="http://www.joehayes.org/adsense-after-the-first-post-in-wordpress.html#comments">56 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.joehayes.org/adsense-after-the-first-post-in-wordpress.html&amp;title=Adsense After The First Post In Wordpress">del.icio.us</a>
<br/>
Post tags: <br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.joehayes.org/adsense-after-the-first-post-in-wordpress.html/feed</wfw:commentRss>
		<slash:comments>56</slash:comments>
		</item>
		<item>
		<title>Disabling Google Adsense Ads On Your Computer</title>
		<link>http://www.joehayes.org/disabling-google-adsense-ads-on-your-computer.html</link>
		<comments>http://www.joehayes.org/disabling-google-adsense-ads-on-your-computer.html#comments</comments>
		<pubDate>Wed, 18 Jul 2007 15:27:35 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Monetization]]></category>

		<guid isPermaLink="false">http://www.joehayes.org/disabling-google-adsense-ads-on-your-computer.hml</guid>
		<description><![CDATA[As a webmaster serving Google Adsense advertising, one of the most important things is taking care not to click your own ads. Doing so is not only unethical (cheating advertisors), it will also get you banned. So how can an honest webmaster prevent accidentally clicking their own ads? It’s happened to the best of us, [...]]]></description>
			<content:encoded><![CDATA[<p>As a webmaster serving Google Adsense advertising, one of the most important things is taking care not to click your own ads. Doing so is not only unethical (cheating advertisors), it will also get you banned. So how can an honest webmaster prevent accidentally clicking their own ads? It’s happened to the best of us, no matter how hard we try. Short of disabling all javascript (not a good idea, many sites today rely on Java for various functions), there are a few easy ways to selectivly block adsense ads from being served to your browse.</p>
<p>Internet Explorer users can simply edit their host file, found in these places:</p>
<blockquote><p><strong>Windows 9x, ME</strong> C:\WINDOWS<br />
<strong>Windows NT (and some 2K)</strong> C:\WINNT\system32\drivers\etc<br />
<strong>Windows 2K, XP, 2003</strong> C:\WINDOWS\system32\drivers\etc</p></blockquote>
<p>At the first blank line you see (probably under a localhost line), add:</p>
<p><code>127.0.0.1 pagead2.googlesyndication.com</code></p>
<p><code></code>Pretty easy huh? This will cause all references to the Adsense server to refer to your own computer (localhost) instead &#8211; resulting in nothing being returned. If you use Firefox you can install the <a target="_blank" href="http://adblock.mozdev.org/" title="Mozilla Firefox Adblock Extension">AdBlock extension</a>, which is easy enough and instructions can be found on that site.</p>
<hr />
<p><small>&copy; mdvaldosta for <a href="http://www.joehayes.org">Joe Hayes {dot} Org</a>, 2007. |
<a href="http://www.joehayes.org/disabling-google-adsense-ads-on-your-computer.html">Permalink</a> |
<a href="http://www.joehayes.org/disabling-google-adsense-ads-on-your-computer.html#comments">One comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.joehayes.org/disabling-google-adsense-ads-on-your-computer.html&amp;title=Disabling Google Adsense Ads On Your Computer">del.icio.us</a>
<br/>
Post tags: <br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.joehayes.org/disabling-google-adsense-ads-on-your-computer.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
