ratson / cordova-plugin-admob-free

New development has been moved to "admob-plus-cordova", https://github.com/admob-plus/admob-plus/tree/master/packages/cordova
https://github.com/admob-plus/admob-plus
MIT License
498 stars 212 forks source link

banner Ads keeps showing test #269

Open mihawk007 opened 5 years ago

mihawk007 commented 5 years ago

First tnxx a lot for this great plugin especially you made it free to all people the plugin is working very well but banner ads he kepp showing test ads even after i put my id and also test it on real device and read every topic in issues section i didn't find any solution for this problem please could you help me this is my code :

var banner = 'ca-app-pub-xxxx/xxxx';
var interstitial = 'ca-app-pub-xxxx/xxxx';

admob.banner.config({
      id: banner,
});
admob.interstitial.config({
      id: interstitial,
});
admob.banner.prepare();
admob.banner.show();
ratson commented 5 years ago

Hard to tell to problem for limited information, you may try out https://admob-plus.github.io/ see if it works for you.

mihawk007 commented 5 years ago

after i installed the plugin "cordova-admob-plus" i couldn't build the app. i got this error :

Error: /cordova_project/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/cordova_project/platforms/android/src/admob/plugin/AdMob.java:60: error: incompatible types: Object cannot be converted to JSONObject
            JSONObject opts = args.opt(0);
                                      ^
/cordova_project/platforms/android/src/admob/plugin/AdMob.java:67: error: incompatible types: boolean cannot be converted to float
            MobileAds.setAppVolume(true);
                                   ^
/cordova_project/platforms/android/src/admob/plugin/rewardvideo/RewardVideoExecutor.java:103: error: method does not override or implement a method from a supertype
            @Override
            ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /cordova_project/platforms/android/src/org/apache/cordova/file/AssetFilesystem.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
3 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
jorjik commented 5 years ago

Same ploblem with "free" AdMobPlugin.java: uses or overrides a deprecated API.