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

Metadata

Release files for django-google-dfp 0.1a2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-google-dfp 0.1a2
File Size Uploaded Provenance
django-google-dfp-0.1a2.zip 7.6 kB Without provenance Details

Release files / django-google-dfp-0.1a2.zip

Download URL django-google-dfp-0.1a2.zip
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
427d5b0f72988cdfe1ac923e5cc0fd027eb4178b8aac07e050d53f24bd9c2ba6
BLAKE2b-256 checksum
How to use checksums
82e4cad4d79f60acc585dae392136eae53fffcea3114cb0515b3095d06948982
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-google-dfp 0.1a2

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.

Release history Release notifications | RSS feed

This release
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