Article summary


Discusses how to integrate Adobe Experience Manager and Adobe Campaign Standard. 

For information about Adobe Campaign, see Introduction.

Digital Marketing Solution(s) Adobe Experience Manager (Adobe CQ), Adobe Campaign
Author (beginner - intermediate)
Required Skills
Tested On Adobe Experience Manager 6.2


To follow along with this article, you require accounts for these Digital Marketing products: Adobe Campaign. 


You can integrate Adobe Experience Manager and Adobe Campaign Standard (referred to as Adobe Campaign for rest of the article) to create business solutions that require newsletters promoting a new product or service. For example, assume that you want to create an email campaign to raise awareness of the product. Using Experience Manager and Adobe Campaign, you can address this use case by creating an Experience Manager newsletter using components such as text and image components. Then you can import the Experience Manager newsletter into Adobe Campaign and use that newsletter in an email campaign.

An Experience Manager newsletter displayed in Adobe Campaign

This community article walks you through all the steps required to integrate AEM and Adobe Campaign to create newsletters.

Set up Experience Manager and Adobe Campaign integration

The first task to perform is to configure a connection to Adobe Campaign from the Cloud Services interface within Experience Manager. To successfully setup a connection, you require these values:

  • the URL of the Adobe Campaign server
  • the user name
  • the corresponding password 

The cloud service username and password must be credentials of a technical user in Adobe Campaign. For example, a user created only for this connection. By default, an “aemserver” user exists in Adobe Campaign for this purpose.

Perform these tasks. 

1. Login to Experience Manager. 

2. Click the Tools icon (the hammer icon located on the left side panel). 

3. Click Deployment, Cloud Services

4. Under Adobe Campaign, click show configurations

Adobe Campaign configurations

5. Click + next to Available Configurations.

6. In the Create Configurations dialog, enter AEM Campaign in the title field.

Create Configuration dialog

7. Click Create.

8. Enter the user name, password, and URL to the Campaign server.

Connection values required for Adobe Campaign

9. Test the connection by clicking Connect to Adobe Campaign. If successful, a message appears.  

Successful connection to Adobe Campaign

10. Click OK.  

Configure OSGi configuration settings

You need to configure two OSGI configuration settings to they reference the Publish server:

  • AEM Campaign Integration - Configuration
  • Day CQ Link externalizer

To edit the AEM Campaign Integration - Configuration, perform these steps: 

1. Go the OSGi configuration view at http://localhost:4502/system/console/configMgr.

2. Under OSGi, select Configuration

3. Search for AEM Campaign Integration - Configuration.

4. Edit the Public URL field to reference your published server (not localhost).

AEM Campaign Integration - Configuration setting

To edit the Day CQ Link externalizer, perform these steps:

1. Go the OSGi configuration view at http://localhost:4502/system/console/configMgr.

2. Under OSGi, select Configuration.

3. Search for Day CQ Link externalizer.

4. Edit the Public URL field to reference your published server (not localhost).

Day CQ Link externalizer settings


You need administrative privileges to configure OSGi settings.

Set the password for the campaign-remote user

The campaign-remote user needs to match the external account on Adobe Campaign. That is, the campaign-remote with password must match the one you set in Experience Manager.

Change the password of an Experience Manager user

Perform these tasks: 

1. Go to the following URL: http://localhost:4502/useradmin.

2. Select the campaign-remote user.

3. Click the Properties tab.

4. Click the Set Password button. 

5. Enter the value and click Ok. 

Create an Experience Manager newsletter

You can use Experience Manager to build the newsletter that is used within Adobe Campaign as part of an email campaign. You build the newsletter by dragging and dropping components like other Experience Manager pages. For example, you can add an image to the newsletter by dragging and dropping the image component. 

To create an AEM newsletter, perform these tasks: 

1. Login into Experience Manager.

2. Click Adobe Experience Manager in the upper left side.

3. Click Sites, Campaigns, Geometrixx Outdoors, Master Area, Email Campaigns.


