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

Ads are not loading #161

Closed
Nikolak47 opened this issue May 9, 2020 · 9 comments
Closed

Ads are not loading #161

Nikolak47 opened this issue May 9, 2020 · 9 comments

Comments

@Nikolak47
Copy link

I integrated everything as in the tutorial, but the ads are not displaying/loading.
PS: When I use firebase_admob plugin, the ads are loading.

@LeonIPierre
Copy link

LeonIPierre commented May 9, 2020

do you see any errors when bringing up logcat?

@Nikolak47
Copy link
Author

Actually, yes.
Usually 'Error: 3', when I try to open interstitial ad.

@danielgchap
Copy link

I believe I'm having a similar issue:

W/Ads (23019): Not retrying to fetch app settings
I/Ads (23019): Ad failed to load : 3
I/Ads (23019): Ad failed to load : 3

Thanks!

@LeonIPierre
Copy link

LeonIPierre commented May 15, 2020

A quick search yields this result:
https://stackoverflow.com/questions/33566485/failed-to-load-ad-3

Do your banner ads load correctly?
Do ads using test ids load?

@danielgchap
Copy link

danielgchap commented May 15, 2020

A quick search yields this result:
https://stackoverflow.com/questions/33566485/failed-to-load-ad-3

Do your banner ads load correctly?
Do ads using test ids load?

Test ads, of any kind, work fine. Banner ads load, but only with test ids. Otherwise, they are just a black box. iOS continues to work just fine.

I'm not sure it's a fill rate issue or failure to present an ad upon request because it seemingly NEVER succeeds. Thanks!

@kmcgill88
Copy link
Owner

Ensure you are using the correct App Id + Ad Id combinations per platform.

example code

You can use these test App ID's from Admob for development:

Android: ca-app-pub-3940256099942544~3347511713
iOS: ca-app-pub-3940256099942544~1458002511

Android Specific Setup

<manifest>
  <application>
    <meta-data
      android:name="com.google.android.gms.ads.APPLICATION_ID"
      android:value="ca-app-pub-3940256099942544~3347511713"/>
  </application>
</manifest>

iOS Specific Setup

Update your Info.plist per Firebase instructions.

<key>GADApplicationIdentifier</key>
<string>ca-app-pub-3940256099942544~1458002511</string>

During runtime get the correct ad id per platform.

String getBannerAdUnitId() {
  if (Platform.isIOS) {
    return 'ca-app-pub-3940256099942544/2934735716';
  } else if (Platform.isAndroid) {
    return 'ca-app-pub-3940256099942544/6300978111';
  }
  return null;
}

String getInterstitialAdUnitId() {
  if (Platform.isIOS) {
    return 'ca-app-pub-3940256099942544/4411468910';
  } else if (Platform.isAndroid) {
    return 'ca-app-pub-3940256099942544/1033173712';
  }
  return null;
}

String getRewardBasedVideoAdUnitId() {
  if (Platform.isIOS) {
    return 'ca-app-pub-3940256099942544/1712485313';
  } else if (Platform.isAndroid) {
    return 'ca-app-pub-3940256099942544/5224354917';
  }
  return null;
}

@danielgchap
Copy link

danielgchap commented May 26, 2020

Hi there,
yes I have performed all of this correctly. Should I be seeing them in my debug builds or do I need to release an apk signed build through the Google close/internal testing track in order to see them?

I believe Google changed their policy to where I could only see MY ads once I do a 'release' of some kind:

https://stackoverflow.com/questions/57795251/android-admob-ads-are-not-showing

Going to check into this and get back. Thanks!

Thanks

@danielgchap
Copy link

This was the resolution. Put an apk into the internal test track on your Google Play account (make sure it's published. Roll it out. Wait a few hours. Download that APK to your test device with your test account that you declared in the internal test testers section. Bam. Ads show up)

Thank you so much for making this pub and for continuing to support it!
God bless

@erperejildo
Copy link

This was the resolution. Put an apk into the internal test track on your Google Play account (make sure it's published. Roll it out. Wait a few hours. Download that APK to your test device with your test account that you declared in the internal test testers section. Bam. Ads show up)

Thank you so much for making this pub and for continuing to support it!
God bless

I can display the ads ok in Android but not in iOS. Is that because I don't have the iOS version released yet?

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

5 participants