Adobe Audience Manager is a versatile audience data management platform. With the SDK, you can update audience profiles for users and retrieve user segment information from your mobile app.
To get started with Audience Manager, follow these steps:
- Configure the Audience Manager Extension in Launch
- Add the Audience Manager Extension to your app
- Implement Audience Manager APIs to:
- Get user profile
- Send signals to Audience Manager
- Reset Audience Manager identifiers, visitor profiles
- In Launch, click the Extensions tab.
- Choose Catalog, locate the Adobe Audience Manager extension and click Install.
- Provide your Audience Manager server.
- Provide a timeout value - this value is the amount of time, in seconds, to wait for a response from Audience Manager before timing out. We recommend a default value of 2s.
- Click Save.
- Follow the publishing process to update SDK configuration.
{% tabs %} {% tab title="Android" %} Java
- Add the library to your project.
- Import the library:
import com.adobe.marketing.mobile.*;
{% endtab %}
{% tab title="iOS" %} Objective-C
-
Add the library to your project via your
Podfile
by adding:pod 'ACPAudience'
-
Import the Audience and Identity library:
#import <ACPCore_iOS/ACPCore_iOS.h> #import <ACPAudience_iOS/ACPAudience_iOS.h> #import <ACPIdentity_iOS/ACPIdentity_iOS.h>
Important: Audience Manager depends on the Identity extension and is automatically included in the Core pod. When installing manually, ensure that you have also added the
ACPIdentity.framework
to your project. {% endtab %} {% endtabs %}
{% tabs %} {% tab title="Android" %}
Call the setContext()
method once in the onCreate()
method of your main activity.
For example, your code may look like:
public class AudiencetApp extends Application {
@Override
public void onCreate() {
super.onCreate();
MobileCore.setApplication(this);
try {
Audience.registerExtension(); //Register Audience Manager w Mobile Core
Identity.registerExtension();
} catch (Exception e) {
//Log the exception
}
}
}
public class AudiencetApp extends Application { @Override public void onCreate() { super.onCreate(); MobileCore.setApplication(this); try { Audience.registerExtension(); Identity.registerExtension(); } catch (Exception e) { //Log the exception } }}
{% endtab %}
{% tab title="iOS" %}
Register the Audience Manager extension with the Mobile Core in your app's didFinishLaunchingWithOptions
function.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[ACPIdentity registerExtension];
[ACPAudience registerExtension];
// Override point for customization after application launch.
return YES;
}
{% endtab %} {% endtabs %}
See Audience Manager API Reference
If you need to update SDK configuration, programmatically, please use the following information to change your Audience Manager configuration values. For more information, Configuration Methods Reference.
Key | Required | Description |
---|---|---|
audience.server | Yes | Server endpoint used to collect Audience Manager data |
audience.timeout | No | Time, in seconds, to wait for a response from Audience Manager before timing out. Default value is 2 seconds. |
- How to find your Audience Manager server?
- How to setup Adobe Analytics server-side forwarding to Audience Manager?
- See - Analytics server-side forwarding
- Also see - Setup SDK Analytics server-side forwarding