Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only preloadRewardedVideoAd working but other don't working #87

Open
yudinmaxim opened this issue Aug 20, 2020 · 0 comments
Open

only preloadRewardedVideoAd working but other don't working #87

yudinmaxim opened this issue Aug 20, 2020 · 0 comments

Comments

@yudinmaxim
Copy link

I am using nativescript-vue last versions (ns: 6.8.0, ns-vue: 2.6.4)
I will try used nativescript-admob for showing: "showInterstitial" and "showRewardedVideoAd"
But in my program working correctly only "preloadRewardedVideoAd", other "preloaders" get an error message like "error - 0".

For preloading I am using that code:
try {
await admob.preloadInterstitial({
testing: true,
iosInterstitialId: this.settings.admob.onlyShow.ios, // add your own
androidInterstitialId: this.settings.admob.onlyShow.android, // add your own
// Android automatically adds the connected device as test device with testing:true, iOS does not
//iosTestDeviceIds: ["ce97330130c9047ce0d4430d37d713b2"],
keywords: ["keyword1", "keyword2"], // add keywords for ad targeting
onAdClosed: function() {
console.log("interstitial closed");
},
});
console.log("Interstitial preloaded");

    return true;
  } catch (error) {
    console.log("preloadInterstitial ERROR: " + error);
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant