<?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; advertising</title>
	<atom:link href="http://www.nkuttler.de/tag/advertising/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>Displaying a smaller banner in an Openx zone</title>
		<link>http://www.nkuttler.de/2009/02/27/displaying-a-smaller-banner-in-an-openx-zone/</link>
		<comments>http://www.nkuttler.de/2009/02/27/displaying-a-smaller-banner-in-an-openx-zone/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 13:35:10 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[advertising]]></category>
		<category><![CDATA[marketing]]></category>
		<category><![CDATA[openx]]></category>
		<category><![CDATA[usability]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de//?p=617</guid>
		<description><![CDATA[Did you ever want to chain a zone with smaller banners after a zone with big banners in Openx? This sounds like useful feature. We don&#8217;t live in the 90s anymore where every page had a pixel-precise table layout. The world has learned how to build fluid layouts. One the Advanced page of the admin [...]]]></description>
			<content:encoded><![CDATA[<p>Did you ever want to chain a zone with smaller banners after a zone with big banners in Openx? This sounds like useful feature. We don&#8217;t live in the 90s anymore where every page had a pixel-precise table layout. The world has learned how to build fluid layouts.<span id="more-617"></span><br />
One the <tt>Advanced</tt> page of the admin pages of a zone, there is this <i>If no banners from this zone can be delivered, try to&#8230;</i> setting. Openx should really let me decide which zone I want to pick from the <i>Display the selected zone instead</i> list. I want to see all zones in the list.<br />
Yes, there are workarounds, like using <tt>*x*</tt> sized zones, but why on earth should I create a new zone if I already have one that has exactly the ads I want to display?<br />
Well, here&#8217;s how to change it. If you want to have the full choice, edit <tt>/www/admin/zone-advanced.php</tt>. In version 2.6.3, simply add the following line after line 230:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$allowothersizes</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span></pre></div></div>

<p>Now, you get the full list in the dropdown.</p>
<p>Here&#8217;s a little more context:</p>

<div class="wp_syntax"><div class="code"><pre class="diff" style="font-family:monospace;">--- zone-advanced-orig.php      <span style="">2009</span>-02-02 07:<span style="">46</span>:<span style="">45.000000000</span> +0100
<span style="color: #888822;">+++ zone-advanced.php   <span style="">2009</span>-01-<span style="">21</span> <span style="">15</span>:<span style="">22</span>:<span style="">04.000000000</span> +0100</span>
<span style="color: #440088;">@@ -<span style="">228</span>,<span style="">6</span> +<span style="">228</span>,<span style="">7</span> @@</span>
     $doZones = OA_Dal::factoryDO<span style="">&#40;</span>'zones'<span style="">&#41;</span>;
&nbsp;
     $allowothersizes = $zone<span style="">&#91;</span>'delivery'<span style="">&#93;</span> == phpAds_ZoneInterstitial || $zone<span style="">&#91;</span>'delivery'<span style="">&#93;</span> == phpAds_ZonePopup;
<span style="color: #00b000;">+       $allowothersizes = true;</span>
     if <span style="">&#40;</span>$zone<span style="">&#91;</span>'width'<span style="">&#93;</span> != -<span style="">1</span> &amp;amp;&amp;amp; !$allowothersizes<span style="">&#41;</span> <span style="">&#123;</span>
         $doZones-&amp;gt;width = $zone<span style="">&#91;</span>'width'<span style="">&#93;</span>;
     <span style="">&#125;</span></pre></div></div>

<p>Kind of funny that this setting exists but isn&#8217;t exposed anywhere in the UI&#8230; Yes, it&#8217;s a quick hack, so test it before running it on anything in production. Works for me though.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2009/02/27/displaying-a-smaller-banner-in-an-openx-zone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
