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
499 stars 214 forks source link

showing blank banner #106

Open prwnstar42 opened 6 years ago

prwnstar42 commented 6 years ago

I get a banner on my app but it is just a black bar

Here is the code i'm using to display it.

admob.banner.config({ id: 'ad-id-removed', isTesting: false })
admob.banner.prepare().then(function () { return admob.banner.show() }).catch(function (e){ console.log(e) })

kernel64 commented 6 years ago

I have the same issue

erperejildo commented 6 years ago

Same problem here: https://github.com/ratson/cordova-plugin-admob-free/issues/119

I think this plugin is not longer under maintenance. Considering the paid one

ratson commented 6 years ago

Please try out the latest version see if this is fixed.

wo-github commented 6 years ago

Same problem here, but just on Android devices. The testbanner works correctly, this happens with version 0.12.1 too.

erperejildo commented 6 years ago

@ratson I tried with new version but still not working

shubham2811 commented 6 years ago

same problem only black banner is coming no Ads are showing

darkthsideous commented 6 years ago

Ok is the general idea to use the paid one?

erperejildo commented 6 years ago

@darkthsideous I tried the paid one but didn't work either (maybe it was me). Try it by yourself and give me a shout

wo-github commented 6 years ago

After long discussion with Google Support, I have experienced, that they blocked our app and don`t deliver any banner.

darkthsideous commented 6 years ago

@erperejildo @wo-github So you guys have any monetizing alternatives. i'm kinda stuck in the mud here

darkthsideous commented 6 years ago

@erperejildo @wo-github have you heard of Appodeal. I found a cordova plugin im debating whether to give it a try

erperejildo commented 6 years ago

@wo-github I have exactly the same app working at the moment with an old version and still displaying banners with no problems. What did they exactly block?

@darkthsideous did you have a look to this? "a 4% rush fee applies". I think I'd rather expend more time looking for something 100% free.

Have you guys tried Facebook ads? https://github.com/floatinghotpot/cordova-plugin-facebookads

darkthsideous commented 6 years ago

@erperejildo your right. Which version are you using i just used cordova-admob-sdk 0.11.1 "AdMob SDK" cordova-plugin-admob-free 0.11.0 “Cordova AdMob Plugin” still getting a blank white box

darkthsideous commented 6 years ago

http://localhost:8080/var/containers/Bundle/Application/27869CEC-042E-4EFF-92D3-5BB011E3C995/NotMyApp.app/www/plugins/cordova-plugin-admob-free/www/admob.js.mapFailed to load resource: the server responded with a status of 404 (Not Found)

erperejildo commented 6 years ago

I'm using 0.12. I'll try later on with the latest one. Can't access to that url even using my local

darkthsideous commented 6 years ago

Yeah thats the error i was getting in the console admob.js.map

wo-github commented 6 years ago

@erperejildo they told us, that our app was blocked because the app was in violation of AdSense/AdMob program policies. But we get no mail and doesn`t know, what was the problem.

erperejildo commented 6 years ago

Ok, so you mean this library was blocked by Google then. Doesn't make sense. So why are working my old apps using this library? Should we try with old versions? I'll try Facebook ads when I have a chance, never tried them before. Also we can try the paid one and edit the java file where is taking the fee. It's not a big deal.

@ratson, any news about this issue from you maybe?

darkthsideous commented 6 years ago

@erperejildo hi Daniel and @wo-github the plugin works perfectly on android. Have you guys experienced any issues with ios

darkthsideous commented 6 years ago

i am speaking with a couple folks on the ionic forum as well if you guys want a bit more insight https://forum.ionicframework.com/t/working-app-with-admob-free-plugin/110879/15

darkthsideous commented 6 years ago

@erperejildo @wo-github hey guys. So the ads on my ios app just started working randomly. Like out of nowhere

erperejildo commented 6 years ago

that's weird... you mean using this lib and not a new one? This Google...

I'm going to try Facebook ads this weekend just to consider a different option

darkthsideous commented 6 years ago

So solution is see is basically hide the ad on ios till one becomes available. Thanks to @prwnstar42 roshkesh on the ionic forum

- (void)adView:(GADBannerView *)view didFailToReceiveAdWithError:(GADRequestError *)error { [self __showAd:NO]; }

erperejildo commented 6 years ago

Amazing workaround @darkthsideou! Can you make a PR maybe with that? I think @ratson would appreciate it

What about btw with the interstitial ad?

Also read this: "I was using it on WebView. It was a policy breach. But now I understood and using it on non-WebView activities only" (https://www.reddit.com/r/androiddev/comments/4tsrxe/i_switched_from_admob_to_facebook_audience/) We still using WebView. There is no problem with that then?

rlam3 commented 5 years ago

@erperejildo are we not supposed to use admob with webview cordova apps for iOS apps?

erperejildo commented 5 years ago

Not sure about iOS tbh

bulbul-ismail commented 5 years ago

I fixed my problem on IOS with deleting everything related with this plugin and installing an older version of npm package. (v/4.8.0 worked for me) and here's my plugin version


cordova-admob-sdk 0.17.0 "AdMob SDK"
cordova-plugin-admob-free 0.17.4 "Cordova AdMob Plugin"