Create simulations create-simulations
About simulation about-simulation
To validate your decisioning logic, you can simulate which offers will be delivered to a test profile for a given placement.
This enables you to test and refine various versions of your offers with no impact on the targeted recipients.
To access this feature, select the Simulation tab from the Decision management > Offers menu.
Select test profiles select-test-profiles
First you need to select the test profiles that you are going to use for simulation.
-
Click Manage profile.
-
Select the identity namespace you want to use to identify test profiles. In this example, we will use the Email namespace.
note note NOTE An identity namespace defines the context of an identifier such as an email address or CRM ID. Learn more about Adobe Experience Platform identity namespaces in this section. -
Enter the identity value and click View to list the available profiles.
-
Add other profiles if you want to test different profile data, and save your selection.
-
Once added, all profiles are listed in the drop-down list under Test profile. You can switch between the saved test profiles to display the results for each selected profile.
note note NOTE The profiles selected will remain listed as test profiles in the Simulation tab from session to session until they are removed using Manage profile. -
You can click the Profile details link to display the selected profile data.
Add decision scopes add-decision-scopes
Now select the offer decisions that you want to simulate on your test profiles.
-
Select Add decision scope.
-
Select a placement from the list.
-
The available decisions are displayed.
- You can use the search field to refine the selection.
- You can click the Open offer decisions link to open the list of all the decisions that you created. Learn more on decisions.
Select the decision of your choice and click Add.
-
The decision scope you just defined displays in the main workspace.
You can adjust the number of offers that you want to request. For example, if you select 2, the best 2 offers will display for this decision scope.
note note NOTE You can request up to 30 offers. -
Repeat the steps above to add as many decisions as you need.
note note NOTE Even if you define several decision scopes, only one API request is simulated.
Define simulation settings define-simulation-settings
To edit the default settings for your simulations, follow the steps below.
-
Click Settings.
-
In the Deduplication section, you can choose to allow duplicate offers accross decisions and/or placements. It means that multiple decisions/placements may get assigned the same offer.
note note NOTE By default, all Deduplication flags are enabled for simulation, which means that the decision engine allows duplicates and thus can make the same proposition accross multiple decisions/placements. Learn more on the Decisioning API request properties in this section. -
In the Response format section, you can choose to include metadata in the code view. Check the corresponding option, and select the metadata of your choice. They will be displayed in the request and response payloads when selecting View code. Learn more in the View simulation results section.
note note NOTE When turning on the option, all items are selected by default. -
Click Save.
View simulation results simulation-results
Once you added a decision scope and selected a test profile, you can view the results.
-
Click View results.
-
The best available offer(s) are displayed according to the selected profile for each decision.
Select an offer to display its details.
-
Click View code to display the request and response payloads. Learn more
-
Select another profile from the list to display the results of the offer decisions for a different test profile.
-
You can add, remove or update the decision scopes as many times as needed.
View code view-code
-
Use the View code button to display the request and response payloads.
The code view shows the developer information for the current user. By default, the Response payload is displayed.
-
Click Response payload or Request payload to navigate between the two tabs.
-
To use the request payload outside of Journey Optimizer - for troubleshooting purpose for example, copy it using the Copy to clipboard button on top of the code view.
note note NOTE When copying the request or response payloads into your own code, make sure you replace {USER_TOKEN} and {API_KEY} with valid values. Learn how to retrieve these values in the Adobe Experience Platform APIs documentation.