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!

DFP implementation for Django

Project Description

Django DFP

App that provides tags to fetch Google DFP ads.

Overview

Google provides server side adds via its DFP service. This product is inspired by the code at http://support.google.com/dfp_sb/bin/answer.py?hl=en&answer=1651549. To keep the Django implementation as simple as possible this product changes the order of the Javascript from that page.

Installation

  1. Install or add django-dfp to your Python path.
  2. Add dfp to your INSTALLED_APPS setting.

Usage

Load dfp_tags in your template with {% load dfp_tags %}. Call { %dfp_footer %} once near the end of your document body. You would typically call it just before the closing body tag.

An example tag is

{% dfp_tag “/1234/travel” 300 250 interests=”sports,music” position=”top” color=variable foo=bar %}

String values are comma delimited. Note the lack of spaces around the comma. Both keys and values can be variables.

You may call as many tags as you want. See http://support.google.com/dfp_sb/bin/answier.py?hl=en&answer=1651549 for more examples.

Authors

Praekelt Foundation

  • Hedley Roos

Changelog

0.4.1

  1. Fix error in manifest.

0.4

  1. Move javascript to a template so it can be customized.

0.3.3

  1. Change Django to django in setup.py.

0.3.2

  1. Republish slotRenderEnded event as DFPSlotRenderEnded.

0.3.1

  1. Allow targeting keys to be variables.

0.3

  1. Deprecate dfp_header.
  2. Allow arbitrary targeting keys and values to be passed to {% dfp_tag %} tag as key=value pairs.

0.2.2

  1. Scan for DFP div’s with javascript. In practice this means DFP ads are now cacheable.

0.2.1

  1. Do not use enableSingleRequest method anymore since it destroys the ability to do subsequent DFP loads via ajax.

0.2

  1. Async script loading has been re-added.
  2. Deprecate the dfp_header tag and replace with dfp_footer. DFP will now work across all browsers.

0.1.2

  1. Remove async script loading since it does not work.

0.1.1

  1. Allow variables to be passed as arguments to the template tag.

0.1

  1. First release.
Release History

Release History

This version
History Node

0.4.1

History Node

0.4

History Node

0.3.3

History Node

0.3.2

History Node

0.3.1

History Node

0.3

History Node

0.2.2

History Node

0.2.1

History Node

0.2

History Node

0.1.2

History Node

0.1.1

History Node

0.1

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_dfp-0.4.1-py2.7.egg (7.5 kB) Copy SHA256 Checksum SHA256 2.7 Egg Apr 24, 2015
django-dfp-0.4.1.tar.gz (7.2 kB) Copy SHA256 Checksum SHA256 Source Apr 24, 2015

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