我在Unity3d中使用了最后一个AdMob插件。
我知道AdMob存在以下类型的请求:
// Called when an ad request has successfully loaded.
bannerView.AdLoaded += HandleAdLoaded;
// Called when an ad request failed to load.
bannerView.AdFailedToLoad += HandleAdFailedToLoad;
// Called when an ad is clicked.
bannerView.AdOpened += HandleAdOpened;
// Called when the user is about to return to the app after an ad click.
bannerView.AdClosing += HandleAdClosing;
// Called when the user returned from the app after an ad click.
bannerView.AdClosed += HandleAdClosed;
// Called when the ad click caused the user to leave the application.
bannerView.AdLeftApplication += HandleAdLeftApplication;
但我需要在用户点击(X)按钮关闭插页式广告后触发事件。我该怎么做?
广告在关卡完成后加载,而不是我想用" Application.LoadLevel(某事)"加载下一关卡。
我已经尝试了好几个小时,谢谢
答案 0 :(得分:0)
。在我弄清楚错误之后,.AdClosed工作正常。
你必须使用:
using System;
或EventArgs无法正常工作