AEM Email Campaign Templates

4. Click the Create button. 

5. Create an Experience Manager page based on any of the Adobe Campaign templates (for example, no column, 2 columns, 3 columns).

6. Run through wizard, name the template and click Create.


Adobe Campaign components are added to the page in a later step. 

Assign Cloud Service information to the newsletter

To successfully create an Experience Manager/Adobe Campaign newsletter use case, add Cloud Service information to the page that you created. To add this information to the page, you use Page Properties, as shown in the following illustration.

The following shows the Cloud Services connection information (AEM Campaign) that you created earlier in this article. 

Campaign connection information specified in an Experience Manager page

Under the Email tab, you can enter the Subject and body information that is sent along with the Experience Manager page, as shown in the following illustration.

Email information specified under the Email tab

Under the Adobe Campaign tab, is the template picker where you can search for templates. It is enabled in properties in authoring. You use the template picker to select an Adobe Campaign template, which affects the set of metadata variables that are available from Adobe Campaign. There is a plain text button (you can specify both what's in plain text and what's in HTML). The metadata picker picks from the metadata that's available.

In this example, notice that the template named Email with AEM Content is selected.  

Select an Adobe Campaign template


This dropdown control is populated with templates available with Adobe Campaign. If there are no templates displayed, you need to create an Adobe Campaign template, as discussed later in this article.  

Edit the Experience Manager newsletter

Open the Experience Manager newsletter to further modify it. When modifying a newsletter used in Adobe Campaign, you have access to Campaign components such as the Text and Personalization component. This component lets you insert Campaign profile variables, as shown in the following illustration.


Campaign Profile Variables

In this example, notice that the Adobe Campaign button is clicked to give you access to Adobe Campaign profile variables. In this example, the  First name profile variable is selected. In the component, a profile variable appears as:

Hello <%= context.profile.firstName %>

As shown in the previous illustration, you can select from a set of pre-defined Adobe Campaign profile variables. Campaign components include the following:

  • Heading - plaintext component - no profile variables allowed.
  • Image - drag and drop an asset on an image. Alt text must be set or you can't close the component.
  • Text and Personalization - Uses the Rich Text Editoror. Click the Adobe Campaign button to insert profile variables (shown in the previous illustration).
  • Text and Image - Combination of text and image components.

Drag the image component and the Text and Personalization component onto the page. Select the first name and last name variables and specify the following text.

Hello <%= context.profile.firstName %> <%= context.profile.lastName %> did you know that walking along the Ocean is a relaxing way to gain exercise.

Ensure that your page resembles the following illustration. 


An Experience Manager newsletter with Adobe Campaign components

Preview the newsletter

You can preview the newsletter in Experience Manager and view the profile values from Adobe Campaign (the profile variables are set with profile data from Adobe Campaign). To view the profile variables, use the Client Context feature, as shown in this illustration (this is viewed within the Classic UI). 

Client Context feature

As shown in the previous illustration, notice that the Client Context is used to populate the profile variables. As shown in the Client Context, the user Alison Parker is displayed. Notice that the profile variables are populated with the corresponding values. 

To preview the Experience Manager newsletter:

1. Open the newsletter in Classic view. 

2. Click the Client Context button located at the bottom of the sidekick. 

The Client Context located in the sidekick

4. Click on the profile icon in the Client Context.

The Client Context showing different users

As you scroll through the different profiles, notice that the profile changes in the Experience Manager newsletter, as shown here. 

Adobe Campaign Profile Variables

Approve the Newsletter using the AEM Campaign workflow

To use the newsletter in the Adobe Campaign, you need to approve the content by using an Adobe Campaign Workflow that you can access using the sidekick.

Approve Campaign Worflow

Click the Start Workflow button and then step through the steps. Once you complete the workflow, you see the following message. 

The Approve for Campaign workflow was successfully completed

Deliver the content using Adobe Campaign

