Adobe Audience Manager API

AAM API : importTraits and importSegments Methods

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 :

Leave a Reply

Your email address will not be published. Required fields are marked *