私は広告を初めて実装しました。私はadMobを使用しています。私はさまざまなコードを使いこなしてきましたが、私がそれを破壊したら、新しい広告を作成することはできません。今広告(adMob)を元通りに戻すにはどうすればいいですか?
private void RequestInterstitial()
{
// These ad units are configured to always serve test ads.
#if UNITY_EDITOR
string adUnitId = "unused";
#elif UNITY_ANDROID
string adUnitId = "ca-app-pub-3895731736666139/7005438200";
#elif UNITY_IPHONE
string adUnitId = "hmm";
#else
string adUnitId = "unexpected_platform";
#endif
// Create an interstitial.
this.interstitial = new InterstitialAd(adUnitId);
// Register for ad events.
this.interstitial.OnAdLoaded += this.HandleInterstitialLoaded;
this.interstitial.OnAdFailedToLoad += this.HandleInterstitialFailedToLoad;
this.interstitial.OnAdOpening += this.HandleInterstitialOpened;
this.interstitial.OnAdClosed += this.HandleInterstitialClosed;
this.interstitial.OnAdLeavingApplication += this.HandleInterstitialLeftApplication;
// Load an interstitial ad.
this.interstitial.LoadAd(this.CreateAdRequest());
}
private void ShowInterstitial()
{
if (this.interstitial.IsLoaded())
{
this.interstitial.Show();
}
else
{
MonoBehaviour.print("Interstitial is not ready yet");
text.text = "No Ad Loaded";
}
}
this.interstitial.Destroy();
インタースティシャルの「X」をクリックしたときに破壊する関数が呼び出されるんか?破壊しますか
これを元に戻すにはどうすればよいですか?
ありがとうございました。 –
ようこそ。私は[ここ](http://stackoverflow.com/a/39882989/3785314)からちょうど話したことのサンプルコードを得ることができます – Programmer