private void LoadAd() { Log.Info(TAG, "Start to load ad"); AdParam adParam = new AdParam.Builder().Build(); splashView = FindViewById <SplashView>(Resource.Id.splash_ad_view); splashView.SetAdDisplayListener(new SplashAdDisplayListeners()); Log.Info(TAG, "SplashView.SetAdDisplayListener function called successfully."); // Set a default app launch image. splashView.SetSloganResId(Resource.Drawable.default_slogan); Log.Info(TAG, "SplashView.SetSloganResId function called successfully."); splashView.SetWideSloganResId(Resource.Drawable.default_slogan); Log.Info(TAG, "SplashView.SetWideSloganResId function called successfully."); splashView.SetLogoResId(Resource.Mipmap.ic_launcher); Log.Info(TAG, "SplashView.SetLogoResId function called successfully."); // Set logo description. splashView.SetMediaNameResId(Resource.String.media_name); Log.Info(TAG, "SplashView.SetMediaNameResId function called successfully."); // Set the audio focus type for a video splash ad. splashView.SetAudioFocusType(AudioFocusType.NotGainAudioFocusWhenMute); Log.Info(TAG, "SplashView.SetAudioFocusType function called successfully."); SplashView.SplashAdLoadListener splashListener = new SplashListener(this); splashView.Load(GetString(Resource.String.ad_id_splash), (int)ScreenOrientation.Portrait, adParam, splashListener); Log.Info(TAG, "SplashView.Load function called successfully."); // Remove the timeout message from the message queue. timeoutHandler.RemoveMessages(MsgAdTimeout); // Send a delay message to ensure that the app home screen can be displayed when the ad display times out. timeoutHandler.SendEmptyMessageDelayed(MsgAdTimeout, AdTimeout); }