<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Dave Wooding</title>
	
	<link>http://www.davewooding.com</link>
	<description />
	<lastBuildDate>Sun, 12 Jul 2009 06:11:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/DaveWooding" type="application/rss+xml" /><item>
		<title>ClickBank Affiliate Software</title>
		<link>http://feedproxy.google.com/~r/DaveWooding/~3/veMESpjAgfQ/</link>
		<comments>http://www.davewooding.com/clickbank-affiliate-software/#comments</comments>
		<pubDate>Sun, 12 Jul 2009 05:45:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[clickbank]]></category>
		<category><![CDATA[affiliates]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/?p=105</guid>
		<description><![CDATA[&#8230; to redirect visitors to particular pages on the vendor&#8217;s site.
This post is about how to create affiliate software for Clickbank vendors that allows affiliates to sends visitors to particular pages on the vendor&#8217;s site and receive credit, i.e. affiliate sales, for those visitors.
Now why would a Clickbank vendor want to allow this &#8211; could [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230; to redirect visitors to particular pages on the vendor&#8217;s site.</p>
<p>This post is about how to create <strong>affiliate software</strong> for<strong> <a title="clickbank" href="http://www.clickbank.com" target="_blank">Clickbank</a></strong> vendors that allows affiliates to sends visitors to particular pages on the vendor&#8217;s site and receive credit, i.e. affiliate sales, for those visitors.</p>
<p>Now why would a Clickbank vendor want to allow this &#8211; could this be a <em>Clickbank scam</em>?</p>
<p>No, no, no.  Get your mind out of the gutter.  This is not a scam.  This is a way to let affiliates send visitors to the pages on the vendor&#8217;s site that converts the best (for that particular affiliate).</p>
<p>Or &#8211; hold on to your hat &#8211; even to the payment page (if the affiliate thinks a presell page on her or his site can convert better).</p>
<p>Let&#8217;s be honest, not every vendor has a sales letter that converts very well.  Why not let the affiliate do a presell and send the prospect to the payment page right away?</p>
<p>You can, and it is easy to do.</p>
<p>A simple change to the Clickbank vendor&#8217;s site information, a new page on the vendor&#8217;s site and you&#8217;re in business.</p>
<h3>Clickbank Login</h3>
<p>The vendor logins in to his or her account, clicks on the&#8221;Account Settings&#8221; link at the top of the page, then clicks on &#8220;My Site&#8221; and modifies the Hoplink Target URL.</p>
<p>Instead of having the URL be something like http://www.example.com, this gets changed to http://www.example.com/<strong>cb/</strong></p>
<p><img class="alignnone" title="clickbank login" src="http://www.davewooding.com/images/clickbank1.jpg" alt="" width="500" height="319" /></p>
<h3>Affiliate Software</h3>
<p>Time to make a slight addition to the vendor&#8217;s website that handles the redirect.</p>
<p>The vendor adds a subdirectory to the web page &#8211; in this case a directory called &#8220;cb&#8221; &lt;- that&#8217;s what the vendor changed in the url information page at Clickbank.</p>
<p>Then creates a file called &#8220;index.php&#8221; and adds the following contents (similar to the following) to the index.php file</p>
<p><a title="clickbank affiliate software" href="http://www.davewooding.com/clickbank.phps" target="_blank"><img class="alignnone" title="index" src="http://www.davewooding.com/images/clickbank2.jpg" alt="" width="500" height="180" /></a></p>
<p>The index.php file gets uploaded to the cb directory.</p>
<p>Time out:  Going forward, let&#8217;s assume that you are the Clickbank vendor &#8230;</p>
<p>There are a few changes that need to occur to the content mentioned above.</p>
<p>The first and most obvious is to change the example.com domain to your domain.</p>
<p>The second is to modify the contents on lines 3, 4, and 5 to your information.</p>
<p>You can also add more pages to redirect to.  Just remember to add a unique number for each page.  For instance, you might add</p>
<blockquote><p>4 =&gt; &#8220;http://www.example.com/someotherpage&#8221;,</p></blockquote>
<p>And correspondingly, you can remove some of those pages.</p>
<p>Once this information is added to the index.php file, upload the index.php into the cb directory.</p>
<p>Done.</p>
<h3>So How Does This Clickbank Affiliate Software Work?</h3>
<p>Now it is time to inform your affiliates that they have options when they send visitors to your site.</p>
<p>Instead of simply sending visitors through an affiliate link that looks like this &#8230;</p>
<blockquote><p><em>http://affiliate.vendor.hop.clickbank.net</em></p></blockquote>
<p>&#8230; and having them arrive at the page specified in your Clickbank affiliate account.  They can now send visitors to particular pages on your site (if you have multiple pages) using an affiliate link that looks like this&#8230;</p>
<blockquote><p><em>http://affiliate.vendor.hop.clickbank.net/?page=2 </em></p></blockquote>
<p>or</p>
<blockquote><p><em>http://affiliate.vendor.hop.clickbank.net/?page=3</em></p></blockquote>
<p>Try it for yourself, here are some live links that will direct you to a particular page and the affiliate will receive affiliate credit for any sales that result even though the arrival page isn&#8217;t the first page the visitor sees.</p>
<p><a href="http://dwooding.linktator2.hop.clickbank.net" target="_blank">http://dwooding.linktator2.hop.clickbank.net</a> &lt;- this takes you to the home page</p>
<p><a href="http://dwooding.linktator2.hop.clickbank.net/?page=1">http://dwooding.linktator2.hop.clickbank.net/?page=1</a> &lt;- this takes you to the member&#8217;s page</p>
<p>etc.</p>
<h3>Even Works With Encrypted Links</h3>
<p>Here&#8217;s the same links as before, this time encrypted using Clickbank&#8217;s <a title="clickbank hoplink shield" href="HopLink Shield" target="_blank">Hoplink Shield</a>.</p>
<p><a href="http://7d24386lp1okql28mjqdcduk65.hop.clickbank.net/ " target="_blank">http://7d24386lp1okql28mjqdcduk65.hop.clickbank.net/</a> &lt;- this takes you to the home page</p>
<p><a href="http://7d24386lp1okql28mjqdcduk65.hop.clickbank.net/?page=1" target="_blank">http://7d24386lp1okql28mjqdcduk65.hop.clickbank.net/?page=1</a> &lt;- this takes you to the member&#8217;s page</p>
<h3>But Wait, There Is An Easier Way</h3>
<p>Here&#8217;s a simple form to fill out that will create the directory and file you need to upload to your web site to allow Clickbank affiliates to direct link to ANY page (well, there is limit of 3 pages in this case &#8230; try out the premium version for all pages)  on your site and still receive affiliate credit.</p>
<p>What are you (you the Clickbank vendor) waiting for, try it out.</p>
<form method="POST" action="http://www.davewooding.com/cbredirect/">
<table>
<tr>
<td>
<input type="text" name="vendor" size="25" onfocus="if (this.value == 'Clickbank Vendor ID') {this.value = '';};" onblur="if (this.value == '') {this.value = 'Clickbank Vendor ID';};" value="Clickbank Vendor ID"></td>
</tr>
<tr>
<td>
<input type="text" name="url" size="25" onfocus="if (this.value == 'URL') {this.value = '';};" onblur="if (this.value == '') {this.value = 'URL';};" value="URL"></td>
</tr>
<tr>
<td>
<input type="text" name="redirect1" size="25" onfocus="if (this.value == 'Page 1') {this.value = '';};" onblur="if (this.value == '') {this.value = 'Page 1';};" value="Page 1"></td>
</tr>
<tr>
<td>
<input type="text" name="redirect2" size="25" onfocus="if (this.value == 'Page 2') {this.value = '';};" onblur="if (this.value == '') {this.value = 'Page 2';};" value="Page 2"></td>
</tr>
<tr>
<td>
<input type="text" name="redirect3" size="25" onfocus="if (this.value == 'Page 3') {this.value = '';};" onblur="if (this.value == '') {this.value = 'Page 3';};" value="Page 3"></td>
</tr>
</table>
<input type="submit" value="Create">
</form>
<img src="http://feeds.feedburner.com/~r/DaveWooding/~4/veMESpjAgfQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.davewooding.com/clickbank-affiliate-software/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.davewooding.com/clickbank-affiliate-software/</feedburner:origLink></item>
		<item>
		<title>How To Track Web Site Visitors In Real Time</title>
		<link>http://feedproxy.google.com/~r/DaveWooding/~3/6JiyI36Fc0o/</link>
		<comments>http://www.davewooding.com/how-to-track-web-site-visitors-in-real-time/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 04:33:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[stats]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/?p=99</guid>
		<description><![CDATA[Using Putty and SSH.
This is perfect if you want to be able to watch your visitors in real time without having to do anything.  Anything besides setting up anyway.
Start by downloading the Putty program.  This program will allow you to login to your web server and view your visitors in real time.
Once you have downloaded [...]]]></description>
			<content:encoded><![CDATA[<p>Using <a title="putty download" href="http://www.google.com/url?q=http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html&amp;ei=6Q5YSurZMouqsgO_15WeCQ&amp;sa=X&amp;oi=smap&amp;resnum=1&amp;ct=result&amp;cd=1&amp;usg=AFQjCNH-Mqkvm296uSzPz8-IAB0Z7IgpPw" target="_blank">Putty</a> and SSH.</p>
<p>This is perfect if you want to be able to watch your visitors in real time without having to do anything.  Anything besides setting up anyway.</p>
<p>Start by downloading the Putty program.  This program will allow you to login to your web server and view your visitors in real time.</p>
<p>Once you have downloaded the program to your computer, you will see a screen like this.</p>
<p><img class="alignnone" title="putty" src="http://www.davewooding.com/images/putty.jpg" alt="" width="456" height="442" /></p>
<p>You will need to know your web server&#8217;s I.P. address.  Type the I.P. address into the text box that says Host Name (or IP address), make sure that Port is set to 22 and Protocol: has SSH selected.</p>
<p>Click on Open and a black screen will pop open prompting you to provide a username.  For *nix type servers (Unix, Linux), the username is almost always &#8220;root&#8221;.  Type that in.</p>
<p>Next provide the server password.  The server password is typically NOT the same as your web site control panel login password.  Contact your tech support if you are not certain.</p>
<p><img class="alignnone" title="Putty login" src="http://www.davewooding.com/images/putty1.jpg" alt="" width="531" height="420" /></p>
<p>Next, you will want to change directory (cd) by typing at the prompt:</p>
<blockquote><p>cd /usr/local/apache/domlogs</p></blockquote>
<p>Now you want to move into the web site specific subdirectory.  The next subdirectory will be the <strong>username</strong> of the website you are interested in.  For instance, if your web site domain is mywebsite.com, your username would typically be the first 8 letters of your domain, in this case mywebsit.</p>
<blockquote><p>cd mywebsit</p></blockquote>
<p>The next command to use will display the latest visitors to your website and include information like I.P. address, referrer (if available), time / date, page, browser type, etc.</p>
<blockquote><p>tail -f mysebsite.com</p></blockquote>
<p>Everytime a page is visited on your web site, Putty will update the display to show the latest information.</p>
<p>When you are doing watching the show, hit the Ctrl-C keys and you will be kicked out of the real time visitor stats.</p>
<blockquote><p>Ctrl-C</p></blockquote>
<p>When you want to totally get out of Putty, type &#8220;exit&#8221; and the Putty program will shutdown.</p>
<blockquote><p>exit</p></blockquote>
<a href="http://www.davewooding.com/how-to-track-web-site-visitors-in-real-time/"><p><em>Click here to view the embedded video.</em></p></a>
<p>The video shows you where to download putty (hint, go to google and type in putty), how to configure Putty (takes 30 seconds if you know your web server&#8217;s I.P. address and password), how to change directory and what to type in to view your web site&#8217;s visitors in <em>real time</em>.</p>
<img src="http://feeds.feedburner.com/~r/DaveWooding/~4/6JiyI36Fc0o" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.davewooding.com/how-to-track-web-site-visitors-in-real-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.davewooding.com/how-to-track-web-site-visitors-in-real-time/</feedburner:origLink></item>
		<item>
		<title>WP-o-matic Wordpress Plugin Does Not Fetch Results</title>
		<link>http://feedproxy.google.com/~r/DaveWooding/~3/NwEfKUHwdsU/</link>
		<comments>http://www.davewooding.com/wp-o-matic-wordpress-plugin-does-not-fetch-results/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 16:25:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[aggregation]]></category>
		<category><![CDATA[atom]]></category>
		<category><![CDATA[autoblogging]]></category>
		<category><![CDATA[content]]></category>
		<category><![CDATA[feeds]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[syndication]]></category>
		<category><![CDATA[wp o matic cron]]></category>
		<category><![CDATA[wp o matic download]]></category>
		<category><![CDATA[wp o matic plugin]]></category>
		<category><![CDATA[wp-o-matic]]></category>
		<category><![CDATA[wpomatc]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/?p=75</guid>
		<description><![CDATA[If you are into autoblogging, feeds, rss, atom, aggregation, content, syndication, Wordpress, plugins, then you have likely heard of the WP-o-matic plugin.
This handy plugin takes a feed (rss or atm format) that you provide the link for and posts the contents on your self hosted Wordpress blog.
Here&#8217;s what you do to use WPomatic.
Download the wpomatic [...]]]></description>
			<content:encoded><![CDATA[<p>If you are into autoblogging, feeds, rss, atom, aggregation, content, syndication, Wordpress, plugins, then you have likely heard of the <strong>WP-o-matic</strong> plugin.</p>
<p>This handy plugin takes a feed (rss or atm format) that you provide the link for and posts the contents on your self hosted Wordpress blog.</p>
<p>Here&#8217;s what you do to use WPomatic.</p>
<h3>Download the wpomatic plugin</h3>
<p>Visit the <a title="wpomatic download" href="http://wordpress.org/extend/plugins/wp-o-matic/" target="_blank">download page</a>  (or download the &#8220;fixed&#8221; version I provide &#8230; keep reading) at worpdress.org, extract the contents to your computer, then upload the plugin to your plugin directory on your web server.</p>
<h3>Setup the plugin</h3>
<p>Login to your Wordpress blog, click on plugins, Activate WP-o-Matic, click on Settings-&gt;Wp-o-Matic and go through the 4 step setup.</p>
<p>The setup includes testing that your web server has all of the necessary components for using this plugin.  Setting up a cron job to run the script on a scheduled basis (or letting a page load of your blog kick off the script).  I don&#8217;t recommend using the page load option as it might slow down the page load for the person visiting your site.</p>
<h3>Add campaign</h3>
<p>Now you are ready to add your first campaign.  Click on Add Campaigns and you are presented with tabs that say &#8220;Basic&#8221;, &#8220;Feeds&#8221;, &#8220;Categories&#8221;, &#8220;Rewrite&#8221;,  and &#8220;Options&#8221;.</p>
<h4>Basic</h4>
<p>Select a title related to the subject of interest.  This will also auto insert the same information into the campaign slug text box.  Leave the Active? option checked.</p>
<h3>Feeds</h3>
<p>You will need to provide the url of an rss or atom feed.</p>
<p>As an example, go to <a title="Google blog search" href="http://blogsearch.google.com/">Google&#8217;s blog search</a> and type in a keyword phrase.  Once results are returned, you will want to get the address of the feed associated with that keyword phrase.</p>
<p>You can use either the Atom or the RSS feed address.</p>
<div class="wp-caption alignnone" style="width: 192px"><img title="wpomatic" src="http://www.davewooding.com/images/wpomatic2.jpg" alt="wpomatic" width="182" height="340" /><p class="wp-caption-text">wpomatic</p></div>
<p>You can find either of those two links on the left side &#8211; copy either link.</p>
<p>RSS link should look something like this:</p>
<pre>http://blogsearch.google.com/blogsearch_feeds?hl=en&amp;q=iphone&amp;ie=utf-8&amp;num=10&amp;output=rss</pre>
<p>The Atom feed looks like this:</p>
<pre>http://blogsearch.google.com/blogsearch_feeds?hl=en&amp;q=iphone&amp;ie=utf-8&amp;num=10&amp;output=atom</pre>
<p>Take one of the two feed addresses and paste into one of the four the Feed URL text box under Add Campaign.  You could also add more feeds and WP-o-Matic will &#8220;blend&#8221; the results when it posts to your blog.</p>
<h4>Categories</h4>
<p>I recommend using the Quick Add option to create a category with the exact same name as the keyword phrase you titled this campaign with.</p>
<h4>Rewrite</h4>
<p>Skip unless you want to get fancy.</p>
<h4>Options</h4>
<p>Change the default frequency to fit your needs.  I typically change the Max items to create on each fetch to something less than 10.  Check the box for Post title links to source to give credit to the original source.  For discussion options, I typically choose Closed and uncheck the Allow pings option (just my preference).</p>
<p>Now Submit.</p>
<h3>Done</h3>
<p>That&#8217;s is how you setup your first wpomatic campaign.</p>
<p>Once you clicked on the submit button, you were given the message that said <em>Campaign added successfully.  Edit it or fetch it now.</em></p>
<p>Click on the fetch it now link.</p>
<p>What happened?</p>
<p>Unfortunately, you probably received a message that said <em>Campaign processed. 0 posts fetched.</em></p>
<p>So what gives, you would expect up to 3 posts to be made, but zero?</p>
<p>There is a piece of  code missing.</p>
<p>If  you are willing to mess around with some php code, then dig into the wpopmatic.php file and include the htmlspecialchars_decode command.</p>
<p>If you would rather skip the editing, at the end of this post is a download to the fixed version.</p>
<div>
<dl style="width: 510px;">
<dt><img title="wp o matic" src="../images/wpomatic1.jpg" alt="wp o matic" width="500" height="51" /></dt>
<dd>wp o matic</dd>
</dl>
</div>
<p>If you are interested in more details, the following video shows what was described previously.</p>
<a href="http://www.davewooding.com/wp-o-matic-wordpress-plugin-does-not-fetch-results/"><p><em>Click here to view the embedded video.</em></p></a>
<p>[6:30] &#8211; the problem &#8211; wp-o-matic does not properly format the url.</p>
<p>[8:30] &#8211; the solution &#8211; edit line 1011 in the wpomatic.php file and add <a title="htmlspecialchars-decode" href="http://us.php.net/manual/en/function.htmlspecialchars-decode.php" target=_blank">htmlspecialchars_decode</a> to the line that formats the url.Or, save yourself the explanation and download wpomatic with the fix.</p>
<p>Here&#8217;s where you can <a href="http://www.davewooding.com/wpomatic.zip">download wpomatic plugin with the fix</a>.</p>
<p><a href="http://www.davewooding.com/go/wpqueen.html"><img class="alignnone" title="wordpress" src="http://www.davewooding.com/images/wpqueen1.gif" alt="" width="468" height="60" border="0" /></a></p>
<img src="http://feeds.feedburner.com/~r/DaveWooding/~4/NwEfKUHwdsU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.davewooding.com/wp-o-matic-wordpress-plugin-does-not-fetch-results/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.davewooding.com/wp-o-matic-wordpress-plugin-does-not-fetch-results/</feedburner:origLink></item>
		<item>
		<title>Google Adwords With Affiliate Data Feed</title>
		<link>http://feedproxy.google.com/~r/DaveWooding/~3/2dO2Nt4geCY/</link>
		<comments>http://www.davewooding.com/google-adwords-with-affiliate-data-feed/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 04:43:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[adsense]]></category>
		<category><![CDATA[garden]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/?p=53</guid>
		<description><![CDATA[Time to play Adwords with the big kids.  Hitch your pants up and lets get going.  From start to finish, you&#8217;ll see how to setup a datafeed to generate content that gets triggered by Adwords clicks.  Content rich advertisements that provide a plethora of opportunities for your visitors to find exactly what [...]]]></description>
			<content:encoded><![CDATA[<p>Time to play Adwords with the big kids.  Hitch your pants up and lets get going.  From start to finish, you&#8217;ll see how to setup a datafeed to generate content that gets triggered by Adwords clicks.  Content rich advertisements that provide a plethora of opportunities for your visitors to find exactly what they are looking for.  By way of example, you will see how to:  &#8211; get a datafeed, setup a MySQL databse, create a script that cleans up the datafeed and uploads the content to the database  &#8211; build a PHP search script for displaying results appropriate to your visitors interest  &#8211; use a script that creates Adwords keyword groups from the title of the products stored in the MySQL database  &#8211; setup an Adwords campaign that uses dynamic keyword insertion  &#8211; define a htaccess file that creates search engine friendly URLs from the Adwords dynamic keyword insertion used in your advertisements  &#8211; create a template that provides a list of related items and common content such as a header, navigation bar, contextual advertisements (like <a href="https://www.google.com/adsense">Google Adsense</a>), and footer  &#8211; another PHP script, a redirect script, that logs time, I.P. address and link clicked for tracking purposes  There is a lot to cover in this Adwords article, lets get started.</p>
<h3>Setting Up Your Datafeed</h3>
<p>Like I said, this is going to be a working example, no theory here, of how to use Adwords with a datafeed.  Trust me when I tell you it is not all pretty.  There is some ugliness involved when adding a vendor&#8217;s datafeed to the mix &#8211; &#8220;goofy&#8221; characters being the biggest offender.  You&#8217;ll know them when you see them.  For this example, I am going to use a datafeed I have previously used, one of the most content rich datafeeds I have found on ShareASale &#8211; the Nature Hill&#8217;s datafeed.  If you want to follow along, head over to ShareASale, login or signup if you aren&#8217;t a member already, then grab the <a href="http://www.davewooding.com/sign-up-for-nature-hills/" target="_blank">NatureHill datafeed</a>.  Once in, find the Nature Hill&#8217;s program and click on the link that says &#8220;Download .csv&#8221;.  <img src="http://s3.amazonaws.com/maybe/1.png" alt="Nature Hills" /> You&#8217;ll need to download the file and extract it to your computer.  <img src="http://s3.amazonaws.com/maybe/2.png" alt="download" /><img src="http://dwooding.doublectr.hop.clickbank.net/?tid=DW" alt="" width="1" height="1" /> Next, upload the extracted file (4742.txt) to your webserver in the directory of your choice and possibly change the permissions on this file (chmod).</p>
<h4>Good coders create, great coders reuse</h4>
<p>.. or something to that effect.  I tell you this because I found a site where someone has done a great job setting up a database and <a href="http://forum.abestweb.com/showthread.php?t=86606" target="_blank">importing the datafeed</a> just like we want.   Like I said, good coders create, great coders &#8230;  But before we do that, we need to create a MySQL database, user, and password.  You&#8217;ll also add the user to the MySQL database.  When everything is said and done, your MySQL information should look like this if you are using CPanel:  <img src="http://s3.amazonaws.com/maybe/3.png" alt="download" /> Back to the script.  Of course, it won&#8217;t be right if I didn&#8217;t hack up the script a little bit, now would it.  Remember how we have already uploaded the merchant&#8217;s datafeed file, in this case 4742.txt, to our webserver.  Since we have already done that, we can chop off the ftp portion of this script and simply start by reading in the file.  Plus, we need to add a little something extra to cleanup the title (Name).  The final script looks like this:  <a href="http://www.davewooding.com/adwords/upload.phps"><img src="http://s3.amazonaws.com/maybe/13.png" border="0" alt="download" /></a> Note well the &#8220;REPLACE&#8221; comments &#8211; that is for you to specifically change, in particular your ShareASale id ($sas_id) which is a number provided by ShareASale, database user, database password, and database name.  Typical information might look like this:  Now that we have all of our &#8220;supplies&#8221;, it is time to start building a &#8230;</p>
<h3>Search Script</h3>
<p>&#8230; that is &#8220;smart&#8221; enough to display results that your visitor would be interested in.  I already have in mind how my Adwords campaign will be setup so I know what this PHP search script needs to do.  Now, for the purists out there, you&#8217;ll recoginize that what I am about to show is a &#8220;hack&#8221;.  Not a pretty way of accomplishing what I want to do, but it works.  If the database I am using was much larger, I would probably run into performance problems.  The idea behind this is that I am looking for items whose Name matches ANY of the keywords provided by the user via an Adwords click.  If someone is looking for &#8220;apple trees&#8221;, the search script will return results that have either &#8220;apple&#8221; or &#8220;tree&#8221; or both in the Name of the database field.  And being the money grubbing mongrel that I am, results will be returned with the most expensive item displayed first <img src='http://www.davewooding.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   As a fall back, if there are no matches in the Name (title) part of the database, the search script will make a second pass through the database looking in the Description part of the database for matching items.  If that returns no results; well, I&#8217;ll figure something out by the time we get to the end of this article.  We will start by creating a snippet of code that parses through the keyword or keywords and creating a sql query statement.  <img src="http://s3.amazonaws.com/maybe/4.png" alt="sql query" /> This code assumes that the keyword(s) is passed from another script (which it will be using since we are using dynamic keyword insertion with Adwords).  Line by line:  3) Grabs the keyword(s) passed from another script, chops off the whitespace at the beginning and end (if there is any), then strips out any tags (html type) to prevent any &#8220;junk&#8221; from being passed in.  4) Take the keyword(s) and break them up into individual words, shove them into an array.  5) Loop through each keyword.  6) Make sure the keyword is not empty.  7) Build a portion of the sql query needed and keep appending for each keyword.  10) Once finished with each keyword, chop off the extra &#8220;||&#8221; from the end.  This is the conditional part of the yet-to-be-displayed sql query needed for searching the database of affiliate products.</p>
<h3>Lets Query</h3>
<p>If you look up at the original script shown (you don&#8217;t have to, trust me on this one), we named our table naturehills.  Lets define a variable with that value.  Now create a sql query that uses that variable and the $extra variable.  Our search script now looks like this:  <img src="http://s3.amazonaws.com/maybe/5.png" alt="sql query" /> Lets move along and show what the script looks like with the sql statement and looping through the results (along with our backup plan if we don&#8217;t get results the first time).  Save this as &#8220;search.php&#8221;  <img src="http://s3.amazonaws.com/maybe/14.png" alt="search" /> Notice I have added some MySQL stuff at the top to connect to your database.  For where we are now, I am simply having the script print out the Name if it finds a match.  If there are more than 30 results, the script stops returning results.  The $count keeps tracks of how many results; if there are less than one result after the first sql query, the search script then changes the query from looking in the Name field to looking in the Description field ($extra = preg_replace(&#8221;/Name/&#8221;, &#8220;Description&#8221;, $extra);).  To be honest, I don&#8217;t expect that the Description option will ever be triggered.  Why? Because of the way I will setup my Adwords campaign that uses the datafeed Name as keywords.  But just to be safe the script will include the backup query.  Almost forgot my money mongering ways, add this to the sql statement to return results by most expensive to least expensive:  That&#8217;s the basis of our search script, we will fill it out later to present the results in such a way that results are included in a template to display for our visitors.  Moving right along.</p>
<h3>Creating Adwords Keyword Groups</h3>
<p>We are going to query the database that contains our datafeed information, grab all the names, and build a keyword group for EACH keyword that we can dump into the Google Adwords Editor.  We could always group our keywords by another field in the datafeed, either Custom1 or Custom3, which shows which groups each Name fits into.  Since I don&#8217;t know if I can count on these fields being populated at a later date, I&#8217;ll opt not to use these.</p>
<p><a href="http://www.davewooding.com/adwords/adwords_keywords.phps"><img src="http://s3.amazonaws.com/maybe/15.png" border="0" alt="adwords campaign creator" /></a></p>
<p>The result from running this script is a textarea box filled with ad groups that consists of one keyword per ad group with the campaign name &#8220;CAMPAIGN&#8221; that looks like the following.</p>
<p><img src="http://s3.amazonaws.com/maybe/6.png" alt="adwords campaigns" /></p>
<p>I recommend you do a search and replace and give the campaign (&#8221;CAMPAIGN&#8221;) name something else.  Then copy the results.</p>
<h3>Google Adwords Editor</h3>
<p>If you are not familiar with the <a href="http://www.google.com/intl/en/adwordseditor/">Google Adwords Editor, download it here</a>.</p>
<p>Next, go over to your Google Adwords Editor (I&#8217;m making the assumption that you have figured out how to set this up).  Click on &#8220;Keywords&#8221;, then click on &#8220;Make Multiple Changes&#8221;, choose Add/Update Multiple Keywords.</p>
<p><img src="http://s3.amazonaws.com/maybe/7.png" alt="adwords" /></p>
<p>Next, for the Destination option, choose the radio button that says &#8220;My keyword information below includes columns for campaign and ad group names. (These columns should be first, and in this order.)&#8221;.</p>
<p><img src="http://s3.amazonaws.com/maybe/8.png" alt="keyword" /></p>
<p>Paste the results.  Click on &#8220;Next&#8221;.</p>
<p>Some keywords might be ignored for duplicate reasons.</p>
<p><img src="http://s3.amazonaws.com/maybe/9.png" alt="duplicate" /></p>
<p>Complete the information required under the Ad Groups and Campaigns tabs before posting this new campaign to Adwords.</p>
<p><img src="http://s3.amazonaws.com/maybe/10.png" alt="campaign" /></p>
<p>Under Campaigns, you will need to set a daily budget.</p>
<p>Under Ad Groups set a Max. CPC Bid (USD).  Finally, click on the Ads tab, click on the Add Text Ad and add an ad for the newly created camgain (that was a mouthful).</p>
<p>NOTE WELL the liberal use of dynamic keywords  THIS IS IMPORTANT  and is the heart and soul of the whole operation &#8211; in particular the destination url.  If you are not familar with dynamic keyword insertion, check out the post I made about this.  http://www.davewooding.com/google-adwords-dynamic-keyword-insertion-php-script/</p>
<p>That&#8217;s it for the .htaccess file.</p>
<h3>Template For Results</h3>
<p>For this, I will leave up to you, dear reader, to come up with a decent looking template that displays results the way you want them to look like.</p>
<p>I&#8217;ll show results using a basis template that relies on subsitution for presenting unique content.</p>
<p>Create a file called &#8220;template.html&#8221; that contains something like this:</p>
<p>I know, I know, very boring.  I&#8217;m sure you can come up with a much better looking template.  You&#8217;ll probably want a Terms of Service page, a privacy page, an About page, a contact page, etc. </p>
<p>Notice the %%whatever%% things, those are &#8220;tokens&#8221; which will be replaced with a value that the search script uses &#8230; a value that is pulled out of the database based on the keyword sent over from Adwords.</p>
<h3>A Better Search Script</h3>
<p>Remember our php search script from earlier?  We are going to modify it to log the keyword(s) along with the date/time, and I.P. address of the visitor along with printing out results that use the template.html page.</p>
<p>Lets start by creating another table in our MySQL database called &#8220;visitors&#8221; that includes date, I.P. address, search term. Here&#8217;s the SQL dump to create.</p>
<h3>Tracking Keywords And Clicks</h3>
<p>Ah yes, tracking.  How could we possibly forget that.  You may have noticed I sneaked in a page called go.php in the results that get printed out.  That is a PHP script that (1) dumps the search search term into a database and logs the time, I.P. address of the visitor, the keyword that brought the visitor to the site, and the link that was clicked.</p>
<p>Now we just have to create it.</p>
<p>First, another MySQL table called &#8220;clicks&#8221; that logs the date, visitor&#8217;s I.P. address, keyword used to arrive and link clicked.</p>
<p>And our go.php script to log the click and redirect to the vendor:</p>
<p>http://www.davewooding.com/adwords/go.phps</p>
<h3>Adwords driven, datafeed generated content</h3>
<p>That&#8217;s all she wrote.  Hope that helps you get your head wrapped around the idea of using a <strong>datafeed with Google Adwords</strong>.</p>
<img src="http://feeds.feedburner.com/~r/DaveWooding/~4/2dO2Nt4geCY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.davewooding.com/google-adwords-with-affiliate-data-feed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.davewooding.com/google-adwords-with-affiliate-data-feed/</feedburner:origLink></item>
		<item>
		<title>Is This A Scam?</title>
		<link>http://feedproxy.google.com/~r/DaveWooding/~3/dcOoYUA3fQs/</link>
		<comments>http://www.davewooding.com/is-this-a-scam/#comments</comments>
		<pubDate>Sun, 31 May 2009 00:20:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[money blog]]></category>
		<category><![CDATA[scam]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/?p=19</guid>
		<description><![CDATA[Maybe you have seen a site like this one.

Someone claiming to make $5,000 a month posting a link on google.  Typically the site is Someone&#8217;s first name Money Blog, in this case the person is &#8220;Mary&#8221;.  It could easily be &#8220;Jay Wilson&#8221; or &#8220;Greg Williams&#8221; or &#8220;Cory Jordan&#8221; or &#8220;Jonah Battle&#8221;.  All [...]]]></description>
			<content:encoded><![CDATA[<p>Maybe you have seen a site like this one.</p>
<p><img src="http://www.davewooding.com/images/moneyblog1.jpg" alt="make money blog" /></p>
<p>Someone claiming to make $5,000 a month posting a link on google.  Typically the site is Someone&#8217;s first name Money Blog, in this case the person is &#8220;Mary&#8221;.  It could easily be &#8220;Jay Wilson&#8221; or &#8220;Greg Williams&#8221; or &#8220;Cory Jordan&#8221; or &#8220;Jonah Battle&#8221;.  All of them seem to be able to <a href="http://www.davewooding.com/images/moneyblog6.jpg" target="_blank"></a>Make $5000-$10000+ a Month Posting Links on the Internet.  Good for them.</p>
<p>What I don&#8217;t understand is why they all seem to have the same friends.  When I say friends, I mean people who comment on their blog about how much money they make.  They show the same images: faces with checks in front showing how much money Google has paid them.</p>
<p><img src="http://www.davewooding.com/images/moneyblog2.jpg" alt="proof" /></p>
<p>Seems a little strange, but come on, $5,000 a month for anyone with a computer and basic typing skills can earn cash on Google.  From the sounds of this, this should a slam dunk.</p>
<p><strong style="color:black;background-color:#ffff66">Mary</strong> Steadman from San Jose, CA had a compelling story on how filling out one simple online form changed her life.  She told me how she lost my job as a boring account rep for a manufacturing company a few months back, then changed her life by getting Google Biz Kit, Internet Biz Kit (have to have both, this is key), posting links given by Google, then finally depositing the checks that Google sends.</p>
<p>The links <strong style="color:black;background-color:#ffff66">Mary</strong> provided lead to here:</p>
<p><img src="http://www.davewooding.com/images/moneyblog4.jpg" alt="signup" /></p>
<p>By now, the frenzy is building, I&#8217;m thinking qualifying shouldn&#8217;t be that difficult.  I mean, I have a computer and basic typing skills and the form that needs to be filled out seems like a no brainer.</p>
<h3>Just as I thought &#8211; I qualify!</h3>
<p>And this is where it ends.</p>
<p>I know, I know, I&#8217;m only &#8220;one click away&#8221; from making up to $943 a day on Google, but they want my credit card information.</p>
<p>Sure, it is only a $1.97 for shipping.</p>
<p><img src="http://www.davewooding.com/images/moneyblog5.jpg" alt="pay" /></p>
<p>But nowhere up to this point is a &#8220;full disclosure&#8221; of what exactly am I getting.</p>
<p>I was surprised (maybe I shouldn&#8217;t be) not to find any earnings&#8217; disclaimer.  No where in the process of signing up did I find out if the results mentioned were typical or not.</p>
<p>I back tracked a little &#8211; went back to Mary&#8217;s Money Blog, the <a href="http://74.125.155.132/search?q=cache:t4QE47JCTkUJ:www.marylifejob.com/+site:marylifejob.com&amp;cd=1&amp;hl=en&amp;ct=clnk&amp;gl=us&amp;client=firefox-a" target="_blank">cached version</a> anyway &#8211; and found a disclaimer.  It certainly wasn&#8217;t easy to find and I wouldn&#8217;t expect the typical web surfer to notice this.  Why?  Because it was commented out and did not show up on the web page!</p>
<p><img src="http://www.davewooding.com/images/moneyblog3.jpg" alt="proof" /></p>
<p>For those interested in what the commented out terms and conditions along with disclaimer says &#8230;</p>
<blockquote><p>This publication provides the Author&#8217;s opinions and neither the Publisher nor the author intends to render legal, accounting, financial, business or other professional advice with this publication. With regards to licensing of a business enterprise, any legal accounting or tax matters. Author and publisher is an Affiliate of the company offering the business opportunity and are remunerated by advertiser. Author and publisher strongly suggest that the reader seek the services of appropriate licensed business, financial and or legal professionals before proceeding with any actions and comply with the local, state and federal licensing and guideline requirements which the reader resides or conducts business.</p>
<p>The Publisher and Author disclaim any personal liability, loss or risk incurred as a consequence of the use and application of the offer, either directly or indirectly, of any advice, information, or methods presented in this publication. Individual comments are unedited and not the opinion of Author or Publisher and not liable for their comments and opinions. Author or Publisher is not associated with Google Inc.</p>
<p>*INCOME CLAIM WARNING: <strong>Testimonials do not result typical result. Photographs or images are depiction of individuals and payment methods. These income examples are representative of some of the most successful participants in the program. Some individuals purchasing the program may make little or NO MONEY AT ALL</strong>. These claims are not a guarantee of your income, nor are they typical of average participants. Individual results will vary greatly and in accordance to your input, determination, hard work, and ability to follow directions. No person or company can guarantee profits or freedom from loss. By using this website you are agreeing to our Earnings and Income Disclaimers</p>
<p>(c)2005 All rights reserved. No duplication in whole or in part of this system s allowed without prior written authorization.<br />
By using this site you are agreeing to our: Privacy Policy &#8211; Disclaimer &#8211; Terms of Use</p></blockquote>
<p>So, here I sit $5,000 a month poorer for not signing up for the opportunity that <strong style="color:black;background-color:#ffff66">Mary</strong> Steadman from San Jose has successfully used.</p>
<p>Dave</p>
<p>P.S. &#8211; Seems that there are people out there that doubt the legitimacy of <strong style="color:black;background-color:#ffff66">Mary</strong> Steadman&#8217;s opportunity &#8211; like the <a href="http://electronplumber.com/marys-money-blog-the-google-biz-kit-earn-fast-cash-with-google-and-my-internet-payday-double-scams/" target="_blank">Electron Plumber</a>.</p>
<p>P.S.S. &#8211; For those willing to do some good old fashion work, there is opportunity to get paid by Google &#8211; <a href="http://www.davewooding.com/go/court.html">click here</a> to find out.</p>
<p>P.S.S.S. &#8211; Getting a little more traction, Aaron Wall has written about &#8220;<a title="google money" href="http://www.seobook.com/how-make-easy-money-google" target="_blank">Google Money</a>&#8220;.</p>
<img src="http://feeds.feedburner.com/~r/DaveWooding/~4/dcOoYUA3fQs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.davewooding.com/is-this-a-scam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.davewooding.com/is-this-a-scam/</feedburner:origLink></item>
		<item>
		<title>The Keyword Academy</title>
		<link>http://feedproxy.google.com/~r/DaveWooding/~3/iUBJI7AI-Lo/</link>
		<comments>http://www.davewooding.com/the-keyword-academy/#comments</comments>
		<pubDate>Sat, 30 May 2009 04:24:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[adsense]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/?p=18</guid>
		<description><![CDATA[In case you haven&#8217;t figured it out, a lot of what I write about here is what I am working on.
This post is no exception.
I have joined The Keyword Academy.
I have gone through a few of the videos, taken notes and done what has been recommended.
The video that follows shows a little bit about the [...]]]></description>
			<content:encoded><![CDATA[<p>In case you haven&#8217;t figured it out, a lot of what I write about here is what I am working on.</p>
<p>This post is no exception.</p>
<p>I have joined <a href="http://www.davewooding.com/go/court.html">The Keyword Academy</a>.</p>
<p>I have gone through a few of the videos, taken notes and done what has been recommended.</p>
<p>The video that follows shows a little bit about the program and what I have done to automate some of the work involved. These guys make no bones about it, there is some work to do &#8211; from picking the markets to target, selecting the best keywords to target both in terms of most profitable and keywords that have the most chance of success.</p>
<p>It is one thing to find a high paying keyword (like mortgage or lose weight), but it is another to find a high paying keyword that you can actually get a site ranked for. Court and Mark give you the exact formula to follow.</p>
<p>If you are a DIYer (do it yourself) that wants to boot strap yourself to making money online &#8211; these are the keys to the kingdom. If you are willing to put in the time researching the keywords and markets to target, then building the content on Wordpress blogs, and building the backlinks needed to rank at the top of Google, then you will get everything you need &#8230; and just as important, an explanation why you should do things the way they teach.</p>
<p>I spent a good portion of yesterday following the instructions on how to determine if a particular keyword is worth competing for. Most of the high paying keywords are not worth the effort. The good thing about putting in the &#8220;grunt work&#8221; is that I start to see patterns occur.</p>
<img src="http://feeds.feedburner.com/~r/DaveWooding/~4/iUBJI7AI-Lo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.davewooding.com/the-keyword-academy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.davewooding.com/the-keyword-academy/</feedburner:origLink></item>
		<item>
		<title>Another PHP Script</title>
		<link>http://feedproxy.google.com/~r/DaveWooding/~3/Jq-gDs9pAtc/</link>
		<comments>http://www.davewooding.com/another-php-script/#comments</comments>
		<pubDate>Sat, 30 May 2009 00:35:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[article]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/?p=41</guid>
		<description><![CDATA[Working on another simple PHP script.  One that helps you write articles quickly.
It is called Articletator.
I&#8217;m planning on having a working version ready very soon.  
Here is a ten minute video demonstrating what it does so far &#8211; and the code that generates the results.
Articletator Video
The idea is you search for a keyword [...]]]></description>
			<content:encoded><![CDATA[<p>Working on another simple PHP script.  One that helps you write articles quickly.</p>
<p>It is called <a href="http://www.articletator.com/">Articletator</a>.</p>
<p>I&#8217;m planning on having a working version ready very soon.  </p>
<p>Here is a ten minute video demonstrating what it does so far &#8211; and the code that generates the results.</p>
<p><a href="http://www.youtube.com/watch?v=ugGZXTwxD-g" target="_blank">Articletator Video</a></p>
<p>The idea is you search for a keyword phrase of interest, tell the script how many results to get and where the results come from.</p>
<p>Articletator goes off and does its thing &#8211; grabbing urls of sites that provide the information of interest, parsing out bits of information relevant to your query and reporting back the results in an easy to use format.</p>
<img src="http://feeds.feedburner.com/~r/DaveWooding/~4/Jq-gDs9pAtc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.davewooding.com/another-php-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.davewooding.com/another-php-script/</feedburner:origLink></item>
		<item>
		<title>Split Testing Google Adsense The PHP Way</title>
		<link>http://feedproxy.google.com/~r/DaveWooding/~3/laOkbV_Q5sQ/</link>
		<comments>http://www.davewooding.com/split-testing-google-adsense-the-php-way/#comments</comments>
		<pubDate>Sat, 30 May 2009 00:34:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/?p=39</guid>
		<description><![CDATA[Or &#8220;The Poor Man&#8217;s Split Testing Method&#8221;.
There&#8217;s no right or wrong way to do this.  Darren Rowse made a post about split testing Google Adsense and showed how to do so using channels and a little javascript.
Like a lot of things, there are other ways of accomplishing the same thing.
Enter PHP, that fancy web [...]]]></description>
			<content:encoded><![CDATA[<p>Or &#8220;The Poor Man&#8217;s Split Testing Method&#8221;.</p>
<p>There&#8217;s no right or wrong way to do this.  Darren Rowse made a post about <a href="http://www.problogger.net/archives/2008/05/16/how-to-split-test-ab-test-your-adsense-ads/" target="_blank">split testing Google Adsense</a> and showed how to do so using channels and a little javascript.</p>
<p>Like a lot of things, there are other ways of accomplishing the same thing.</p>
<p>Enter PHP, that fancy web scripting language that gives you the ability to do some pretty neat tricks.</p>
<p>The code snippet below allows you to split test your Adsense by day.  Instead of having to setup separate channels to split test, just login to your Google Adsense account, create two versions of the Google Adsense code you want to test, paste those two versions into the PHP code shown below, put that PHP code in an include file on your site, and call that include file in your web page. Then, if you want to see how you are doing, go back to your Google Adsense account and look at your results <strong>by day</strong>.</p>
<p>O.K. maybe that was a lot of stuff to do.</p>
<p>If you have a PHP enabled web site and you are not using PHP includes, tsk, tsk.  </p>
<p>All of the even numbered days (even numbered according to PHP) will display one version of your Adsense code while all of the odd numbered days will show another version of your Adsense code.</p>
<p><code><font color="#000000"><br />
<font color="#0000BB">&lt;?php</p>
<p></font><font color="#007700">if&nbsp;(</font><font color="#0000BB">date</font><font color="#007700">(</font><font color="#DD0000">"z"</font><font color="#007700">)%</font><font color="#0000BB">2&nbsp;</font><font color="#007700">&lt;&nbsp;</font><font color="#0000BB">1</font><font color="#007700">)&nbsp;{</p>
<p></font><font color="#0000BB">?&gt;</p>
<p></font>&lt;!--&nbsp;Google&nbsp;Adsense&nbsp;#1&nbsp;goes&nbsp;here&nbsp;--&gt;</p>
<p><font color="#0000BB">&lt;?php</p>
<p></font><font color="#007700">}&nbsp;else&nbsp;{</p>
<p></font><font color="#0000BB">?&gt;</p>
<p></font>&lt;!--&nbsp;Google&nbsp;Adsense&nbsp;#2&nbsp;goes&nbsp;here&nbsp;--&gt;</p>
<p><font color="#0000BB">&lt;?php</p>
<p></font><font color="#007700">}</p>
<p></font><font color="#0000BB">?&gt;</font><br />
</font><br />
</code><br />
The most important part is the &#8220;if&#8221; statement, the code that checks whether today is an even or an odd numbered day.</p>
<p>In this <a href="http://us2.php.net/manual/en/function.date.php" target="_blank">PHP</a>  example the &#8220;z&#8221; represents the day of the year. </p>
<p>The date(&#8221;z&#8221;)%2 < 1 checks if today's number modulus 2 is less than one (which asks if today is an even numbered day), then do whatever is between the set of squirly braces - the "{" and "}" - else do whatever is between the next set of squirly braces.</p>
<p>The whatever I am referring to is display your Adsense code.  </p>
<p>By the way, there is nothing to prevent your from putting anything between the squirly braces.</p>
<p>There are some limitations to be aware of for sure.  Namely, you still need to generate two versions of the Adsense javascript code to include on your web site.  Also, if you want to get a better understanding of your results, you will need to download the results and group the data by even or odd day.  I don&#8217;t even know if Google allows for an easy way to get your Adsense results &#8211; I&#8217;m not even going to login to find out.</p>
<p>But, for a quick and dirty way of split testing your Adsense results, this PHP code will do the trick.</p>
<p>Extra: You don&#8217;t have to just use the day of the year (&#8221;w&#8221;), you could just as easily use day of the week (&#8221;w&#8221;), hour of the day (&#8221;G&#8221;), day of the month (&#8221;j&#8221;) &#8211; or some combination.  Whatever your mind can conceive and believe it can &#8230; oops, that&#8217;s for a different topic <img src='http://www.davewooding.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img src="http://feeds.feedburner.com/~r/DaveWooding/~4/laOkbV_Q5sQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.davewooding.com/split-testing-google-adsense-the-php-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.davewooding.com/split-testing-google-adsense-the-php-way/</feedburner:origLink></item>
		<item>
		<title>Black Is Back</title>
		<link>http://feedproxy.google.com/~r/DaveWooding/~3/XIu-ilwXHu0/</link>
		<comments>http://www.davewooding.com/black-is-back/#comments</comments>
		<pubDate>Sat, 30 May 2009 00:34:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[adwords]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/?p=37</guid>
		<description><![CDATA[Notice anything wrong here?

So do I , so do I.
That image you see above has been &#8220;spoofed&#8221; &#8211; its a fake.
Sure, I took it from my account, then I threw a little javascript at it and manipulated the appearance.  Makes you think I took the first half of the month off from promoting products, [...]]]></description>
			<content:encoded><![CDATA[<h2>Notice anything wrong here?</h2>
<p><img src="http://davewooding.com/images/spoof.png" alt="spoof" /></p>
<p>So do I , so do I.</p>
<p>That image you see above has been &#8220;spoofed&#8221; &#8211; its a fake.</p>
<p>Sure, I took it from my account, then I threw a little javascript at it and manipulated the appearance.  Makes you think I took the first half of the month off from promoting products, doesn&#8217;t it?</p>
<p>It better not.</p>
<p>Hopefully, you don&#8217;t fall for this type of hype that promises the moon &#8230; and delivers nothing but hot air.</p>
<h3>That&#8217;s why I am pleased to say &#8220;Black is Back&#8221;</h3>
<p>The <a href="http://www.davewooding.com/black.php" rel="nofollow">Affiliate Black Book</a> is available for purchase.</p>
<p>Like a breath of fresh air &#8211; if you want to get into the mind of a genius that shows you some killer strategies, then I suggest you purchase this now.</p>
<p>I&#8217;ll even &#8220;incentivize&#8221; you, I&#8217;ll provide access to one of my killer little scripts that makes it easy for your to increase your sales &#8230; and does so in &#8220;X&#8221; fashion.</p>
<p>Purchase the <a href="http://www.davewooding.com/black.php" rel="nofollow">Affiliate Black Book</a> through my link, hit the <a href="http://www.daveemail.com/support/" rel="nofollow">CONTACT</a> page and let me know you purchased (let me know your receipt number) and I&#8217;ll give you access to this script.</p>
<hr />
<p>Heck, even if you don&#8217;t purchase, lets have a little fun here.</p>
<p>The first person that replies in the comment section and knows EXACTLY what this script does will get access to the script regardless.</p>
<p>I&#8217;ll give you a little hint &#8230; most affiliate programs use these?</p>
<p>Lets see how the comments go, I&#8217;ll add hints as needed.</p>
<img src="http://feeds.feedburner.com/~r/DaveWooding/~4/XIu-ilwXHu0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.davewooding.com/black-is-back/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.davewooding.com/black-is-back/</feedburner:origLink></item>
		<item>
		<title>Adding Articles To Your Datafeed Site</title>
		<link>http://feedproxy.google.com/~r/DaveWooding/~3/nLKW7GKPGZE/</link>
		<comments>http://www.davewooding.com/adding-articles-to-your-datafeed-site/#comments</comments>
		<pubDate>Sat, 30 May 2009 00:33:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[datafeed]]></category>
		<category><![CDATA[garden]]></category>

		<guid isPermaLink="false">http://www.davewooding.com/?p=35</guid>
		<description><![CDATA[Adding articles to your new affiliate gardening site involves uploading a text file to your web site.
The important points are:
- Your article needs to be a text file, for instance, &#8220;rose-bushes.txt&#8221;.
- The text file needs to be named EXACTLY like you want it to appear on your site.  If your text file is &#8220;rose-bushes.txt&#8221;, [...]]]></description>
			<content:encoded><![CDATA[<p>Adding articles to your new <strong>affiliate gardening site</strong> involves uploading a text file to your web site.</p>
<p>The important points are:</p>
<p>- Your article needs to be a text file, for instance, &#8220;rose-bushes.txt&#8221;.</p>
<p>- The text file needs to be named EXACTLY like you want it to appear on your site.  If your text file is &#8220;rose-bushes.txt&#8221;, then the page that gets displays your article on your site is &#8220;http://www.example.com/rosh-bushes.html&#8221;.</p>
<p>- The text file needs to be in the same directory as THE SCRIPT.</p>
<p>This short 3 minute video shows you how to upload a text file using a FTP program (I use SmartFTP)</p>
<p>Click here to see the &#8230; CLICK HERE >>> <a href="http://s3.amazonaws.com/davewooding_articles/index.html">article video</a>.</p>
<p>And as an added bonus, the last 30 seconds include some music from the a movie of the 1970s.  Enjoy.</p>
<img src="http://feeds.feedburner.com/~r/DaveWooding/~4/nLKW7GKPGZE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.davewooding.com/adding-articles-to-your-datafeed-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.davewooding.com/adding-articles-to-your-datafeed-site/</feedburner:origLink></item>
	</channel>
</rss>
