Skip to main content

A small python module for the AdMob API

Project description

You can view all examples on using the module at:

**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']
print token['errors']

Get all sites and stats
sites ='site')
if len(sites['errors']) == 0:
print sites['data']
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']
print stats['errors']

Project details

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 hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page