Skip to main content
You can view all examples on using the module at: https://github.com/mlagace/python-admob

**Examples on how to use the python-admob module:**

from admob import Admob

"""
Before starting to use the API you need to generate an AdMob API Token.
"""
admob = Admob('API KEY')
token = admob.login(email='Email', password='API Password')

"""
Get and Set Token
"""
if len(token['errors']) == 0:
admob.token = token['data']['token']
else:
print token['errors']

"""
Get all sites and stats
"""
sites = admob.search('site')
if len(sites['errors']) == 0:
print sites['data']
else:
print sites['errors']

stats = admob.getstats(sites['data'][0]['id'], 'site', {'start_date':'2011-12-11','object_dimension':'site', 'time_dimension':'day', 'order_by[impressions]':'desc'})
if len(stats['errors']) == 0:
print stats['data']
else:
print stats['errors']

Release files for python-admob 1.0.0

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

Source distribution (sdist)

Source distribution for python-admob 1.0.0
File Size Uploaded
python-admob.tar.gz 18.9 kB Details

Release files / python-admob.tar.gz

Download URL python-admob.tar.gz
Size 18.9 kB
Tags Source
SHA-256 checksum
How to use checksums
20ed383444202839f8c8920c65684de17ccba3192276639deed5ad3fe767ca77
BLAKE2b-256 checksum
How to use checksums
ebde78535f5b501c6f21163282e1d18f068313815090d8bd59e427b03c3dedb5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file

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