React-native-admob: Banner does not show on real iOS devices

Created on 14 Dec 2017  路  14Comments  路  Source: sbugert/react-native-admob

I always get

Error: Request Error: No ad to show.

Is anyone having the same problem?

Tests:
Android emulator: ok
Android real device: ok
iOS emulator: ok
iPhone 8: banner won't show
iPhone 5c: banner won't show
(edited) iPhone 8 Plus: ok

Using react-native 0.47.1 and the latest commit of this library

import { AdMobBanner } from 'react-native-admob';

export default class MyAdMobBanner extends Component {
  render() {
    return (
      <View style={{ alignItems: 'center' }}>
        <AdMobBanner
          adSize={'smartBannerPortrait'}
          adUnitID={myID}
          onAdFailedToLoad={er => console.log(er)}
        />
      </View>
    );
  }
}

Most helpful comment

@ricardofavero @michelalbers Try to add
validAdSizes={['banner', 'largeBanner', 'mediumRectangle']} into your AdMobBanner

All 14 comments

I think the alignItems on the parent view causes the banner to collapse, and then admob doesn鈥檛 return an ad. Can you try without?

@koenpunt
thanks for the reply
I removed the parent view, but it didn't make any difference
While I was doing other things, I noticed that the banner appears very rarely, in about 5% of the cases I open the app.

Same problem here :(

@ricardofavero @michelalbers Try to add
validAdSizes={['banner', 'largeBanner', 'mediumRectangle']} into your AdMobBanner

any progress ?

EDIT: Still not working on the 5c.
I tested it on an iPhone 8 Plus and it's working normally.

@rica do you test it on real device??

@AbdelhalimAhmed

Sorry, I thought the problem was gone but it's not.
It's still not showing on the iPhone 5c.
Only news I have is that it works on the iPhone 8 Plus.

I think Apple gods won鈥檛 accept it :D

@AbdelhalimAhmed

Actually they rejected my app because of "too many ads" (1 banner in each screen). They even showed me a screenshot of the banner.

Same issue.

Update: I have the same problem, but when i back home and connect with 4G or home wifi it displays. I don't know why and don't know how to do now.

Did you check if the setting 'Limit Ad Tracking' in iOS was turned on ?

Same Here on iphone 6
any updates !!!

Same issue.
Sometimes ads will not show on iOS real device.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thekiwi picture thekiwi  路  4Comments

xvlm picture xvlm  路  5Comments

kanekotic picture kanekotic  路  6Comments

xencodes picture xencodes  路  4Comments

furkancelik picture furkancelik  路  5Comments