Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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>
```

Download files

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

Source Distribution

django-google-dfp-0.1a2.zip (7.6 kB view details)

Uploaded Source

File details

Details for the file django-google-dfp-0.1a2.zip.

File metadata

File hashes

Hashes for django-google-dfp-0.1a2.zip
Algorithm Hash digest
SHA256 427d5b0f72988cdfe1ac923e5cc0fd027eb4178b8aac07e050d53f24bd9c2ba6
MD5 39cb49820fa36be117b0644d1d68d1d7
BLAKE2b-256 82e4cad4d79f60acc585dae392136eae53fffcea3114cb0515b3095d06948982

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1a2 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page