React native Facebook广告博览会-广告被重新加载的频率太高
我正在尝试在我的Expo应用程序上实现Facebook广告 我已将以下内容添加到我的app.json中React native Facebook广告博览会-广告被重新加载的频率太高,react-native,facebook,expo,ads,React Native,Facebook,Expo,Ads,我正在尝试在我的Expo应用程序上实现Facebook广告 我已将以下内容添加到我的app.json中 "facebookAppId": "00000000000000", "facebookDisplayName": "MyAppNameHere" 然后,我在Facebook控制台中创建了我的placement ID,并按照此处的指南在我的应用程序中添加了类似的广告 import * as FacebookAd
"facebookAppId": "00000000000000",
"facebookDisplayName": "MyAppNameHere"
然后,我在Facebook控制台中创建了我的placement ID,并按照此处的指南在我的应用程序中添加了类似的广告
import * as FacebookAds from "expo-ads-facebook";
FacebookAds.AdSettings.addTestDevice(FacebookAds.AdSettings.currentDeviceHash);
<FacebookAds.BannerAd placementId="PlacementIDHere..." type="standard" onPress={() => console.log("click")} onError={(error) => console.log("error", error)} />
error SyntheticEvent {
"_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": 597,
"defaultPrevented": undefined,
"dispatchConfig": Object {
"registrationName": "onAdError",
},
"eventPhase": undefined,
"isDefaultPrevented": [Function functionThatReturnsFalse],
"isPropagationStopped": [Function functionThatReturnsFalse],
"isTrusted": undefined,
"nativeEvent": Object {
"message": "Error Domain=com.facebook.ads.sdk Code=1002 \"Ad was re-loaded too frequently\" UserInfo={NSLocalizedDescription=Ad was re-loaded too frequently, FBAdErrorDetailKey={
}}",
"target": 597,
"userInfo": Object {
"FBAdErrorDetailKey": Object {},
"NSLocalizedDescription": "Ad was re-loaded too frequently",
},
},
"target": 597,
"timeStamp": 1603004611528,
"type": undefined,
}