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
Install or add django-dfp to your Python path.
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.
Changelog
0.4.1
Fix error in manifest.
0.4
Move javascript to a template so it can be customized.
0.3.3
Change Django to django in setup.py.
0.3.2
Republish slotRenderEnded event as DFPSlotRenderEnded.
0.3.1
Allow targeting keys to be variables.
0.3
Deprecate dfp_header.
Allow arbitrary targeting keys and values to be passed to {% dfp_tag %} tag as key=value pairs.
0.2.2
Scan for DFP div’s with javascript. In practice this means DFP ads are now cacheable.
0.2.1
Do not use enableSingleRequest method anymore since it destroys the ability to do subsequent DFP loads via ajax.
0.2
Async script loading has been re-added.
Deprecate the dfp_header tag and replace with dfp_footer. DFP will now work across all browsers.
0.1.2
Remove async script loading since it does not work.
0.1.1
Allow variables to be passed as arguments to the template tag.
0.1
First release.
Metadata
Release files for django-dfp 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-dfp-0.4.1.tar.gz | 7.2 kB | Without provenance | Details for django-dfp-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_dfp-0.4.1-py2.7.egg | Legacy Egg format | - | - | Details for django_dfp-0.4.1-py2.7.egg |
Total release size: 14.7 kB
Release files / django-dfp-0.4.1.tar.gz
| Download URL | django-dfp-0.4.1.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
abee85479c9fddeb11784be0452d29f3ec35b4ec9b4b897d1d111afc8e55aac8
|
|
BLAKE2b-256 checksum How to use checksums |
e57bdcce10c6192402aed8e0907b1f5e8b69d007066768d9c45085c9ce95f8cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_dfp-0.4.1-py2.7.egg
| Download URL | django_dfp-0.4.1-py2.7.egg |
|---|---|
| Size | 7.5 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
f77e77ce00a5c9edaf4be41a321fe24a4dbe97e7a7dd589dc9fe47ebd6c16dc0
|
|
BLAKE2b-256 checksum How to use checksums |
c906383f301c4b86dd4501282ddcbe0fadd3ddbe5abc968a43bc9259920d54aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-dfp 0.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.