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.2.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.2-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_metricks-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 8c853cc13ee5b92d4b046845fd02b7ed9c215e340bf3b6117107a2fb3c369f20
MD5 264e1f4d3e3f70fc5d12782745e4febc
BLAKE2b-256 afbd434ded2ea42dce637227da01c58a42fc5f3f88313a986d688621696a22f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py_metricks-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ee3f5bde7561971b7c367320d70fc99585480cbe59b119f01aeda377bd44f111
MD5 ecdcf0d312d5d187d84a9dc9c06a3f4e
BLAKE2b-256 835f4fe106b2b20408fc376a0f9eaacd933f90d0ebc2a92efd904a35aec760bb

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