views:

141

answers:

2

Hi guys, good morning :), somebody know how use Openx (php app) with Django?, i need to use openx or similar soft for ads.

Thanks :)

+1  A: 

You can implement Openx using javascript, so as long as you run Openx on a php server, that should be easy.

Header, something like this:

<script type='text/javascript' src='http://something.here/delivery/spcjs.php?id=1&amp;amp;block=1'&gt;&lt;/script&gt;

And then, something like this where you want to put you ad.

<script type='text/javascript'>
    OA_show(1);
</script>
<noscript>
    <a target='_blank' href='http://something.here/delivery/ck.php?n=112bda3'&gt;
    <img border='0' alt='' src='http://something.here/delivery/avw.php?zoneid=1&amp;amp;n=112bda3' /></a>
</noscript>

OpenX generates all this code for you.

Tomsky
Thanks Tomsky :)
Asinox
+1  A: 

Here's a project that gives you API integration. If you only want to serve ads, you don't need it though, you just have to paste the javascript provided by OpenX.

Mauricio Scheffer
Thanks Mauricio
Asinox