You can use Adobe Campaign Standard to deliver the Experience Manager newsletter to a specified collection of users. This section walks you through the tasks that need to be performed in order to deliver the AEM newsletter. 

Configure the Experience Manager server

Configure the Experience Manager server that contains the newsletter that you created. This action is required so that Adobe Campaign can email the newsletter. To configure the Experience Manager server, perform these steps: 

1. Click Administrators, Application Settings, External Accounts.

2. Click the Create button. 

Creating an external account

3. Select Adobe Experience Manager in the Type field.

4. Enter the AEM server URL in the Receiver server field, and the corresponding account name and password.


Experience Manager server configuration

5. Click Create then Save.



Be sure that you do not add an ending / slash at the end of the URL or the connection will not work.

Select an Adobe Campaign delivery template

To successfully email an Experience Manager newsletter using Adobe Campaign, you need to select an Adobe Campaign template. By default, Adobe Campaign is not configured to use Experience Manager. 

Adobe Campaign Templates

Adobe Campaign default templates are read-only. As a result, you have to create a new one based on an existing one. That is, duplicate a read-only template and then edit the duplicated template. Also, it is not possible to include Experience Manager content for A/B testing emails.

To create an Experience Manager based email template, perform these tasks:

1. Click Resources, Templates, and then select a given template that you have duplicated.

2.  Open the Template. You will see an empty template, as shown in this illusration. 

An Adobe Campaign Email Template

3. Click the Edit Properties icon.

Editing properties of a Campaign template

4. Click on Content. Select Adobe Experience Manager in the first drop-down field and then the Experience Manager server configuration that you created in the second drop-down field.  


Creating an Email that uses the Experience Manager newsletter

The final task to perform is to create an email that uses the Adobe Campaign template that you created (which uses the Experience Manager server that you configured) and uses the newsletter. The newsletter is imported from Experience Manager into Adobe Campaign. 

To create the email, click Create an email located in Adobe Campaign. 

Create email link in Adobe Campaign

Next, select the Adobe Campaign template that you created and click Next

Adobe Campaign Templates

Fill in email properties, such as the Description field and click Next. 

Adobe Campaign email properties

Next specfiy the email's audience. That is, you can define rules that specify to whom the email containing the newsletter is sent. In this example, the email is sent to a profile where the email is You can drag and drop different rules, as shown in the following illustration. 

Adobe Campaign Target Rules


You have to setup Adobe Campaign profiles in order to define the email's audience. For information, see Defining audiences.

Once you define the target rules that define to whom the email is sent, click Next. In the next view, you are presented with a message that informs you that this email is based on AEM content. Click Create

Adobe Campaign message

Under content, click on the Whitespace, as shown here. 

Click on Content

You are presented with a view that lets you import the newsletter. Click on the AEM link, as shown here. 

Import Experience Manager content

Select the Experience Manager content that is returned and fill in a Subject for the email. Once done, you can view the summary page, as shown here. 

Adobe Campaign Newsletter summary view

You can schedule emails to define when they are sent. In this example, the email is sent when the Confirm button is clicked as described in this section. For more information about scheduling emails, see Scheduling the send


If you encounter an error, check the network settings that you defined when configuring the AEM server. 

Once you are satisfied, you can send the email by clicking the Prepare button. 

Click the Prepare button

Click Ok that appears in the message. Next, wait for Adobe Campaign to complete preparing the email. Once done, you will see 100%, as shown here. 

Adobe Campaign prepared the email

Click the Confirm button and then the Ok button that appears. Adobe Campaign sends the email and displays information that lets you know whether the email was successfully sent. 

Adobe Campaign displays information specifying whether the email was sent

Once you see the confirmation message that Adobe Campaign has sent the email, you can view information such as the number of email message that were sent, the delivered percentage, and so on. 

See also

Congratulations, you have configured AEM and Adobe Campaign to send newsletters within email messages. Please refer to the
AEM community page for other articles that discuss how to build AEM services/applications.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy