I develop mobile app and I want to use AdMob

648 views
Skip to first unread message

Darius Design

unread,
Feb 21, 2024, 7:42:05 PM2/21/24
to Google Mobile Ads SDK Developers
I use react native expo last version, installed all packages for admob and after build I got this: 
invariant violation: turbomoduleregistry.getenforcing(...): 'rngooglemobileadsmodule' could not be found. verify that a module by this name is registered in the native binary., js engine: hermes
What could cause this, because after installation of apk, apk just crashed and vanished?!

Mobile Ads SDK Forum Advisor

unread,
Feb 21, 2024, 11:05:55 PM2/21/24
to darius...@gmail.com, google-adm...@googlegroups.com

Hi,

Thank you for contacting the Mobile Ads SDK Support team.

Upon examination of your error, it appears that you may have inadvertently omitted attaching your React Native library in the project, or your metro server may not be detecting it. In such a scenario, we recommend attempting to delete and reinstall the library. If the issue persists, please reach out to the owner of your third-party repository for further assistance. Kindly be informed that we provide support only for the platforms listed below.

According to the Mobile Ads SDK documentation, we support the following platforms: 

This message is in relation to case "ref:!00D1U01174p.!5004Q02rzLX5:ref"

Thanks,
 
Google Logo Mobile Ads SDK Team

 

richard emmanuel

unread,
Feb 22, 2024, 2:26:27 PM2/22/24
to Darius Design, Google Mobile Ads SDK Developers
Good day

I'm form Nigeria, I have my app available on my phone app file! and the app installed on my phone, 
But I don't have a publisher account, 
I need someone to teach me or help in making my app available on play store. 
Or a way to use admob to earn what or without publishing. 

I will really appreciate the assistance 🙏. 

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/36b08d2d-e382-4dd4-ada3-784a94a578c6n%40googlegroups.com.

Mobile Ads SDK Forum Advisor

unread,
Feb 22, 2024, 7:16:17 PM2/22/24
to freshs...@gmail.com, google-adm...@googlegroups.com

Hi,

Thank you for contacting the Mobile Ads SDK support team.

Upon examination of your inquiry, I perceive your desire to utilize AdMob within your application 

Kindly follow these Admob quick start guide, Signup for Admob and How Admob works for your reference. And also refer to the Get Started Guide  for the required platform integration details.

Can you please confirm whether you’ve followed the setup an app in AdMob. If you have already set up your app as unpublished, follow the instructions for linking to an app store

Kindly note that our team can only assist with technical queries or concerns related to the  Google Mobile Ads SDK

This message is in relation to case "ref:!00D1U01174p.!5004Q02rzNPl:ref"


Thanks,
 
Google Logo Mobile Ads SDK Team

 

Darius Design

unread,
Mar 20, 2024, 8:36:48 AM3/20/24
to Google Mobile Ads SDK Developers
I have used React Native Expo for app development, npm i react-native-google-mobile-ads package, this documentation, only one page project with code:
import React from 'react';
import { BannerAd, BannerAdSize, TestIds } from 'react-native-google-mobile-ads';

const adUnitId = __DEV__ ? TestIds.ADAPTIVE_BANNER : 'ca-app-pub-xxxxxxxxxxxxx/yyyyyyyyyyyyyy';

function App() {
  return (
    <BannerAd
      unitId={adUnitId}
      size={BannerAdSize.ANCHORED_ADAPTIVE_BANNER}
    />
  );
}
And got an error:
Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNGoogleMobileAdsModule' could not be found. Verify that a module by this name is registered in the native binary.Bridgeless mode: false. TurboModule interop: false. Modules loaded: {"NativeModules":["PlatformConstants","LogBox","SourceCode","Timing","AppState","BlobModule","WebSocketModule","DevSettings","DevToolsSettingsManager","Networking","Appearance","DevLoadingView","HeadlessJsTaskSupport","DeviceInfo","UIManager","DeviceEventManager"],"TurboModules":[],"NotFound":["NativePerformanceCxx","NativePerformanceObserverCxx","RedBox","BugReporting","RNGoogleMobileAdsModule"]}, js engine: hermes
 ERROR Invariant Violation: "main" has not been registered. This can happen if:
* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called., js engine: hermes
Where is a problem and how to get finally that ad to show on my app's screen?

Darius Design

unread,
Mar 20, 2024, 10:38:49 AM3/20/24
to Google Mobile Ads SDK Developers
But was omitted if I followed documentation? 

четвртак, 22. фебруар 2024. у 05:05:55 UTC+1 Mobile Ads SDK Forum Advisor је написао/ла:

Mobile Ads SDK Forum Advisor

unread,
Mar 20, 2024, 12:45:29 PM3/20/24
to darius...@gmail.com, google-adm...@googlegroups.com

Hi,

Based on the error message, it appears that you are encountering difficulties with the metro server or mapping. To resolve this issue, consider installing the most recent version of the necessary third-party library. Additionally, you may attempt to clean the build cache of npm.

If the issue still persist you can contact your third party repository team.
We don't have an available implementation guide for React Native as we mentioned previously we don't support this.

This message is in relation to case "ref:!00D1U01174p.!5004Q02rzLX5:ref" (ADR-00224339)


Thanks,
 
Google Logo Mobile Ads SDK Team


 

Reply all
Reply to author
Forward
0 new messages