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

Not working for iOS but it is for Android #157

Closed UltimateGemini closed 3 years ago

UltimateGemini commented 6 years ago

I have my isTesting: false and provided my Id. The test ads work but not the live ones.

When I run the app on my iphone X or my iPad, the banner shows white and not clickable and also the Interstitial ad is not showing up either when a button is clicked. After looking in the console log i see these errors: ......../www/plugins/cordova-plugin-admob-free/www/admob.js.map : Failed to load resource: the server responded with a status of 404 (Not Found)

Error: Network Error polyfills.js

I tried several thing: Removing the plugin and reinstalling it and even removing iOS platform and reinstalling it but I still get the same error.

Its working for Android. I ran the app on my device and the live ads are working fine. The banner and the Interstitial ad. So i'm assuming it has to be with a problem on iOS, Can any one please help?

Package.json: "ionic-native/admob-free": "^4.5.3", "cordova-admob-sdk": "^0.13.1", "cordova-plugin-admob-free": "^0.13.0", "cordova-promise-polyfill": "0.0.2"

UltimateGemini commented 6 years ago

So after seeing a few of the same issues posted about this topic, i'm guessing this issue still hasn't been fixed within the plugin?

PratikPagada commented 6 years ago

same issue

rweligamage commented 6 years ago

same issue

skekeu commented 6 years ago

Do your Ads still work in Android? I have similar issue both on IOS and Android.

UltimateGemini commented 6 years ago

For Android is does, but I removed the whole plugin.

skekeu commented 6 years ago

I have it setup like:

showBannerAd(){    
    const bannerConfig: AdMobFreeBannerConfig = {
      id:'MY-AD-ID',
      autoShow: true,
      isTesting: false
    }
    this.adMob.banner.config(bannerConfig);
    this.adMob.banner.prepare().then(()=>{      
      console.log('show ad');
    }).catch(err => console.log(err));    

  }

Then I call it when platform is ready, like: this.showBannerAd();

But no matter what ... no ads displayed. Am I missing something?

aabdolla commented 6 years ago

Same issue here. There is just a white bar where the ad should be on an iPhone X.

checosele commented 6 years ago

Same issue, the first time that i opened the app on a device the advertisements were shown like test ads, but after the first time they don't appear, and how @aabdolla says there is a white bar where the advertisements have to be.

skekeu commented 6 years ago

Guys, Check on your admob accounts if you have informed your address at the payment page. If you don't add your address there, the live ads won't be served.

That solved the issue for me.

jensbrobak commented 6 years ago

I experience the same issue. I can't seem to add payment options yet, due to being a new AdMob account and I haven't reached the minimum earnings limit yet, so the adding payment option button is greyed out for me.

UltimateGemini commented 6 years ago

@skekeu

Just like @jensbrobak said, its not letting me since i have not met the minimum threshold. I'm not even using this plugin anymore. I removed it a few months ago when I was having the issue.

aabdolla commented 6 years ago

@skekeu What are you using instead?

skekeu commented 6 years ago

@aabdolla I'm using AdMob here. As I said before, after adding my payment address, solved the issue for me.

I did not have the minimum threshold, since my acc is new. Check if you're adding the payment address at the right place.

jensbrobak commented 6 years ago

@skekeu

You were absolutely right! - I managed to find payment options and changed it accordingly to match my company details exact, I already did this, but now I adjusted to fit 100% to my duns details and then the issue got resolved.

Thanks !!

skekeu commented 6 years ago

@jensbrobak

I'm glad you were able to solve it!

arturoceballos commented 5 years ago

@jensbrobak How long did it take for Admob to start serving real ads to your app after updating your company details?

Mine still don't seem to be working.

jensbrobak commented 5 years ago

@arturoceballos I can’t say exactly but over the night after having adjusted the company details, then it suddenly started working as intended.

neilrackett commented 5 years ago

I was seeing the same issue on iOS, with the following message output repeatedly into the console:

<Google> Cannot find an ad network adapter with the name(s): com.google.DummyAdapter. Remember to link all required ad network adapters and SDKs, and set -ObjC in the 'Other Linker Flags' setting of your build target.

The solution was to disable Limit Ad Tracking under Settings > Privacy > Advertising, which seems to limit more than just tracking in this instance, and add a house ad with an eCPM of 0.01 to fill any gaps while apps are in development.

You should also ensure that your ATS settings match these: https://developers.google.com/admob/ios/app-transport-security

arturoceballos commented 5 years ago

@skekeu @jensbrobak Forgot to revisit this but that solved my problem too. Thanks, guys!

manoharreddyporeddy commented 5 years ago

I solved and documented here:: https://github.com/manoharreddyporeddy/everyday-solutions/blob/master/display-ads-on-android-using-admob.js

suathh commented 3 years ago

In my case it is working on Android( Real and test ads) and on iOS simulator( only test ads even if I use real ad id) but nothing on iOS device even test ad.