Skip to main content

Unofficial SDK for MobileAppTracking Service APIs

Project description

Configuration file contents:

[main]
api_key = YOUR_API_KEY

[export]
advertiser_id = YOUR_ADVERTISER_ID
timeout = 300  # seconde
delay = 30  # seconde
limit = 2000000

Using:

# -*- coding: utf-8 -*-
from umat import (
    AdvertiserReportCohortValues
    AdvertiserReportLogInstalls
)
from datetime import datetime


config_filename = 'config.ini'


log_endpoint = AdvertiserReportLogInstalls(config_filename)
log_endpoint.params.start_date = datetime(2016, 1, 10, 9)
log_endpoint.params.end_date = datetime(2016, 1, 10, 14)
log_endpoint.params.timezone = 'utc'
log_endpoint.params.fields = ['publisher_id', 'publisher.name', 'revenue_usd']
result_df = log_endpoint.get_dataframe()


cohort_endpoint = AdvertiserReportCohortValues(filename)
cohort_endpoint.params.end_date = datetime(2016, 1, 10)
cohort_endpoint.params.start_date = datetime(2016, 1, 10)
cohort_endpoint.params.timezone = 'UTC'
cohort_endpoint.params.fields = ['publisher_id', 'publisher.name', 'revenues_usd']
cohort_endpoint.params.update({
    'aggregation_type': 'cumulative',
    'cohort_type': 'install',
    'interval': 'year_day',
})
result_df = cohort_endpoint.get_dataframe()

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

umat-0.1.20.zip (15.4 kB view details)

Uploaded Source

File details

Details for the file umat-0.1.20.zip.

File metadata

  • Download URL: umat-0.1.20.zip
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for umat-0.1.20.zip
Algorithm Hash digest
SHA256 60ef02f13155cd330c5516c02f8c159fbaea306ee22b21ef96731cea6641af89
MD5 0c045a2d0255930ae41e7c6126265088
BLAKE2b-256 cbb676b98f81db3bf8c512baee2d6d44b621be9f91ab8fefcc536dec5fa6adac

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