Azure Personalizer client library for Java - version 1.0.0-beta.1

Azure Personalizer is a cloud-based service that helps your applications choose the best content item to show your users. You can use the Personalizer service to determine what product to suggest to shoppers or to figure out the optimal position for an advertisement. After the content is shown to the user, your application monitors the user's reaction and reports a reward score back to the Personalizer service. This ensures continuous improvement of the machine learning model, and Personalizer's ability to select the best content item based on the contextual information it receives.

Getting started


Install the package

Include the dependency in the dependencies' section. Ignoring the version tag without the version tag.

      <version>1.0.0-beta.1</version> <!-- {{x-version-update-start;;current} -->

This table shows the relationship between SDK versions and supported API versions of the service:

SDK version Supported API version of service
1.0.0-beta.1 1.1-preview.3

Key concepts

The PersonalizerAdministrationClient and PersonalizerAdministrationAsyncClient provide both synchronous and asynchronous operations to:

  • Manage the machine learning model and learning settings for the Personalizer service.
  • Manage the properties of the Personalizer service such as the learning mode, exploration percentage.
  • Run counterfactual evaluations on prior historical event data.

The PersonalizerClient and PersonalizerAsyncClient provide both synchronous and asynchronous operations to:

  • Rank a set of actions, then activate and reward the event.
  • Use multi-slot personalization when there are more than one slots.
  • Manage the properties of the Personalizer service.
  • Run counterfactual evaluations on prior historical event data.


Please refer the sample scenarios outlined in the examples.


Azure SDKs for Java offer a consistent logging story to help aid in troubleshooting application errors and expedite their resolution. The logs produced will capture the flow of an application before reaching the terminal state to help locate the root issue. View the logging wiki for guidance about enabling logging.

Next steps


This project welcomes contributions and suggestions. Most contributions require you to agree to a [Contributor License Agreement (CLA)][cla] declaring that you have the right to, and actually do, grant us the rights to use your contribution.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For more information, see the [Code of Conduct FAQ][coc_faq] or contact [][coc_contact] with any additional questions or comments.