Can you serve both advertisements and interstitials?
2 answers
Yes, you can.
Take a look at the documentation for more information https://developers.google.com/mobile-ads-sdk/docs/admob/fundamentals
Also you can use "AdListener" very useful for your own purposes!
adView.setAdListener(new AdListener() {
@Override
public void onAdClosed() {
//Called when the user is about to return to the application after
super.onAdClosed();
}
@Override
public void onAdFailedToLoad(int errorCode) {
//Called when an ad request failed
super.onAdFailedToLoad(errorCode);
}
@Override
public void onAdLeftApplication() {
//Called when an ad leaves the application (e.g., to go to the browser)
super.onAdLeftApplication();
}
@Override
public void onAdOpened() {
//Called when an ad is received
super.onAdOpened();
}
@Override
public void onAdLoaded() {
//Called when an ad opens an overlay that covers the screen
super.onAdLoaded();
}
});
You can fill each method with your own code :)
+1
source to share