Hello,
I would like to know if it is possible to change the "reaction" of when an ad request times out waiting for ad response.
I would like for onAdFailedToLoad() in AdListenner to be called immediately after the ad request times out (or perhaps 5000ms after).
More specifically:
I am trying to get a custom activity to launch when the original request for my interstitial fails
interstitial.setAdListener(new AdListener()
{
@Override
public void onAdLoaded()
{
displayInterstitial();
super.onAdLoaded();
}
@Override
public void onAdFailedToLoad(int errorCode)
{
Intent intent = new Intent(getApplicationContext(),
FailToLoadActivity.class);
startActivity(intent);
super.onAdFailedToLoad(errorCode);
}
});
I would like this custom activity to launch when:
- users are using adblocker
- users are not connected to internet
(which, I suppose, is pretty much the same thing as if I am not mistaken adblockers simply prevent communication with the adserver?)
Thank you!