根据文档:https ://developers.google.com/mobile-ads-sdk/docs/admob/advanced
我要求一项活动,
interstitial.loadAd(adRequest);
interstitial.setAdListener(this);
并在回调中收到时显示插页式广告
@Override
public void onReceiveAd(Ad ad) {
Log.d("OK", "Received ad");
if (ad == interstitial) {
interstitial.show();
}
}
但问题是在onReceiveAd
被调用之前,我当前的活动已经完成,我转移到另一个活动,所以onReceiveAd
永远不会被调用。
有什么办法可以解决这个问题?
谢谢。