{ "info": { "author": "matlag", "author_email": "mlagace@janexsoftware.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: Freeware", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "You can view all examples on using the module at: https://github.com/mlagace/python-admob\r\n\r\n**Examples on how to use the python-admob module:**\r\n\r\nfrom admob import Admob\r\n\r\n\"\"\"\r\n\tBefore starting to use the API you need to generate an AdMob API Token.\r\n\"\"\"\r\nadmob = Admob('API KEY')\r\ntoken = admob.login(email='Email', password='API Password')\r\n\r\n\"\"\"\r\nGet and Set Token\r\n\"\"\"\r\nif len(token['errors']) == 0:\r\n admob.token = token['data']['token']\r\nelse:\r\n print token['errors']\r\n\r\n\"\"\"\r\nGet all sites and stats\r\n\"\"\"\r\nsites = admob.search('site')\r\nif len(sites['errors']) == 0:\r\n print sites['data']\r\nelse:\r\n print sites['errors']\r\n\r\nstats = admob.getstats(sites['data'][0]['id'], 'site', {'start_date':'2011-12-11','object_dimension':'site', 'time_dimension':'day', 'order_by[impressions]':'desc'})\r\nif len(stats['errors']) == 0:\r\n print stats['data']\r\nelse:\r\n print stats['errors']", "description_content_type": null, "docs_url": "https://pythonhosted.org/python-admob/", "download_url": "https://github.com/mlagace/python-admob", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://janexsoftware.com", "keywords": "admob", "license": "Copyright (c) 2011, JanexSoftware.com\r\nAll rights reserved.\r\n\r\nRedistribution and use in source and binary forms, with or without\r\nmodification, are permitted provided that the following conditions are met:\r\n * Redistributions of source code must retain the above copyright\r\n notice, this list of conditions and the following disclaimer.\r\n * Redistributions in binary form must reproduce the above copyright\r\n notice, this list of conditions and the following disclaimer in the\r\n documentation and/or other materials provided with the distribution.\r\n * Neither the name of the nor the\r\n names of its contributors may be used to endorse or promote products\r\n derived from this software without specific prior written permission.\r\n\r\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\r\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\r\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\r\nDISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY\r\nDIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\r\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\r\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\r\nON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\r\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.", "maintainer": "", "maintainer_email": "", "name": "python-admob", "package_url": "https://pypi.org/project/python-admob/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/python-admob/", "project_urls": { "Download": "https://github.com/mlagace/python-admob", "Homepage": "http://janexsoftware.com" }, "release_url": "https://pypi.org/project/python-admob/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "A small python module for the AdMob API", "version": "1.0.0" }, "last_serial": 797838, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "c0cc1cec7df9f9c9a778ba9a78030016", "sha256": "20ed383444202839f8c8920c65684de17ccba3192276639deed5ad3fe767ca77" }, "downloads": -1, "filename": "python-admob.tar.gz", "has_sig": false, "md5_digest": "c0cc1cec7df9f9c9a778ba9a78030016", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18944, "upload_time": "2011-12-13T21:02:17", "url": "https://files.pythonhosted.org/packages/eb/de/78535f5b501c6f21163282e1d18f068313815090d8bd59e427b03c3dedb5/python-admob.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c0cc1cec7df9f9c9a778ba9a78030016", "sha256": "20ed383444202839f8c8920c65684de17ccba3192276639deed5ad3fe767ca77" }, "downloads": -1, "filename": "python-admob.tar.gz", "has_sig": false, "md5_digest": "c0cc1cec7df9f9c9a778ba9a78030016", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18944, "upload_time": "2011-12-13T21:02:17", "url": "https://files.pythonhosted.org/packages/eb/de/78535f5b501c6f21163282e1d18f068313815090d8bd59e427b03c3dedb5/python-admob.tar.gz" } ] }