<?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>Nicolas Kuttler &#187; targeting</title>
	<atom:link href="http://www.nkuttler.de/tag/targeting/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nkuttler.de</link>
	<description>WordPress Services, IT Services</description>
	<lastBuildDate>Wed, 28 Jul 2010 23:49:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Preview Openx geotargeting for different countries</title>
		<link>http://www.nkuttler.de/2009/01/30/preview-openx-geotargeting-for-different-countries/</link>
		<comments>http://www.nkuttler.de/2009/01/30/preview-openx-geotargeting-for-different-countries/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 10:20:55 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[advertising]]></category>
		<category><![CDATA[geotargeting]]></category>
		<category><![CDATA[marketing]]></category>
		<category><![CDATA[openx]]></category>
		<category><![CDATA[targeting]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de//?p=548</guid>
		<description><![CDATA[Openx is a great open source ad server. If you have more than one website or simply want a flexible system for targeting your ads to the right audience, it&#8217;s well worth a look. One of many great features is the built-in Geotargeting plugin. Of course, after adding local ads to your database, you want [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.openx.org/">Openx</a> is a great open source ad server. If you have more than one website or simply want a flexible system for targeting your ads to the right audience, it&#8217;s well worth a look. One of many great features is the built-in <a href="http://www.openx.org/en/support/geotargeting/">Geotargeting</a> plugin.<span id="more-548"></span></p>
<p>Of course, after adding local ads to your database, you want to have a look at what the page looks like for a visitor from a different country. It took me some time to figure out a way. But I found a good method for getting a preview for a different country. In openx version 2.6 you can edit the file <tt>/plugins/geotargeting/GeoIP/GeoIP.delivery.php</tt> at line 141. At the end of the <tt>OA_Geo_GeoIP_unpackCookie</tt> function, add something like</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REMOTE_ADDR'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'HERE.IS.YOUR.IP'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">// insert your IP</span>
        <span style="color: #000088;">$aGeoInfo</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'country_code'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'ES'</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// insert country code</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$aGeoInfo</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>That&#8217;s all, no proxies or messing with your tags or sites required. I hope a similar feature will be added to the plugin sometime in the future. Oh, and I&#8217;m not quite sure what would happen if cookies are disabled, but who cares, this is just for testing.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2009/01/30/preview-openx-geotargeting-for-different-countries/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
