Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Template tags for Google DFP.

Project Description
Django Google DFP
=======================

Django Google DFP provides template tags for inserting [Google DFP](http://www.google.com/dfp) ad tags.

Installation
------------

Run `pip install django-google-dfp`

Add `google_dpf` to your `INSTALLED_APPS` setting:

```python
INSTALLED_APPS = (
...
'google_dfp',
)
```

Template Tags
-------------

###ad_header
Inserts the JavaScript for serving Google DFP ads.
*This must go inside the head*


###ad_tag
Inserts the code where the ad will display. It takes an ad unit as an argument. I needs to be in the format `[identifier]_[width]x[height]`.


```html
{% load dfp_tags %}
<html>
<head>
<title>My Site</title>
{% ad_header %}
</head>
<body>
<h1>My Site</h1>
{% ad_tag 'MYSITE_728x90' %}
<p>My site's content.</p>
{% ad_tag 'MYSITE_300x200' %}
</body>
</html>
```
Release History

Release History

This version
History Node

0.1a2

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-google-dfp-0.1a2.zip (7.6 kB) Copy SHA256 Checksum SHA256 Source Nov 2, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting