Skip to main content
Required ACL: recommendation

Usage

// Initialize the client
var client = new PersonalizationClient(
  new PersonalizationConfig(
    "ALGOLIA_APPLICATION_ID",
    "ALGOLIA_API_KEY",
    "ALGOLIA_APPLICATION_REGION"
  )
);

// Call the API
var response = await client.SetPersonalizationStrategyAsync(
  new PersonalizationStrategyParams
  {
    EventsScoring = new List<EventsScoring>
    {
      new EventsScoring
      {
        Score = 42,
        EventName = "Algolia",
        EventType = Enum.Parse<EventType>("Click"),
      },
    },
    FacetsScoring = new List<FacetsScoring>
    {
      new FacetsScoring { Score = 42, FacetName = "Event" },
    },
    PersonalizationImpact = 42,
  }
);
// >LOG

See the full API reference

For more details about input parameters and response fields.
I