Skip to main content

DataSentics adform 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.1.tar.gz (6.3 kB view hashes)

Uploaded Source

Built Distribution

odap_adform_downloader-1.0.1-py3-none-any.whl (6.6 kB view hashes)

Uploaded Python 3

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