Visitor Attributes
Share anonymous visitor signals like age range, gender, and income bracket so Koah can serve more relevant ads.
In React Native you set visitor attributes on the SDK instance returned by Koah.init. See Visitor Attributes for what they are, the privacy posture, the bucket list, persistence, and when to clear.
import { Koah } from 'koah-react-native'
const koah = Koah.init({ publisherId: 'YOUR_PUBLISHER_ID' })
Age range
Set visitor age as an exact value or a predefined bucket—use whichever fits your data and privacy needs.
import { KoahAgeRange } from 'koah-react-native'
// Pick the bucket closest to the visitor's age
koah.setAgeRange(KoahAgeRange.AGE_25_TO_29)
Koah is not for child-directed use: an age under 13 (including
KoahAgeRange.UNDER_13) is ignored with a warning — the value is not
stored, and a previously stored valid range is left unchanged. To clear a
stored value, pass KoahAgeRange.UNKNOWN.
Clearing the stored attribute
Pass KoahAgeRange.UNKNOWN to clear a previously set age range:
koah.setAgeRange(KoahAgeRange.UNKNOWN)
Gender
Pass KoahGender.MALE or KoahGender.FEMALE.
import { KoahGender } from 'koah-react-native'
koah.setGender(KoahGender.FEMALE)
Clearing the stored attribute
koah.setGender(KoahGender.UNKNOWN)
Income bracket
Pass the visitor's annual household income bracket (in thousands of USD): KoahIncomeBracket.UNDER_50K, INCOME_50K_TO_100K, INCOME_100K_TO_150K, INCOME_150K_TO_200K, or INCOME_200K_PLUS.
import { KoahIncomeBracket } from 'koah-react-native'
koah.setIncomeBracket(KoahIncomeBracket.INCOME_50K_TO_100K)
Clearing the stored attribute
koah.setIncomeBracket(KoahIncomeBracket.UNKNOWN)
UNKNOWN clears the value stored on this device so it stops being sent — it
does not delete a value already sent to Koah.
See Visitor Attributes for when to clear and how values persist across launches.