Skip to main content
Required ACL: settings

Examples

var strategy = client.GetPersonalizationStrategy();

// Asynchronous
var strategy = await client.GetPersonalizationStrategyAsync();
strategy, err := client.GetPersonalizationStrategy()
GetStrategyResponse result = client.getPersonalizationStrategy();

// Asynchronous
CompletableFuture<GetStrategyResponse> result = 
  client.getPersonalizationStrategyAsync();
client
  .initPersonalization()
  .getPersonalizationStrategy()
  .then((personalizationStrategy) => {
    console.log(personalizationStrategy);
  });
client.getPersonalizationStrategy()
$strategy = $client->getPersonalizationStrategy();
strategy = client.get_personalization_strategy()
client = Algolia::Recommendation::Client.create("YourApplicationID", "YourWriteAPIKey")

strategy = client.get_personalization_strategy
client.execute {
  get personalizationStrategy
}
personalizationClient.getPersonalizationStrategy { result in
  if case .success(let response) = result {
    print("Response: \(response)")
  }
}

Parameters

requestOptions
object
A mapping of request options to send along with the request.

Response

eventsScoring
object[]
Score associated to each event.Example:
JSON
{
  "eventsScoring": [
    {
      "eventName": "purchase"
      "eventType": "conversion"
      "score": 100
    }
  ]
}
facetsScoring
object[]
Score associated to each facet.
JSON
{
  "facetsScoring": [
    {
      "facetName": "brand",
      "score": 100
    }
  ]
}

Response as JSON

This section shows the JSON response returned by the API. Each API client wraps this response in language-specific objects, so the structure may vary. To view the response, use the getLogs method. Don’t rely on the order of properties—JSON objects don’t preserve key order.
JSON
{
  "eventsScoring": [
    {
      "eventName": "purchase"
      "eventType": "conversion"
      "score": 100
    }
  ],
  "facetsScoring": [
    {
      "facetName": "brand",
      "score": 100
    }
  ]
}
Last modified on March 23, 2026