Skip to main content

Adobe Audience Manager API Python Extension

Project description

Adobe Audience Manager - Python Extension

This is a Python wrapper for the Adobe Audience Manager API.

To get started Generate a JWT Authentication using Adobe IO

This package requires you to create a .json document with the following credential details: client ID, client secret, tech account ID, and organization ID. In a separate file, you also need generate a public/private key pair.

credentials.json:

{
    "client_id":"...",
    "client_secret": "...",
    "tech_acct_id": "...",
    "org_id": "..."
}

Once you have these documents, you can get install the package and login:

Terminal:

pip install adobe_aam

Python:

import adobe_aam as aam
aam.Login('path/to/credentials.json', 'path/to/private.key')

Your authentication token should be tied to a Product Profile, which controls the actions you can execute and the objects on which you can act. If you are unable to perform an action supported by this package, the error is likely due to a permissions issue within the credentials setup.

Here are some examples:

Python:

# Get traits by folder and sort
aam.Traits.get_many(folderId=12345, sortBy='createTime', descending=True)

# Get trait by sid
aam.Traits.get_one(sid=12345)

# Get traits by integration code and simplify resulting dataframe
aam.Traits.get_many(ic='code', condense=True)

# Get trait limits of account
aam.Traits.get_limits()

# Create traits from csv
aam.Traits.create_from_csv('path/to/traits_to_create.csv')

If you're new to Python and want to output the results of an AAM API call, you can try something like the following:

Python:

import pandas as pd
output = aam.Traits.get_one(sid=12345)
output.to_csv('path/to/your_aam_output.csv')

Coverage:

Every standard API call for AAM can be found on Swagger

Endpoint Action Coverage
Traits Create x
Traits Get x
Traits Update x
Traits Delete x
Segments Create -
Segments Get -
Segments Update -
Segments Delete -
Destinations Create -
Destinations Get -
Destinations Update -
Destinations Delete -
Derived Signals Create -
Derived Signals Get -
Derived Signals Update -
Derived Signals Delete -
Datasources Create -
Datasources Get -
Datasources Update -
Datasources Delete -
Trait Folder Create -
Trait Folder Get -
Trait Folder Update -
Trait Folder Delete -
Segment Folder Create -
Segment Folder Get -
Segment Folder Update -
Segment Folder Delete -

Custom reporting will be added according to roadmap. Examples:

# Get traits trends for all SIDs in a folder
aam.Reports.traits_trend(startDate="2021-02-21",
                         endDate="2021-02-23",
                         folderId=12345)

# Get traits trends for one SID
aam.Reports.traits_trend(startDate="2021-02-21",
                         endDate="2021-02-23",
                         sid=[12345])

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

adobe_aam-0.0.5.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

adobe_aam-0.0.5-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file adobe_aam-0.0.5.tar.gz.

File metadata

  • Download URL: adobe_aam-0.0.5.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for adobe_aam-0.0.5.tar.gz
Algorithm Hash digest
SHA256 89d7bb3cb7160029cdf4ecb2fefd5d575b2d64b3037ca08c23b0b36c73c20f77
MD5 dca33dd274fba106e6b3c0fea22d7008
BLAKE2b-256 b99f59294c92065a5540f71ea29f3457c9701ce6ade901aa23e71bba2516e150

See more details on using hashes here.

File details

Details for the file adobe_aam-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: adobe_aam-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for adobe_aam-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 95b403675bc5e72c5f78aeb79b6ffece173e1cfc1871b2d87b3dbfeb2bfda7ec
MD5 7c97b87b8ac452b725a84c51b3f95157
BLAKE2b-256 75be6af13298f4cab1578179374f9f3f6414f7e1bebac4bad05f8514ced74c15

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