Can't seem to get test ads to show up in iOS simulator
See original GitHub issueI used a placementId from the FAN dashboard and am running on a simulator, I’m getting nothing.
import { BannerView } from 'react-native-fbads';
<BannerView
placementId="my_placement_id"
type="large"
onClick={() => console.log('click')}
onError={(err) => console.log('error', err)}
/>
Am using React Native 0.37 with the latest version of this library 4.0.0. When I try using 3.1.1, I get the error: "Element type is invalid: expected a string (for built-in components) or a class/function for composite components) but got: undefined
What am I missing?
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
AdMob test banner loads on simulator, Only ... - Stack Overflow
I'm trying to test my AdMob/iAd singleton mediation. It works fine with test ads on simulator but AdMob never loads the test banner...
Read more >Enabling test ads | iOS - Google Developers
This guide explains how to receive test ads in your ads integration. ... on ads in test mode will not show up in...
Read more >Test ads not showing - Google Groups
Hello,. Test banner ads have stopped being served in beta versions of my iOS app. This is happening on devices and in the...
Read more >AdMob Ad not showing up after publish - Apple Developer
Hello, I have some issues with my application. When I test my apps on emulator Ads appear normally and I also tested them...
Read more >Test Reward ad not showing in iOS simulator - Google Support
Make sure that the account setup is fully completed. Name, address, phone number and tax info in your AdMob account with verification if ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I got it!!!
This was crazy and way too difficult to set up. This was not documented anywhere. I had to read all over StackOverflow until I found this: http://stackoverflow.com/questions/33909430/how-to-test-facebook-audience-network-ads-over-testflight
I then added the snippets to my AppDelegate.m:
and voila!
What gives? Everyone else got this to work without doing all that nonsense?
Btw, running
Well, in that case I think you can keep it inside
AppDelegate.m
and mark asto be removed when upgraded
.