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 | x |
| Segments | Get | x |
| Segments | Update | x |
| Segments | Delete | x |
| Trait Folder | Get | x |
| Segment Folder | Get | x |
| 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 | - |
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])
Metadata
Release files for adobe-aam 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| adobe_aam-0.0.9.tar.gz | 12.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| adobe_aam-0.0.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.5 kB
Release files / adobe_aam-0.0.9.tar.gz
| Download URL | adobe_aam-0.0.9.tar.gz |
|---|---|
| Size | 12.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
69c36faa5ff6cce1e5acd81f20fbaf484b24021b74688bfdf0f766f90372c0e5
|
|
BLAKE2b-256 checksum How to use checksums |
308ab270398f5c294e84b18bc6f1ce6bc3312a1560d0077a0ed5c1f2b4171935
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / adobe_aam-0.0.9-py3-none-any.whl
| Download URL | adobe_aam-0.0.9-py3-none-any.whl |
|---|---|
| Size | 17.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bb2537f6e2aa349dd6781118f272bc8974fb0a9a4c66085df5982c5fdc907720
|
|
BLAKE2b-256 checksum How to use checksums |
89e7752f1b991fd4cb50d6fea3caa8c384415dd8e0ea73fd22c1cb1dedaec399
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for adobe-aam 0.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.