FacebookAds: The SDK version in the ad request is no longer supported for new apps. Please upgrade to one of the latest versions of the SDK / Ad was re-loaded too frequently

  1. SDK Version: 33, 34, 35
  2. Platforms(Android/iOS/web/all): Android/iOS

I’m trying to integrate FacebookAds into my new app, and after the first run of the app I get:

The SDK version in the ad request is no longer supported for new apps. Please upgrade to one of the latest versions of the SDK

If I run the app again, I will get this error message:

Ad was re-loaded too frequently

The weird part is that my other app works perfect and displays ads with exactly the same configuration and setup. What it could be?

My app.json:

{
  "expo": {
    "name": "App Name",
    "slug": "app",
    "privacy": "public",
    "sdkVersion": "34.0.0",
    "facebookAppId": "xxxxxxxxxxxxxxxxxxx",
    "facebookDisplayName": "App Name",
    "platforms": [
      "ios",
      "android"
    ],
    "version": "1.0.5",
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "splash": {
      "image": "./assets/splash.png",
      "resizeMode": "cover"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "supportsTablet": true,
      "icon": "./assets/ios-icon.png",
      "bundleIdentifier": "com.com.com"
    },
    "android": {
      "package": "com.com.com",
      "versionCode": 5,
      "icon": "./assets/icon.png",
      "adaptiveIcon": {
        "backgroundColor": "#445d99",
        "foregroundImage": "./assets/foreground.png"
      }
    }
  }
}

My App.js related code

import * as FacebookAds from 'expo-ads-facebook';

if (__DEV__) {
    FacebookAds.AdSettings.addTestDevice(FacebookAds.AdSettings.currentDeviceHash);
}

<FacebookAds.BannerAd
      placementId={Platform.OS === 'android'?'xxx_xxx':'xxx_xxx'}
      type="large"
      onPress={() => console.log('click')}
      onError={(error) => console.log('error', error)}  />

Any help is appreciated, thanks!

i am facing same problem u got any solution of plz let me know

Nothing. It looks like expo uses outdated Facebook SDK.

any other alternative of it like react-native-fbads

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.