Object MobileAds
- 
                    
                    - All Implemented Interfaces:
 
 @MainThread() public class MobileAds Class contains logic that applies to the Mobile Ads SDK as a whole. Right now, the only methods in it are used for enabling SDK logs, getting SDK version and enabling visibility error indicator. 
- 
                
                    
                    - 
                                
                            
                                Field SummaryFields Modifier and Type Field Description private final static StringlibraryVersionpublic final static MobileAdsINSTANCE
 - 
                                
                            
                                Method SummaryModifier and Type Method Description final static UnitshowDebugPanel(Context context)Launches SDK debug panel. final static UnitenableLogging(Boolean enableLogging)Enables SDK logs. final static UnitsetLocationConsent(Boolean locationConsent)Enables location usage for ad loading. final static UnitenableDebugErrorIndicator(Boolean enableIndicator)final static UnitsetUserConsent(Boolean consent)Set a value indicating whether user from GDPR region allowed to collect personal data which is used for analytics and ad targeting. final static UnitsetAgeRestrictedUser(Boolean ageRestrictedUser)Set a value indicating whether user is a child or undefined age. final static UnitsetAppAdAnalyticsReporting(Boolean reportingEnabled)Enable or disable reporting for ad events that are automatically sent to AppMetrica for applications. final static Unitinitialize(Context context, InitializationListener initializationListener)Initializes the Yandex Mobile Ads SDK internal state. final static StringgetLibraryVersion()- 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        showDebugPanelfinal static Unit showDebugPanel(Context context) Launches SDK debug panel. - Parameters:
- context- The application context.
 
 - 
                                        enableLoggingfinal static Unit enableLogging(Boolean enableLogging) Enables SDK logs. Logs are disabled by default. - Parameters:
- enableLogging- If set to- true, logs will be enabled, otherwise disabled.
 
 - 
                                        setLocationConsentfinal static Unit setLocationConsent(Boolean locationConsent) Enables location usage for ad loading. Disabled by default Location permission is still required to be granted additionally to the consent. - Parameters:
- locationConsent- If set to- true, location will be used for ads loading, otherwise not.
 
 - 
                                        enableDebugErrorIndicatorfinal static Unit enableDebugErrorIndicator(Boolean enableIndicator) Enable or disable visibility error indicator in Debug Mode. Indicator is enabled by default. - Parameters:
- enableIndicator- If set to- true, visibility error indicator will be displayed, otherwise not.
 
 - 
                                        setUserConsentfinal static Unit setUserConsent(Boolean consent) Set a value indicating whether user from GDPR region allowed to collect personal data which is used for analytics and ad targeting. If the value is set to false personal data will not be collected. - Parameters:
- consent-- trueif user provided consent to collect personal data, otherwise- false.
 
 - 
                                        setAgeRestrictedUserfinal static Unit setAgeRestrictedUser(Boolean ageRestrictedUser) Set a value indicating whether user is a child or undefined age. If the value is set to true personal data will not be collected. - Parameters:
- ageRestrictedUser-- trueif user falls under COPPA restrictions, otherwise- false.
 
 - 
                                        setAppAdAnalyticsReportingfinal static Unit setAppAdAnalyticsReporting(Boolean reportingEnabled) Enable or disable reporting for ad events that are automatically sent to AppMetrica for applications. App ad analytics enabled by default. - Parameters:
- reportingEnabled- If the value is set to- truereports for ad events will be sent, otherwise not.
 
 - 
                                        initializefinal static Unit initialize(Context context, InitializationListener initializationListener) Initializes the Yandex Mobile Ads SDK internal state. - Parameters:
- context- The application context.
- initializationListener- A listener for receiving notifications about SDK initialization complete.
 
 - 
                                        getLibraryVersionfinal static String getLibraryVersion() 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-