AAM is throwing error 's.AudienceManagement.setup() is not a function' | Community
Skip to main content
Adobe Employee
February 16, 2022
Solved

AAM is throwing error 's.AudienceManagement.setup() is not a function'

  • February 16, 2022
  • 2 replies
  • 3485 views

Hi team,
I see s.AudienceManagement.setup() is not a function error as we have just upgraded app measurement and moved from custom library to managed by Adobe and trying to load AAM using AppMeasurement_Module_AudienceManagement JS with the function s.loadModule("AudienceManagement");because we want to load AAM conditionally. Do we have any updated AAM library to resolve this issue? 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Gokul_Agiwal

Hi @pranithakat 

In this case, have you tried the Adobe Audience Manager (DIL) extension that comes with latest DIL version 9.5. ( Note- This extension is not meant to be used for Server side forwarding)

Once you installed extension you need to setup the launch rule, add the condition for your domain where it needs to be loaded, and under the action you need to setup the action run custom code, that will give you basic example of sending data to audience manager. 

 

This extension added the basic AAM library code for you, however you need to send any data that you want from the page by using Submit and Signal methods and then you can create a trait in AAM. 

 

Hope this helps. 

2 replies

Gokul_Agiwal
Community Advisor
Community Advisor
February 16, 2022

Hi @pranithakat 

I believe you're using Adobe Launch (now called, Data Collection) for your implementation. 

 

When you're using the option Managed the Library for me which is in Adobe Analytics extension, in the same extension you can see the configuration settings for Audience Manager which share Analytics data with Audience manager. 

 

Now, when you say you need to load the AAM conditionally, what condition?  

Adobe Employee
February 16, 2022

@gokul_agiwal Condition is to load AAM module only for few domains with container Id set as 1 or 2 which is coming from our datalayer.

Adobe Employee
February 16, 2022

Hi @pranithakat 

In this case, have you tried the Adobe Audience Manager (DIL) extension that comes with latest DIL version 9.5. ( Note- This extension is not meant to be used for Server side forwarding)

Once you installed extension you need to setup the launch rule, add the condition for your domain where it needs to be loaded, and under the action you need to setup the action run custom code, that will give you basic example of sending data to audience manager. 

 

This extension added the basic AAM library code for you, however you need to send any data that you want from the page by using Submit and Signal methods and then you can create a trait in AAM. 

 

Hope this helps. 


Thanks @gokul_agiwal , it is helpful and this was my next option. Can you confirm if we don't have any  updated AppMeasurement_Module_AudienceManagement library which I can just replace instead of going with new implementation.

PratheepArunRaj
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
February 16, 2022

Dear Pranithakat,

I might be silly, but still want to give my view.

Your code was working fine when you use Custom Library right? If that the case, checkout the difference between the version. Even if you use library managed by adobe, you can still add codes to the library using Custom Editor. Try out the method and see if it works.

Thank You, Pratheep Arun Raj B (Arun) | NextRow DigitalTerryn Winter Analytics

 

Thank You, Pratheep Arun Raj B (Arun) | Xerago | Terryn Winter Analytics
Adobe Employee
February 17, 2022

Hi @pratheeparunraj ,

Thanks for the reply. Yes it was working with old app measurement library which was version 2.20. Now its 2.22.4, tried with old(9.3) and latest AAM(9.4) library code in custom editor which didn't work.

Gokul_Agiwal
Community Advisor
Community Advisor
February 17, 2022

Hey @pranithakat 

Can you compare the revisions and see the changes so you can troubleshoot your issues. 

If possible, can you put screenshot of your implementation or error?