Admob Ad Listener (android)
I want an event to happen in my app when an admob ad is loaded. I've been searching everywhere but I cant figure out exactly how to do this! Does anyone know where an example or tu
Solution 1:
check this documentation, it might help.
Solution 2:
mAdView.setAdListener(new AdListener() {
@Override
public void onAdLoaded() {
// Code to be executed when an ad finishes loading.
}
@Override
public void onAdFailedToLoad(int errorCode) {
// Code to be executed when an ad request fails.
}
@Override
public void onAdOpened() {
// Code to be executed when an ad opens an overlay that
// covers the screen.
}
@Override
public void onAdLeftApplication() {
// Code to be executed when the user has left the app.
}
@Override
public void onAdClosed() {
// Code to be executed when when the user is about to return
// to the app after tapping on an ad.
}
});
Post a Comment for "Admob Ad Listener (android)"