- SDK Version: 33, 34, 35
- 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!