Skip to main content

DataSentics adform zip downloader

Project description

DataSentics Python package for downloading adform data

This package is distributed under the "DataSentics SW packages Terms of Use." See license

Downloads data from adform in zip files

You need to specify:

  • Credentials (name, setup_id, client_id, secret)
  • Optionally you can specify scope, which data from Adform you would like to download, dates and file directory
$ pip install adform-downloader

from adform.Client import Client, FilePersistingHandler
from adform.Credentials import Credentials

setup_id = ""
client_id = ""
client_secret = ""

# optionally can be added into credentials. Written with default values
file = "/tmp/" # for state file
scopes = [
        "https://api.adform.com/scope/buyer.masterdata",
        "https://api.adform.com/scope/eapi",
        "https://api.adform.com/scope/buyer.rtb.lineitem",
    ]
tables = ["Click", "Event", "Impression", "Trackingpoint", "meta"]
start_day=today-8days, # format dd-mm-yyyy
end_day=today,
landing_file = "/tmp/" # for data, can be same as file

persisting_handler = FilePersistingHandler(location=file)
credentials = Credentials(setup_id=setup_id, client_id=client_id, client_secret=client_secret)
client = Client(credentials, persisting_handler)
client.download_masterdata_files_by_id()

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

odap-adform-downloader-1.0.3.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

odap_adform_downloader-1.0.3-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file odap-adform-downloader-1.0.3.tar.gz.

File metadata

  • Download URL: odap-adform-downloader-1.0.3.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.2 Darwin/21.4.0

File hashes

Hashes for odap-adform-downloader-1.0.3.tar.gz
Algorithm Hash digest
SHA256 99543ec9256955d6bd546315849112780f1ab1ee53e307d693110ab22572397a
MD5 3a4c390971819d774ca7d10b7691fcf6
BLAKE2b-256 66f7d4e8efbdc9bc31c062ba906e079ed29c50a19f49afc94e220664031e7197

See more details on using hashes here.

File details

Details for the file odap_adform_downloader-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for odap_adform_downloader-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2b24f646c41f1e49dc7c09e3f08986d75d879d979b934a1854764fa940b7d1bb
MD5 13a814f700c782b195d6933c630a25e0
BLAKE2b-256 7f97c719792c986c6a773c39f207deb226ae2d0bb37f6189cac02ed2d853ff64

See more details on using hashes here.

Supported by

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