Search code examples
androidclickadview

How to know when someone has clicked on an Adview?


I'm using an adview in my application and want to know when someone has clicked that Adview! How I can do that? The onclicklistener does not seem to work.


Solution

  • You can set the listener this way:

    adView.setAdListener(this);
    

    And then implement this:

    @Override
    public void onPresentScreen(Ad arg0) {
    //OnClick here
    }