11using YandexMobileAds.Common;
12using YandexMobileAds.Platforms;
29 IMobileAdsClient mobileAds = YandexMobileAdsClientFactory.CreateMobileAdsClient();
30 mobileAds.SetUserConsent(consent);
39 IMobileAdsClient mobileAds = YandexMobileAdsClientFactory.CreateMobileAdsClient();
40 mobileAds.SetLocationConsent(consent);
49 IMobileAdsClient mobileAds = YandexMobileAdsClientFactory.CreateMobileAdsClient();
50 mobileAds.SetAgeRestrictedUser(ageRestrictedUser);
A class allows you to set general SDK settings.
static void SetUserConsent(bool consent)
Sets a value that indicates whether a user from the GDPR region permits the collection of personal da...
static void SetLocationConsent(bool consent)
The SDK automatically collects location data if the user allowed the app to track the location....
static void SetAgeRestrictedUser(bool ageRestrictedUser)
The SDK automatically collects personal data if the user didn't restrict them. By default restriction...