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
711 stars 149 forks source link

[🐛] Bug Report Title - iOS interstials no earnings #456

Closed claudiofus closed 11 months ago

claudiofus commented 1 year ago

What happened?

I have some apps developed with Expo SDK and using your plugin to manage Admob ads. I'm displaying interstial with Google optimized eCPM for Android and iOS. In my report I don't see any earning or impression for my iOS interstials but I see earnings and impressions for Android interstials. Interstial ads are working on iOS and Android apps correctly.

Do I need to configure something more?

Platforms

Only on iOS

React Native Info

I'm using Expo managed workflow

Are your using Typescript?

package.json

{
  "main": "node_modules/expo/AppEntry.js",
  "scripts": {
    "prof-san-build-ios": "eas build -p ios --profile prof-san --clear-cache --auto-submit",
    "prof-san-build-android": "eas build -p android --profile prof-san --clear-cache --auto-submit",
  },
  "dependencies": {
    "@expo/metro-config": "^0.10.7",
    "@expo/ngrok": "^4.1.1",
    "@react-native-async-storage/async-storage": "1.18.2",
    "@react-native-masked-view/masked-view": "^0.2.9",
    "@react-navigation/drawer": "^6.6.3",
    "@react-navigation/native": "^6.1.7",
    "@react-navigation/stack": "^6.3.17",
    "expo": "^49.0.9",
    "expo-constants": "~14.4.2",
    "expo-dev-client": "~2.4.8",
    "expo-device": "~5.4.0",
    "expo-linear-gradient": "~12.3.0",
    "expo-linking": "~5.0.2",
    "expo-splash-screen": "~0.20.5",
    "expo-store-review": "~6.4.0",
    "firebase": "^9.23.0",
    "prop-types": "^15.8.1",
    "react": "18.2.0",
    "react-native": "0.72.4",
    "react-native-chart-kit": "^6.12.0",
    "react-native-gesture-handler": "~2.12.1",
    "react-native-google-mobile-ads": "^12.1.1",
    "react-native-reanimated": "~3.3.0",
    "react-native-safe-area-context": "4.6.3",
    "react-native-screens": "~3.22.0",
    "react-native-svg": "13.9.0",
    "sentry-expo": "^7.0.1"
  },
  "devDependencies": {
    "babel-preset-expo": "^9.5.2",
    "eslint-config-handlebarlabs": "^0.0.6",
    "prettier": "^3.0.3",
    "react-devtools": "^4.28.0",
    "react-native-debugger": "^1.1.0"
  },
  "private": true
}

app.json

{
  "expo": {
    "name": "xxxxx",
    "slug": "xxxxx",
    "privacy": "hidden",
    "jsEngine": "hermes",
    "platforms": [
      "ios",
      "android"
    ],
    "version": "1.9.0",
    "icon": "xxxxx",
    "splash": {
      "image": "xxxxx",
      "resizeMode": "contain"
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "plugins": [
      "sentry-expo"
    ],
    "android": {
      "package": "xxxxx",
      "versionCode": 5,
      "permissions": []
    },
    "ios": {
      "bundleIdentifier": "xxxxx",
      "buildNumber": "1.9.0",
      "infoPlist": {
        "NSUserTrackingUsageDescription": "Questo consenso verrà utilizzato per mostrare banner pubblicitari personalizzati.",
        "CFBundleDevelopmentRegion": "it",
        "SKAdNetworkItems": [
          {
            "SKAdNetworkIdentifier": "cstr6suwn9.skadnetwork"
          }
        ]
      },
      "supportsTablet": true
    },
    "description": "",
    "hooks": {
      "postPublish": [
        {
          "file": "sentry-expo/upload-sourcemaps",
          "config": {
            "organization": "xxxxxxx",
            "project": "xxxxxxx",
            "authToken": "xxxxxxx"
          }
        }
      ]
    },
    "extra": {
      "ads": {
        "androidHomepage": "ca-app-pub-xxxxxxx",
        "androidQuiz": "ca-app-pub-xxxxxxx",
        "androidCategory": "ca-app-pub-xxxxxxx",
        "androidRules": "ca-app-pub-xxxxxxx",
        "androidCharts": "ca-app-pub-xxxxxxx",
        "androidWrongQuiz": "ca-app-pub-xxxxxxx",
        "androidInterstial": "ca-app-pub-xxxxxxx",
        "iOShomepage": "ca-app-pub-xxxxxxx",
        "iOSquiz": "ca-app-pub-xxxxxxx",
        "iOScategory": "ca-app-pub-xxxxxxx",
        "iOSrules": "ca-app-pub-xxxxxxx",
        "iOSpremium": "ca-app-pub-xxxxxxx",
        "iOScharts": "ca-app-pub-xxxxxxx",
        "iOSwrongQuiz": "ca-app-pub-xxxxxxx",
        "iOSinterstial": "ca-app-pub-xxxxxxx",
        "test": "ca-app-pub-xxxxxxx"
      },
      "premiumUrl": "xxxxxxx",
      "sentryDSN": "xxxxxxx",
      "eas": {
        "projectId": "xxxxxxx"
      }
    }
  },
  "react-native-google-mobile-ads": {
    "android_app_id": "ca-app-pub-xxxxxxx",
    "ios_app_id": "ca-app-pub-xxxxxxx",
    "user_tracking_usage_description": "Questo consenso verrà utilizzato per mostrare banner pubblicitari personalizzati.",
    "delay_app_measurement_init": true
  }
}

ios/Podfile

No response

android/build.gradle

No response

android/app/build.gradle

No response

android/settings.gradle

No response

AndroidManifest.xml

No response

claudiofus commented 1 year ago

Update with latest version 12.3.0 but nothing changed, ads are showing for iOS but can't still see earnings in Admob report, it's almost a month I'm facing this problem!

github-actions[bot] commented 1 year 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.

dezudas commented 1 year ago

+1 I have similar problem no earning using interstials ad

github-actions[bot] commented 11 months 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.