Skip to main content

Django Admob Server-Side Verification (SSV)

A Django app providing a view that handles Admob Server-Side Verification callbacks. Successfull verifications trigger a custom signal. Separate apps may listen to that signal and reward the user based on the information received via the callback.

Taken from the Admob SSV documentation:

Server-side verification callbacks are URL requests, with query parameters expanded by Google, that are sent by Google to an external system to notify it that a user should be rewarded for interacting with a rewarded video ad. Rewarded video SSV (server-side verification) callbacks provide an extra layer of protection against spoofing of client-side callbacks to reward users.

Requirements

Installation

pip install django-admob-ssv

Configuration

  1. Add a path for the django_admob_ssv.views.admob_ssv view to your urlpatterns.
from django.urls import path
from django_admob_ssv.views import admob_ssv

urlpatterns = [
    path('admob-ssv/', admob_ssv),
]
  1. Listen to the django_admob_ssv.signals.valid_admob_ssv signal.
from django.dispatch import receiver
from django_admob_ssv.signals import valid_admob_ssv

@receiver(valid_admob_ssv)
def reward_user(sender, query, **kwargs):
    ad_network = query.get('ad_network')
    ad_unit = query.get('ad_unit')
    custom_data = query.get('custom_data')
    # ...

Take a look at this list of all SSV callback parameters.

Also make sure you connect your receiver properly, otherwise it won't get called. (Take a look at the "Where should this code live?" box).

Examples

Take a look at the "Configuration" section above and the provided example_project.

Metadata

Release files for django-admob-ssv 1.0.2

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-admob-ssv 1.0.2
File Size Uploaded Provenance Actions
django-admob-ssv-1.0.2.tar.gz 3.9 kB Without provenance Details for django-admob-ssv-1.0.2.tar.gz

Release files / django-admob-ssv-1.0.2.tar.gz

Download URL django-admob-ssv-1.0.2.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
80b13efeb2d8064ab31d4da2081c9ffc0128235c8884f3e7db95ee63fe928a33
BLAKE2b-256 checksum
How to use checksums
f53aeba46ff9a7786d2595e7a17de4eb72e7fa021d669ab26116030bdd95f493
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Security for django-admob-ssv 1.0.2

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.

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