invertase / react-native-google-mobile-ads

React Native Google Mobile Ads enables you to monetize your app with AdMob.
https://docs.page/invertase/react-native-google-mobile-ads
Other
656 stars 134 forks source link

Ad failed to load: [Error: [googleMobileAds/no-fill] Request Error: No ad to show.] #611

Closed RohitDianApps closed 4 days ago

RohitDianApps commented 1 month ago

What happened?

Hello I am geeting the error Ad failed to load: [Error: [googleMobileAds/no-fill] Request Error: No ad to show.] Its sometime working with real adds in ios simulator and not working in Ios real devices geeting above mentioned error.

Platforms

Only on iOS

React Native Info

System:
    OS: macOS 14.4.1
    CPU: (8) arm64 Apple M1
    Memory: 51.88 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.7.0 - ~/.nvm/versions/node/v18.7.0/bin/node
    Yarn: 1.22.19 - ~/.yarn/bin/yarn
    npm: 8.15.0 - ~/.nvm/versions/node/v18.7.0/bin/npm
    Watchman: Not Found
  Managers:
    CocoaPods: 1.15.2 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 23.4, iOS 17.4, macOS 14.4, tvOS 17.4, visionOS 1.1, watchOS 10.4
    Android SDK: Not Found
  IDEs:
    Android Studio: Not Found
    Xcode: 15.3/15E204a - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.18 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: Not Found
    react-native: Not Found
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Are your using Typescript?

package.json

{
  "name": "unity",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "lint": "eslint .",
    "start": "react-native start",
    "test": "jest"
  },
  "dependencies": {
    "@react-native-async-storage/async-storage": "^1.19.1",
    "@react-native-clipboard/clipboard": "^1.14.1",
    "@react-native-community/datetimepicker": "^7.5.0",
    "@react-native-community/push-notification-ios": "^1.11.0",
    "@react-native-community/slider": "^4.4.3",
    "@react-native-firebase/app": "^17.3.1",
    "@react-native-firebase/messaging": "^17.3.1",
    "@react-native-firebase/remote-config": "^17.3.1",
    "@react-native-picker/picker": "^2.4.10",
    "@react-navigation/bottom-tabs": "^6.5.8",
    "@react-navigation/material-top-tabs": "^6.6.3",
    "@react-navigation/native": "^6.1.7",
    "@react-navigation/native-stack": "^6.9.13",
    "@react-navigation/stack": "^6.3.17",
    "@reduxjs/toolkit": "^1.9.5",
    "axios": "^1.4.0",
    "i18next": "^23.4.4",
    "intl-pluralrules": "^2.0.1",
    "lodash": "^4.17.21",
    "moment": "^2.29.4",
    "react": "18.2.0",
    "react-i18next": "^13.1.2",
    "react-native": "0.72.1",
    "react-native-calendars": "^1.1301.0",
    "react-native-collapsible-tab-view": "^7.0.1",
    "react-native-controlled-mentions": "^2.2.5",
    "react-native-create-thumbnail": "^2.0.0",
    "react-native-date-picker": "^4.2.13",
    "react-native-device-info": "^10.8.0",
    "react-native-document-picker": "^9.2.0",
    "react-native-fast-image": "^8.6.3",
    "react-native-floating-action": "^1.22.0",
    "react-native-gesture-handler": "^2.12.0",
    "react-native-google-mobile-ads": "^13.6.1",
    "react-native-image-picker": "^5.6.0",
    "react-native-keyboard-aware-scroll-view": "^0.9.5",
    "react-native-keyboard-manager": "^6.5.16-0",
    "react-native-localization": "^2.3.2",
    "react-native-modal": "^13.0.1",
    "react-native-modal-datetime-picker": "^17.1.0",
    "react-native-onesignal": "^5.0.0",
    "react-native-otp-verify": "^1.1.8",
    "react-native-pager-view": "^6.2.0",
    "react-native-paper": "^5.9.1",
    "react-native-pdf-thumbnail": "^1.3.1",
    "react-native-permissions": "^3.8.4",
    "react-native-push-notification": "^8.1.1",
    "react-native-reanimated": "3.4.2",
    "react-native-root-siblings": "^4.1.1",
    "react-native-root-toast": "^3.4.1",
    "react-native-safe-area-context": "^4.6.3",
    "react-native-screens": "^3.22.0",
    "react-native-size-matters": "^0.4.0",
    "react-native-slider": "^0.11.0",
    "react-native-splash-screen": "^3.3.0",
    "react-native-ssl-pinning": "^1.5.7",
    "react-native-status-bar-height": "^2.6.0",
    "react-native-svg": "^13.10.0",
    "react-native-svg-charts": "^5.4.0",
    "react-native-tab-view": "^3.5.2",
    "react-native-toast-message": "2.1.5",
    "react-native-video": "^5.2.1",
    "react-redux": "^8.1.1",
    "redux": "^4.2.1",
    "redux-devtools-extension": "^2.13.9",
    "redux-persist": "^6.0.0",
    "redux-thunk": "^2.4.2",
    "socket.io-client": "^4.7.2",
    "victory-native": "^36.6.11",
    "ws": "^8.14.1"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0",
    "@babel/preset-env": "^7.20.0",
    "@babel/runtime": "^7.20.0",
    "@react-native/eslint-config": "^0.72.2",
    "@react-native/metro-config": "^0.72.7",
    "@tsconfig/react-native": "^3.0.0",
    "@types/metro-config": "^0.76.3",
    "@types/react": "^18.0.24",
    "@types/react-test-renderer": "^18.0.0",
    "babel-jest": "^29.2.1",
    "eslint": "^8.19.0",
    "jest": "^29.2.1",
    "metro-react-native-babel-preset": "0.76.5",
    "prettier": "^2.4.1",
    "react-test-renderer": "18.2.0",
    "typescript": "4.8.4"
  },
  "engines": {
    "node": ">=16"
  },
  "reactNativePermissionsIOS": [
    "Camera",
    "MediaLibrary",
    "Microphone",
    "PhotoLibrary",
    "PhotoLibraryAddOnly"
  ]
}

app.json

{
  "name": "Unity",
  "displayName": "Unity",
  "react-native-google-mobile-ads": {
    "android_app_id": "ca-app-pub-2072533483395288~1528409335",
    "ios_app_id": "ca-app-pub-4572523480295288~9789753454"
  }
}

ios/Podfile

No response

android/build.gradle

No response

android/app/build.gradle

No response

android/settings.gradle

No response

AndroidManifest.xml

No response

Fevziyildizhan commented 1 month ago

What went wrong: Execution failed for task ':app:checkGooglePlayDebugAarMetadata'.

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction An issue was found when checking AAR metadata:

   1.  Dependency 'androidx.webkit:webkit:1.11.0-alpha02' requires libraries and applications that
       depend on it to compile against version 34 or later of the
       Android APIs.

       :app is currently compiled against android-33.

       Also, the maximum recommended compile SDK version for Android Gradle
       plugin 7.4.2 is 33.

       Recommended action: Update this project's version of the Android Gradle
       plugin to one that supports 34, then update this project to use
       compileSdkVerion of at least 34.

       Note that updating a library or application's compileSdkVersion (which
       allows newer APIs to be used) can be done separately from updating
       targetSdkVersion (which opts the app in to new runtime behavior) and
       minSdkVersion (which determines which devices the app can be installed
       on).     I used react-native-admob, then when I got an error from the Google Play Console, I saw this library, I wanted to install it, I upgraded the version in Android, but I get this error, what can I do?
github-actions[bot] commented 2 weeks ago

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.