<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Python Google AdSense for Mobile code</title>
	<atom:link href="http://tripleodeon.com/2009/03/python-google-adsense-for-mobile-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://tripleodeon.com/2009/03/python-google-adsense-for-mobile-code/</link>
	<description>Living the mobile dream</description>
	<lastBuildDate>Fri, 03 Feb 2012 11:39:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: John Boxall</title>
		<link>http://tripleodeon.com/2009/03/python-google-adsense-for-mobile-code/comment-page-1/#comment-26</link>
		<dc:creator>John Boxall</dc:creator>
		<pubDate>Mon, 28 Sep 2009 16:45:52 +0000</pubDate>
		<guid isPermaLink="false">http://tripleodeon.com/?p=162#comment-26</guid>
		<description>Hey James,

I hacked out an updated AdSense snippet from the latest code available from Google:
http://github.com/johnboxall/django-mobileadsense

urlopen can be made a little safer by wrapping it in a timeout!
http://github.com/johnboxall/django-mobileadsense/blob/master/adsense.py#L71

Cheers,

John</description>
		<content:encoded><![CDATA[<p>Hey James,</p>
<p>I hacked out an updated AdSense snippet from the latest code available from Google:<br />
<a href="http://github.com/johnboxall/django-mobileadsense" rel="nofollow">http://github.com/johnboxall/django-mobileadsense</a></p>
<p>urlopen can be made a little safer by wrapping it in a timeout!<br />
<a href="http://github.com/johnboxall/django-mobileadsense/blob/master/adsense.py#L71" rel="nofollow">http://github.com/johnboxall/django-mobileadsense/blob/master/adsense.py#L71</a></p>
<p>Cheers,</p>
<p>John</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://tripleodeon.com/2009/03/python-google-adsense-for-mobile-code/comment-page-1/#comment-4</link>
		<dc:creator>James</dc:creator>
		<pubDate>Wed, 17 Jun 2009 09:54:24 +0000</pubDate>
		<guid isPermaLink="false">http://tripleodeon.com/?p=162#comment-4</guid>
		<description>Hi,

This is a straightforward function that returns HTML for direct insertion into your code. Just made sure it&#039;s somewhere in you AppEngine app so that your page logic can see it.

In its crudest form, you could just do

self.response.out.write(google_ad(...))

from within your RequestHandler. But if you&#039;re using templates or something, I suppose there are far more elegant ways.

The colours are handled slightly strangely in the original ad sense code, but I think if you just add the following parameters into the list at the top of the function (with #RRGGBB values), it should work:

&#039;color_border&#039;
&#039;color_bg&#039;
&#039;color_link&#039;
&#039;color_text&#039;
&#039;color_url&#039;

(Haven&#039;t tried it though)</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>This is a straightforward function that returns HTML for direct insertion into your code. Just made sure it&#8217;s somewhere in you AppEngine app so that your page logic can see it.</p>
<p>In its crudest form, you could just do</p>
<p>self.response.out.write(google_ad(&#8230;))</p>
<p>from within your RequestHandler. But if you&#8217;re using templates or something, I suppose there are far more elegant ways.</p>
<p>The colours are handled slightly strangely in the original ad sense code, but I think if you just add the following parameters into the list at the top of the function (with #RRGGBB values), it should work:</p>
<p>&#8216;color_border&#8217;<br />
&#8216;color_bg&#8217;<br />
&#8216;color_link&#8217;<br />
&#8216;color_text&#8217;<br />
&#8216;color_url&#8217;</p>
<p>(Haven&#8217;t tried it though)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sagey</title>
		<link>http://tripleodeon.com/2009/03/python-google-adsense-for-mobile-code/comment-page-1/#comment-3</link>
		<dc:creator>sagey</dc:creator>
		<pubDate>Fri, 22 May 2009 13:03:25 +0000</pubDate>
		<guid isPermaLink="false">http://tripleodeon.com/?p=162#comment-3</guid>
		<description>Hello James,

I&#039;d appreciate your help implementing this script on my mobile website. its running on appengine using the webapp framework.

i&#039;m a complete python beginner so i&#039;m unsure how to implement your code on a non django site.

i&#039;d also be interested to know if its possible to sort the custom colour functionality?
i&#039;d really like my ads to display inline with the design of my site.

Any help would be appreciated.

thanks in advance</description>
		<content:encoded><![CDATA[<p>Hello James,</p>
<p>I&#8217;d appreciate your help implementing this script on my mobile website. its running on appengine using the webapp framework.</p>
<p>i&#8217;m a complete python beginner so i&#8217;m unsure how to implement your code on a non django site.</p>
<p>i&#8217;d also be interested to know if its possible to sort the custom colour functionality?<br />
i&#8217;d really like my ads to display inline with the design of my site.</p>
<p>Any help would be appreciated.</p>
<p>thanks in advance</p>
]]></content:encoded>
	</item>
</channel>
</rss>

