question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[iOS] Facebook Ads are coming back with an error

See original GitHub issue

Trying to get Facebook Ads to work and keep getting either “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” or “Ad was re-loaded too frequently” error.

Tried both Interstitial and Banner ads, same result. First I see error 1012 - “The SDK version in the ad request is no longer supported…” then if I reload the app, I get the error code 1002 - “Ad was re-loaded too frequently”

This is happening on both simulator and Expo Client.

Relevant Code FacebookAds.AdSettings.addTestDevice(FacebookAds.AdSettings.currentDeviceHash) FacebookAds.InterstitialAdManager.showAd("my placement id") .then(didClick => {console.log('click')}) .catch(error => {console.log(error)})

Or ` { FacebookAds.AdSettings.addTestDevice(FacebookAds.AdSettings.currentDeviceHash) } <FacebookAds.BannerAd placementId=“my placement id” type=“standard” onPress={() => console.log(‘click’)} onError={(error) => console.log(‘error’, error)} />

`

Here’s the error response: `
“nativeEvent”: Object { “code”: “ECOM.FACEBOOK.ADS.SDK1002”, “domain”: “com.facebook.ads.sdk”, “message”: “Ad was re-loaded too frequently”, “nativeStackIOS”: Array [ “0 Exponent 0x0000000102d95acb ABI32_0_0RCTJSErrorFromCodeMessageAndNSError + 79”, “1 Exponent 0x0000000102d95a49 ABI32_0_0RCTJSErrorFromNSError + 210”, “2 Exponent 0x0000000102c8bb71 -[ABI32_0_0EXBannerView adView:didFailWithError:] + 50”, “3 Exponent 0x0000000102ebbac2 -[FBAdView displayAdController:didFailWithError:] + 158”, “4 libdispatch.dylib 0x000000010f6804e1 _dispatch_call_block_and_release + 12”, “5 libdispatch.dylib 0x000000010f68154b _dispatch_client_callout + 8”, “6 libdispatch.dylib 0x000000010f68d380 _dispatch_main_queue_callback_4CF + 1290”, “7 CoreFoundation 0x000000010e5083e9 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9”, “8 CoreFoundation 0x000000010e502a76 __CFRunLoopRun + 2342”, “9 CoreFoundation 0x000000010e501e11 CFRunLoopRunSpecific + 625”, “10 GraphicsServices 0x0000000110a6a1dd GSEventRunModal + 62”, “11 UIKitCore 0x0000000117dbf81d UIApplicationMain + 140”, “12 Exponent 0x0000000101e89d1d main + 80”, “13 libdyld.dylib 0x000000010f6f1575 start + 1”, ], “target”: 49, “userInfo”: Object { “FBAdErrorDetailKey”: Object {}, “NSLocalizedDescription”: “Ad was re-loaded too frequently”, }, },

`

I am using SDK 32 and have facebookId and facebookDisplayName specified. Facebook login is working with the same FB app, so not sure why the ads are failing.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
onka13commented, Jan 27, 2019

I’ve same problem and also on Android. https://github.com/expo/expo/issues/1989#issuecomment-449816800

It worked on android changing the sdk version. But i couldn’t find a way to change version on IOS.

  implementation('com.facebook.android:audience-network-sdk:5.1.0') {
    exclude module: 'play-services-ads'
  }
1reaction
zsayenkocommented, Feb 1, 2019

Thank you

Read more comments on GitHub >

github_iconTop Results From Across the Web

iOS 14 Error Codes - Marketing API - Meta for Developers
A reference for Facebook iOS 14 Error Codes for Marketing API. ... Select an iOS app or choose a different campaign type. Learn...
Read more >
Fix Facebook Ad iOS 14 Problems (New Way To ... - YouTube
In this video, we are looking at how to fix Facebook Ad iOS 14 Problems that occurred with the new Apple update last...
Read more >
IOS 14.5: Facebook Ads Are Not Working & How to fix it
If you've seen a significant drop in the performance of your facebook ad campaigns in the last few weeks it is more than...
Read more >
iOS 14 + Facebook Ads Fix - YouTube
Note: You may set Purchase on High priority in your Aggregated Events Measurement settings.With the release of iOS 14, Apple has announced ...
Read more >
Facebook Ads & iOS14 issue FIXED! - YouTube
Nearly every single business owner and advertiser who uses Facebook Ads was significantly affected by the iOS 14 update. Their campaign's ad ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found