Closed shubh261994 closed 5 years ago
+1 same happened
It ran for me by using the following:
<View>
<PublisherBanner
style={{ height: 50, width: 320, backgroundColor: 'green' }}
adSize="banner"
validAdSizes={['banner', 'smartBannerPortrait', 'largeBanner', 'mediumRectangle']}
adUnitID='/6499/example/banner'
testDevices={[PublisherBanner.simulatorId]}
didFailToReceiveAdWithError={(e) => console.log('Banner:onAdFailedToLoad', e)}
onAdLoaded={() => console.log('Banner:onAdLoaded')}
onAdFailedToLoad={(e) => console.log('Banner:onAdFailedToLoad', e)}
onAdOpened={() => console.log('Banner:onAdOpened')}
onAdClosed={() => console.log('Banner:onAdClosed')}
onAdLeftApplication={() => console.log('Banner:onAdLeftApplication')}
onAppEvent={(event) => console.log('Banner:onAppEvent', event)}
/>
</View>
Mee too, Add style
made it work! Strange!
I have been trying to get the DFP ads to work on iOS with:
This works good on Android but I get the following error in ios:
Can anyone tell what's the issue here?