Skip to main content

No project description provided

Project description

ironsource_api_python

Test And Lint

Installation

This module is installed via pip:

pip install ironsrc_mobile_api

Simple Example:

import os
from ironsource_api.ironsource_api import IronSourceAPI
from ironsource_api.promote_api import Metrics, Breakdowns

ironsrc_api = IronSourceAPI()

ironsrc_api.set_credentials(API_USER, API_TOKEN,API_SECRET)

#Get Monetization Data
res = ironsrc_api.monetize_api().get_monetization_data(start_date='2020-01-01', end_date='2020-01-01')


#Get Advertiser Statistics
bytes_io = ironsrc_api.promote_api().get_advertiser_statistics('2020-10-03','2020-10-04',
        [Metrics.Impressions,Metrics.Clicks,Metrics.Installs],
        [Breakdowns.Application,Breakdowns.Day],response_format='csv')

line = bytes_io_r.readline()

while len(line) > 0:
    print(line)
    line = bytes_io_r.readline()

bytes_io_r.close()

Authentication

Before starting to use the API make sure to get the credentials from ironSource dashboard. Account Cred

And set the Access Key, Secret Key and Refresh Token:

set_credentials

def set_credentials(user: str, token: str, secret: str)

sets credentials for the APIs


## Modules

Contributing:

Please follow contribution guide

Dependencies

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

ironsource-mobile-api-1.1.0.tar.gz (32.5 kB view details)

Uploaded Source

File details

Details for the file ironsource-mobile-api-1.1.0.tar.gz.

File metadata

  • Download URL: ironsource-mobile-api-1.1.0.tar.gz
  • Upload date:
  • Size: 32.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for ironsource-mobile-api-1.1.0.tar.gz
Algorithm Hash digest
SHA256 97b3483b179fc47430e8fb4714c195bd204a7f7f9cbcba49d5c14bfd0ddb3ace
MD5 0281d8e007f9eebfee447aceea53ef37
BLAKE2b-256 38cee20c36494ec08a0b4da9834f8100656de66f514fffc2b9c15e5d53dffdb2

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