Set, remove, edit, increment, or decrement Profiles attributes on Unity

Use the following example code to interact with Profiles attributes.

The Localytics SDK sets an anonymous customer ID for app installs where there is no customer ID explicitly set. If Profiles values are set prior to setting a customer ID, the profile information will be set to the anonymous customer ID for the install and is still available for targeting.
Note: Allowable property names must be strings and cannot be null, empty strings, or begin with an underscore ("_"). Property values must be either an array or single instances of: string, long, or DateTime.
// to set a profile attribute:
Localytics.SetProfileAttribute("Age", 45, Localytics.ProfileScope.Organization);
        Localytics.SetProfileAttribute("Lucky numbers", new long[] { 8, 13 }, Localytics.ProfileScope.Application);
        Localytics.SetProfileAttribute("Birthday", new DateTime(1962, 11, 23), Localytics.ProfileScope.Organization);
        Localytics.SetProfileAttribute("Upcoming sales calls", new DateTime[] { new DateTime(2015, 10, 1), new DateTime(2016, 3, 17) }, Localytics.ProfileScope.Application);
        Localytics.SetProfileAttribute("Hometown", "New York, New York", Localytics.ProfileScope.Organization);
        Localytics.SetProfileAttribute("States visited", new String[] { "New York", "California", "South Dakota" }, Localytics.ProfileScope.Application);

// to remove a profile attribute:
Localytics.DeleteProfileAttribute("Days until graduation", Localytics.ProfileScope.Application);

// to add a set of values to an already-defined set of values:
Localytics.AddProfileAttributesToSet("Lucky numbers", new long[] { 666 }, Localytics.ProfileScope.Application);
        Localytics.AddProfileAttributesToSet("Upcoming sales calls", new DateTime[] { new DateTime(2015, 4, 19), new DateTime(2015, 12, 24) }, Localytics.ProfileScope.Application);
        Localytics.AddProfileAttributesToSet("States visited", new String[] { "North Dakota" }, Localytics.ProfileScope.Application);

// to remove a set of values from an already-defined set of values:
        Localytics.RemoveProfileAttributesFromSet("Lucky numbers", new long[] { 8, 666 }, Localytics.ProfileScope.Application);
        Localytics.RemoveProfileAttributesFromSet("Upcoming sales calls", new DateTime[] { new DateTime(2016, 3, 17) }, Localytics.ProfileScope.Application);
        Localytics.RemoveProfileAttributesFromSet("States visited", new String[] { "California" }, Localytics.ProfileScope.Application);


// to increment or decrement an already-defined value:
        Localytics.IncrementProfileAttribute("Age", 1, Localytics.ProfileScope.Organization);
        Localytics.DecrementProfileAttribute("Days until graduation", 3, Localytics.ProfileScope.Application);