Skip to main content

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()

Metadata

Release files for odap-adfrom-downloader 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odap-adfrom-downloader 1.0.1
File Interpreter ABI Platform
odap_adfrom_downloader-1.0.1-py3-none-any.whl Python 3 none any Details

Release files / odap_adfrom_downloader-1.0.1-py3-none-any.whl

Download URL odap_adfrom_downloader-1.0.1-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
56e3ca394968306d8a43b0b5f1a1d5191d96fd1812ac9add14ac78b8afe06aed
BLAKE2b-256 checksum
How to use checksums
42707cbef97be8ead9258cc59f8cbe8bcfa11c80a982ea072bfeb4bbbc5aeb23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.7.3 Linux/5.11.0-1028-azure

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

0.9.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page