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']

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-admob.tar.gz (18.9 kB view details)

Uploaded Source

File details

Details for the file python-admob.tar.gz.

File metadata

  • Download URL: python-admob.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for python-admob.tar.gz
Algorithm Hash digest
SHA256 20ed383444202839f8c8920c65684de17ccba3192276639deed5ad3fe767ca77
MD5 c0cc1cec7df9f9c9a778ba9a78030016
BLAKE2b-256 ebde78535f5b501c6f21163282e1d18f068313815090d8bd59e427b03c3dedb5

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page