Skip to main content

Simplification of the connection to the Admetricks REST API in Python.

Project description

Marketing Science | Admetricks library

Developed by Carlos Trujillo, Marketing Scientist.

Introduction

If you are part of the marketing world you have surely heard about Admetricks, Comscore, Lotame or Adcuality. Tools that provide us with data which we can use to carry out different types of studies to many of the phenomena that we face in this area.

Every day, the adoption of technology is more important than ever in order to take our analysis a little beyond the conventional. This can represent a very accomplished challenge, because many of the tools that we use every day do not have their connectors enabled for everyone. users, resulting in not being able to do large data downloads.

And those users who manage to obtain a connector to any of these platforms, a great way awaits them to understand the connector, its operability and results, with the little information that exists on the internet.

Therefore, I decided to start small projects where I will be creating pseudo packages, for those who are in the world of marketing and programming. Waiting to be able to shorten the adaptation curve of some of the professionals that we meet here.

This is my second package in this project. I present PyMetricks, a simplification of the connection to the Admetricks REST API in Python.

I await your feedback!

pip install py_metricks

from py_admetricks.pymetricks import admetricks_api

Initially the package has two methods, where each one returns a DataFrame. The main method generates a report in Pandas format where you can see all the data obtained by the Admetricks REST API.

admetricks = admetricks_api(username = 'your_mail@enterprise.com', password = 'admetricks_password')
report = admetricks.reports_generator(country='chile', since_date='2021-05-31', device='mobile', ad_type='display')
report.head(10)

#country options 'chile','colombia','argentina','brasil','españa','peru','mexico','honduras','puerto rico','panama','uruguay','costa rica',
#                 'guatemala','ecuador','venezuela','nicaragua','salvador','republica dominicana' or 'paraguay'

The second package obtains all the images captured by Admetricks within a certain period, in the raw format, therefore they will see a complete capture of the entire screen and not just the ad.

admetricks = admetricks_api(username = 'your_mail@enterprise.com', password = 'admetricks_password')
screenshots = admetricks.screenshots_data(country = 'chile', site = 'facebook', since_date = '2021-01-08', until_date = '2021-01-08')
screenshots.head(10)

Very soon, automatic learning modules will be added to exploit the information we have within the platform.

What do you think is the best module we can start with?

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

py_metricks-0.0.3.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_metricks-0.0.3-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file py_metricks-0.0.3.tar.gz.

File metadata

  • Download URL: py_metricks-0.0.3.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for py_metricks-0.0.3.tar.gz
Algorithm Hash digest
SHA256 8449a646cc1cf3ce777f7b911d32abd7f123fdb15e7d3e01fecb18d5a3fda268
MD5 04369192dbb8fa86dccc9e5c67598703
BLAKE2b-256 4e6367d20857ed81588b8a2dd95bedee710a2422a88a67994c7405f21dd6f19c

See more details on using hashes here.

File details

Details for the file py_metricks-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: py_metricks-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for py_metricks-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 865568be54f9e123d63e01fe33b348037ada9cb3c5592905c9a4e6ca89a3bb2d
MD5 e660498d675d00230e236dc4d3aa5449
BLAKE2b-256 9ac42471a7a9760f64b936d9c20b9ffc6bb72cf64b8ac556581a17bbf000ff98

See more details on using hashes here.

Supported by

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