callstack / callstack/react-native-fbads

It can't show any type of ads with getting the error messages as mentioned below.

未关闭
#338 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
451
派生
147
PR 合并指标
30 天内没有已合并 PR

描述

# Bug Report

**Before opening**

- [YES ] Did you try the latest release? Yes
- [YES ] Did you look for existing issues? Yes but nothing is happen.

**Ad Modules**

SyntheticEvent {dispatchConfig: {…}, _targetInst: FiberNode, _dispatchInstances: FiberNode, nativeEvent: {…}, _dispatchListeners: ƒ, …}

Error: No fill

**Platforms**

**Versions**

- Android:
- iOS:
- react-native-fbads: 7.1.0
- react-native-fbsdk: 3.0.0
- react-native: 0.70.4

**Ads Environment**

- Facebook app installed: No
- Happens in test (dev build + device is marked as a test device): yes
- Happens in production (release build + **not** a test device): we don't have checked yet
- Facebook review status: [not submitted | approved]: No we checking in testing mode

**Current Behaviour**

**Expected Behaviour**

We want to show ads in our app Banner Ads and Interstitial Ads.

**Steps to Reproduce**

import { useEffect } from 'react';
import {Dimensions, StyleSheet, View} from 'react-native';
import { InterstitialAdManager } from 'react-native-fbads';

const { width, height } = Dimensions.get('window');
const bannerAdPlacementId = '493228982692200_508720054476426'
const interstitialAdPlacementId = '493228982692200_508746657807099'

const App = () => {

useEffect(() => {
InterstitialAdManager.showAd(interstitialAdPlacementId)
.then((didClick) => { })
.catch((error) => {
console.log('error in initialize', error)
});
}, [])

return (

console.log('click')}
onLoad={() => console.log('loaded')}
onError={(err) => console.log('error', err)}
/>


);
};

const styles = StyleSheet.create({
container: {
height,
width,
backgroundColor: 'silver'
}
});

export default App;

**Additionals**

![Screenshot 2022-11-04 at 12 45 04 PM](https://user-images.githubusercontent.com/56266123/199914775-abbd76b0-b640-401d-967a-66ac443d648f.png)

![Screenshot 2022-11-04 at 12 46 23 PM](https://user-images.githubusercontent.com/56266123/199914850-2d733206-195b-4455-803e-2a0b9189fe24.png)

贡献指南

打开贡献指南

调研方向

首先使用提供的 App 组件,在 react-native-fbads 7.1.0 和 React Native 0.70.4 中通过 InterstitialAdManager.showAd 和 BannerView 重现该问题。比较 onError 和 promise catch 处理程序中报告的 “No fill” 和 SyntheticEvent 错误,然后确定受影响的平台以及可复现的预期结果。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, react-native
领域
mobile
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。