User Data

For better ad targeting, you can optionally specify the user's gender and age. If your app uses its own localization model, you can also specify the chosen locale in ISO 639-1 format (e.g. "ru", "en", "fr", etc.).
Web
To specify user data, use the CustomParams property on the created API instance.
private NativeAd _nativeAd;
 
private void InitAd()
{
    // Create an instance of NativeAd
    _nativeAd = new NativeAd(YOUR_SLOT_ID);
  
    // Set the age
    _nativeAd.CustomParams.Age = 23;
    // Set the gender
    _nativeAd.CustomParams.Gender = CustomParams.GenderEnum.Male;  
}
Was this article helpful?
Yes
No