Android : AdMob onClickListener

后端 未结 4 783
忘掉有多难
忘掉有多难 2021-01-03 03:15

I display into my android application AdMob\'s banners. I would like that when the user click on the banner it gone. I have try the code AdView.setOnC

4条回答
  •  青春惊慌失措
    2021-01-03 03:47

    You can implement onAdLeftApplication() of AdListener interface. This method is called when an ad leaves the application (e.g., to go to the browser).

    adView.setAdListener(new AdListener() {

            @Override
            public void onAdLeftApplication ()
            {
               //Do your stuff
            }
        }
    

    });

    For more info check below link https://developers.google.com/android/reference/com/google/android/gms/ads/AdListener.html#onAdLeftApplication()

提交回复
热议问题