Android Phonegap Google AdMob中间添加监视标识

Android Phonegap Google AdMob中间添加监视标识,android,cordova,admob,phonegap-plugins,Android,Cordova,Admob,Phonegap Plugins,我正在开发phonegap android应用程序,我在其中实现了Googleadmob,目前我正在页面底部显示横幅广告。为此,我得到了他的帮助 您可以在index.html页面查看Js显示广告的代码 通过使用此代码,我能够显示横幅以及间隙广告成功 ======= 现在我想检查用户是否已经成功观看了整个间隙广告。根据这一点,我想给用户额外的时间使用该应用程序。所以,基本上,我只想在监视整个中间添加时运行特定的功能 我如何实现这一点?请帮助我使用位于的插件,您可以测试是否显示了带有以下内容的间隙:

我正在开发phonegap android应用程序,我在其中实现了Google
admob
,目前我正在页面底部显示横幅广告。为此,我得到了他的帮助

您可以在
index.html
页面查看
Js
显示广告的代码

通过使用此代码,我能够显示横幅以及间隙广告成功

=======

现在我想检查用户是否已经成功观看了整个间隙广告。根据这一点,我想给用户额外的时间使用该应用程序。所以,基本上,我只想在监视整个中间添加时运行特定的功能

我如何实现这一点?请帮助我

使用位于的插件,您可以测试是否显示了带有以下内容的间隙:

document.addEventListener(admob.events.onAdLoaded, function (e) {
    console.log(e.adType === admob.AD_TYPE.BANNER ? "Banner" : "Interstitial");
    console.log("Called when an ad is received.");
});

document.addEventListener(admob.events.onAdOpened, function (e) {
    console.log(e.adType === admob.AD_TYPE.BANNER ? "Banner" : "Interstitial");
    console.log("Called when an ad opens an overlay that covers the screen. Please note that onPause event is raised when an interstitial is shown.");
});

document.addEventListener(admob.events.onAdClosed, function (e) {
    console.log(e.adType === admob.AD_TYPE.BANNER ? "Banner" : "Interstitial");
    console.log("Called when the user is about to return to the application after clicking on an ad. Please note that onResume event is raised when an interstitial is closed.");
});

document.addEventListener(admob.events.onAdLeftApplication, function (e) {
    console.log(e.adType === admob.AD_TYPE.BANNER ? "Banner" : "Interstitial");
    console.log("Called when an ad leaves the application (e.g., to go to the browser).");
});