react-native-google-mobile-ads icon indicating copy to clipboard operation
react-native-google-mobile-ads copied to clipboard

Having trouble walking through documentation (AdapterStatuses errors)

Open StevenHarlow opened this issue 3 years ago • 1 comments

I've been reading the documentation, but it looks like there are a bunch of broken links and I'm not sure if I'm doing something wrong. I've also noticed that the library that this module migrated from has more documentation steps (setting up firebase-core) that I'm not sure if I'm supposed to do, and the video in the "What it does" section of the installation page doesn't have much context, so I'm not sure if I'm supposed to follow any of those steps.

Currently I'm having problems initializing mobileAds(). On android the return adapterStatuses I get are: [{"description": "", "name": "com.google.android.gms.ads.MobileAds", "state": 1}, {"description": "Failed to create Adapter.", "name": "com.google.ads.mediation.vungle.VungleMediationAdapter", "state": 0}, {"description": "Failed to create Adapter.", "name": "com.google.ads.mediation.applovin.AppLovinMediationAdapter", "state": 0}, {"description": "Failed to create Adapter.", "name": "com.google.ads.mediation.adcolony.AdColonyMediationAdapter", "state": 0}, {"description": "Failed to create Adapter.", "name": "com.google.ads.mediation.tapjoy.TapjoyMediationAdapter", "state": 0}]

and on iOs I get: [{"description": "<GADAdapterStatus: 0x6000008e9500; state = Not Ready;Could not retrieve application configuration data.>", "name": "GADMobileAds", "state": 0}]

StevenHarlow avatar Aug 27 '22 16:08 StevenHarlow

The reference links are not that useful right now because of #83

The documents from the @react-native-firebase/admob era are no longer of any value with regard to this module, so I would ignore those, it will just be confusing

Have you tried just making a throwaway test app to play with it? We create the example app here with a script, which also serves as an MCVE (https://stackoverflow.com/help/mcve) of how to build an app with this module: https://github.com/invertase/react-native-google-mobile-ads/blob/main/refresh-example.sh

Following along with that might help

mikehardy avatar Aug 27 '22 16:08 mikehardy

i only getting this adapter status {"description": "", "name": "com.google.android.gms.ads.MobileAds", "state": 1} any help

92sajid110 avatar Sep 25 '22 16:09 92sajid110

@92sajid110 - this is threadjacking, please don't do that as it splinters discussion and is not fair to the original poster. Also, if it were its own issue, it would be unanswerable (https://stackoverflow.com/help/how-to-ask / https://stackoverflow.com/help/minimal-reproducible-example)

mikehardy avatar Sep 25 '22 22:09 mikehardy

I checked logcat, and got the following errors: 'status -> '

[ { description: '', state: 1, name: 'com.google.android.gms.ads.MobileAds' },
  { description: 'Failed to create Adapter.', state: 0, name: 'com.google.ads.mediation.vungle.VungleMediationAdapter' },
  { description: 'Failed to create Adapter.', state: 0, name: 'com.google.ads.mediation.applovin.AppLovinMediationAdapter' },
  { description: 'Failed to create Adapter.', state: 0, name: 'com.google.ads.mediation.adcolony.AdColonyMediationAdapter' },
  { description: 'Failed to create Adapter.', state: 0, name: 'com.google.ads.mediation.tapjoy.TapjoyMediationAdapter' } ]

I searched around the internet for somehelp, and found this similar to this issue, however the stackoverflow answers suggested that to add APP_ID in the manifest file, I also checked the lib code, but can't find anything wrong there. Anyone found a solution?

anwersolangi avatar Nov 09 '22 14:11 anwersolangi

Yeah, we already add app_id to manifest (via placeholder substitution, processing app.json keys and injecting them into gradle) otherwise nothing would work, right? So that is likely working. Why would adapters not be working, unknown.

mikehardy avatar Nov 09 '22 15:11 mikehardy

In the emulator I get the same error (array of failed) But it works on a physical phone (actually I get a timeout instead of a failed. It's because of my government's censorship)

fmApss avatar Nov 27 '22 17:11 fmApss

Hello 👋, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?

This issue will be closed in 15 days if no further activity occurs.

Thank you for your contributions.

github-actions[bot] avatar Dec 25 '22 18:12 github-actions[bot]