Not able to use Facebook Ad for new expo apps using SDK 34. Getting error for Facebook Ad SDK version - 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
Here’s the complete error:
{
"_dispatchInstances": FiberNode {
"tag": 5,
"key": null,
"type": "ViewManagerAdapter_CTKBannerView",
},
"_dispatchListeners": [Function onError],
"_targetInst": FiberNode {
"tag": 5,
"key": null,
"type": "ViewManagerAdapter_CTKBannerView",
},
"bubbles": undefined,
"cancelable": undefined,
"currentTarget": 107,
"defaultPrevented": undefined,
"dispatchConfig": Object {
"registrationName": "onAdError",
},
"eventPhase": undefined,
"isDefaultPrevented": [Function K],
"isPropagationStopped": [Function K],
"isTrusted": undefined,
"nativeEvent": Object {
"message": "Error Domain=com.facebook.ads.sdk Code=1012 \"\" UserInfo={NSLocalizedDescription=, FBAdErrorDetailKey={
msg = \"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\";
}}",
"target": 107,
"userInfo": Object {
"FBAdErrorDetailKey": Object {
"msg": "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",
},
"NSLocalizedDescription": "",
},
},
"target": 107,
"timeStamp": 1564543729246,
"type": undefined,
}
I believe same is reported on GitHub issue as well.