我在其中一个教程中看到,他在请求新的插页广告之前销毁了插页式广告,对吗?下面是示例代码:
private void RequestInterstitialAd()
{
string interstitial_ID = "ca-app-pub-3940256099942544/1033173712"; // testid
if (interstitialAd != null)
{
interstitialAd.Destroy();
}
interstitialAd = new InterstitialAd(interstitial_ID);
interstitialAd.LoadAd(CreateNewRequest());
}
public void ShowInsterstitialAd()
{
if (interstitialAd.IsLoaded())
{
interstitialAd.Show();
}
}
private AdRequest CreateNewRequest()
{
return new AdRequest.Builder().AddTestDevice("2077ef9a63d2b398840261c8221a0c9b").Build();
}