Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/facebook/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
React native Facebook广告博览会-广告被重新加载的频率太高_React Native_Facebook_Expo_Ads - Fatal编程技术网

React native Facebook广告博览会-广告被重新加载的频率太高

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

我正在尝试在我的Expo应用程序上实现Facebook广告

我已将以下内容添加到我的app.json中

"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,
}