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?
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?
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 @gokula , 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.
Yes you can download latest AppMeasurement code from Code Manager
You need log in to Adobe Analytics interface and then follow below path
Analytics -> Admin -> All Admin -> Code Manager
Download the zip file, extract it and you can see AppMeasurement_Module_AudienceManagement.js
Hope this helps.
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.
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.
So, libraries are not causing the problem, but the implementation. Need more details or someone who already faced this issue should advice here.
Where are you calling the function s.AudienceManagement.setup()?
Check whether it is called before the load of the extensions.