EddyVerbruggen / nativescript-admob

NativeScript plugin to earn some precious :moneybag::moneybag: with ads by Google AdMob
MIT License
69 stars 26 forks source link

Demo app with non-test ads not working #70

Closed surdu closed 4 years ago

surdu commented 4 years ago

In the demo app, I've changed so that testing is set to false everywhere, and no ads are shown on real device, at least on Android.

For interstitial ads, when I try to preload the add I see the message at the top of the app: Error preloading interstitial: 3 and for preload rewarded ads I get error 1.

On the emulator, the code shows the Test ad, even thought I've set testing to true, probably because I ran the code once with testing to true and now the emulator is marked as testing device.

I also see the following error in the console, but I don't think it's relevant, as it's shown even when the test ads work:

Successfully synced application org.nativescript.admobdemo on device emulator-5554.
chromium: [INFO:library_loader_hooks.cc(50)] Chromium logging enabled: level = 0, default verbosity = 0
chromium: [ERROR:filesystem_posix.cc(89)] stat /data/user/0/org.nativescript.admobdemo/cache/WebView/Crashpad: No such file or directory (2)
chromium: [ERROR:filesystem_posix.cc(62)] mkdir /data/user/0/org.nativescript.admobdemo/cache/WebView/Crashpad: No such file or directory (2)
surdu commented 4 years ago

Found what the problem was: the app needs to be signed and also needs to be published in the app store for the ads to show on non-test devices.