Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gulsher7 opened this issue Nov 4, 2022 · 1 comment

Comments

@gulsher7
Copy link

gulsher7 commented Nov 4, 2022

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 (

<BannerView
placementId={bannerAdPlacementId}
type="standard"
onPress={() => console.log('click')}
onLoad={() => console.log('loaded')}
onError={(err) => console.log('error', err)}
/>

</View>

);
};

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

export default App;

Additionals

Screenshot 2022-11-04 at 12 45 04 PM

Screenshot 2022-11-04 at 12 46 23 PM

@jserko
Copy link

jserko commented Dec 21, 2022

@gulsher7 have you managed to resolve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants