On this article, we will see how to import your information within Adobe Audience Manager using this python API. Thanks to the importTraits and importSegments methods, you will be able to easily send your data frame of information to the platform.
This is very nice for bulk upload as you can make this works for hours (my record is 4h consecutive importing 35 K traits).
When to use these methods
When you have realized the different search and change that you wanted to do, you should end up with a data frame.
What is also possible is that you have created the traits and / or segments from scratch.
Then, if you load the data in a data frame, and if you used the correct column names, you can then pass this data frame for importing the traits and segments to Adobe Audience Manager.
The importTraits method
This methods contains 2 parameters that you need to fill, and also an optional parameter :
- actions : REQUIRED : 2 possibles actions :
- ‘create’ : Will create the list of traits
- ‘update’ : Will import the list of traits (work with sid)
- data : REQUIRED : dataframe of the traits you would like to create
- verbose : OPTIONAL : will print comments when specific number of rows reached
The importSegments method
This method works exactly the same way than the one before but with Segments data instead of Traits.
Parameters
- actions : REQUIRED : 2 possibles actions :
- ‘create’ : Will create the list of segments
- ‘update’ : Will import the list of segments (work with sid)
- data : REQUIRED : dataframe of the segments you would like to create
- verbose : OPTIONAL : will print comments when specific number of rows reached
On this series, you may want to read as well :
Article | Content |
Introduction & Requirements to AAM API | What is to know about the Adobe Audience API with Python |
importAccess method | How could you use this API wrapper with multiple accounts |
returnAudienceData method | The most important method of all, retrieving the data from Adobe Audience Manager |
The AudienceManagerData Class | Discover how this wrapper helps you to handle the data you have retrieved. |
importTraits and importSegments method | See how you can upload the data to Adobe Audience Manager through this API. |