Skip to main content

DjAppodeal

Django application for Appodeal integration.

Install

  • Add ‘appodeal’ to INSTALLED_APPS

  • Add url(r’^/’, include(‘appodeal.urls’)), to urls.py

  • (optional) Add APPODEAL_SECRET_ANDROID to settings.py

  • (optional) Add APPODEAL_SECRET_IOS to settings.py

  • Add APPODEAL_REWARD_CREATE_HANDLER to settings.py

  • Run python manage.py migrate.

  • Add the callback URL in Appodeal “{https://example.com/reward/}?data1={data1}&data2={data2}”

Handler

It will be called with:

output:

A dict with the decrypted data from Appodeal

rewards:

A appodeal.Reward QuerySet with all the records with the same impression_id.

Should return a string that will be stored as result in the reward record.

If your handler fails the exception representation will be stored as the result.

output example

{
  'user_id': user_id,
  'amount': amount,
  'currency': currency,
  'impression_id': impression_id,
  'timestamp': timestamp,
  'hash': hash,
  'output': output
}

Run tests

./runtests.py

Build/Publish

python setup.py sdist bdist_wheel
twine upload dist/*

Metadata

Release files for appodeal 0.9.3

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

Source distribution (sdist)

Source distribution for appodeal 0.9.3
File Size Uploaded
appodeal-0.9.3.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for appodeal 0.9.3
File Interpreter ABI Platform
appodeal-0.9.3-py3-none-any.whl Python 3 none any Details

Total release size: 15.4 kB

Release files / appodeal-0.9.3.tar.gz

Download URL appodeal-0.9.3.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d7b3f32c02dfc0de62e04c82c76e026c7864a5845f2e01af786e8e3e556cb086
BLAKE2b-256 checksum
How to use checksums
901356f3c41ee87fa7806b5b438da7d5cfbfbc76b9098cda795acfbfb9b32dbc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / appodeal-0.9.3-py3-none-any.whl

Download URL appodeal-0.9.3-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6673de763019ca4c0a5e68ceadfb613690b4c9352ed2fb679dd6fe24612afd13
BLAKE2b-256 checksum
How to use checksums
2fa0d077427f17c5d3ad26bd5908da83b1afaffae1b813a01675dda4876c7016
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.9.3 This release

2 release files

0.9.2

2 release files

0.9.1

2 release files

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