Yandex Mobile Ads
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
YandexMobileAds.MobileAds Class Reference

A class allows you to set general SDK settings. More...

Static Public Member Functions

static void SetUserConsent (bool consent)
 Sets a value that indicates whether a user from the GDPR region permits the collection of personal data that will be used for analytics and ad targeting. User data will not be collected until data collection is permitted. If the user once permitted or prohibited data collection, this value must be passed each time the app is launched.
 
static void SetLocationConsent (bool consent)
 The SDK automatically collects location data if the user allowed the app to track the location. This option is disabled by default.
 
static void SetAgeRestrictedUser (bool ageRestrictedUser)
 The SDK automatically collects personal data if the user didn't restrict them. By default restriction is disabled.
 

Detailed Description

A class allows you to set general SDK settings.

Definition at line 19 of file MobileAds.cs.

Member Function Documentation

◆ SetAgeRestrictedUser()

static void YandexMobileAds.MobileAds.SetAgeRestrictedUser ( bool  ageRestrictedUser)
static

The SDK automatically collects personal data if the user didn't restrict them. By default restriction is disabled.

Parameters
ageRestrictedUserRestrict or allow collecting personal data.

Definition at line 47 of file MobileAds.cs.

◆ SetLocationConsent()

static void YandexMobileAds.MobileAds.SetLocationConsent ( bool  consent)
static

The SDK automatically collects location data if the user allowed the app to track the location. This option is disabled by default.

Parameters
consentEnables or disables collecting location data.

Definition at line 37 of file MobileAds.cs.

◆ SetUserConsent()

static void YandexMobileAds.MobileAds.SetUserConsent ( bool  consent)
static

Sets a value that indicates whether a user from the GDPR region permits the collection of personal data that will be used for analytics and ad targeting. User data will not be collected until data collection is permitted. If the user once permitted or prohibited data collection, this value must be passed each time the app is launched.

Parameters
consentPermits or prohibits data collection. By default, data is not collected.

Definition at line 27 of file MobileAds.cs.


The documentation for this class was generated from the following file: