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-adform-downloader 1.0.3

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

Source distribution (sdist)

Source distribution for odap-adform-downloader 1.0.3
File Size Uploaded
odap-adform-downloader-1.0.3.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for odap-adform-downloader 1.0.3
File Interpreter ABI Platform
odap_adform_downloader-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 12.9 kB

Release files / odap-adform-downloader-1.0.3.tar.gz

Download URL odap-adform-downloader-1.0.3.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
99543ec9256955d6bd546315849112780f1ab1ee53e307d693110ab22572397a
BLAKE2b-256 checksum
How to use checksums
66f7d4e8efbdc9bc31c062ba906e079ed29c50a19f49afc94e220664031e7197
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.2 Darwin/21.4.0

Release files / odap_adform_downloader-1.0.3-py3-none-any.whl

Download URL odap_adform_downloader-1.0.3-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b24f646c41f1e49dc7c09e3f08986d75d879d979b934a1854764fa940b7d1bb
BLAKE2b-256 checksum
How to use checksums
7f97c719792c986c6a773c39f207deb226ae2d0bb37f6189cac02ed2d853ff64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.2 Darwin/21.4.0

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

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